From 5058838237a34fca2a2bcad2880682de5338325b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sat, 28 Jun 2014 23:31:55 +0200 Subject: [PATCH] run the test after we select a currency --- index.html | 19 ++++++++++--------- src/ninja.onload.js | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index af815e3..56705a2 100644 --- a/index.html +++ b/index.html @@ -13154,15 +13154,6 @@ ninja.wallets.donate = { })(ninja); diff --git a/src/ninja.onload.js b/src/ninja.onload.js index dd9ca9c..930831f 100644 --- a/src/ninja.onload.js +++ b/src/ninja.onload.js @@ -1,12 +1,3 @@ -// run unit tests -if (ninja.getQueryString()["unittests"] == "true" || ninja.getQueryString()["unittests"] == "1") { - ninja.unitTests.runSynchronousTests(); - ninja.translator.showEnglishJson(); -} -// run async unit tests -if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()["asyncunittests"] == "1") { - ninja.unitTests.runAsynchronousTests(); -} // change language if (ninja.getQueryString()["culture"] != undefined) { ninja.translator.translate(ninja.getQueryString()["culture"]); @@ -57,5 +48,15 @@ for(i = 0; i < janin.currencies.length; i++) { list += ""; donatelist.innerHTML = list; +// run unit tests +if (ninja.getQueryString()["unittests"] == "true" || ninja.getQueryString()["unittests"] == "1") { + ninja.unitTests.runSynchronousTests(); + ninja.translator.showEnglishJson(); +} +// run async unit tests +if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()["asyncunittests"] == "1") { + ninja.unitTests.runAsynchronousTests(); +} + ninja.envSecurityCheck(); ninja.browserSecurityCheck(); \ No newline at end of file