From 0a4c3344300d7a753328d5e3b9b978b35a249122 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Mon, 9 Jul 2012 18:45:49 -0700 Subject: Update to QUnit 1.9.0 and use new urlConfig for custom checkboxes --- tests/unit/testsuite.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js index 99694a83e..26f46138a 100644 --- a/tests/unit/testsuite.js +++ b/tests/unit/testsuite.js @@ -12,7 +12,12 @@ function includeScript( url ) { QUnit.config.requireExpects = true; -QUnit.config.urlConfig.push( "min" ); +QUnit.config.urlConfig.push({ + id: "min", + label: "Minified source", + tooltip: "Load minified source files instead of the regular unminified ones." +}); + TestHelpers.loadResources = QUnit.urlParams.min ? function() { // TODO: proper include with theme images @@ -28,7 +33,12 @@ TestHelpers.loadResources = QUnit.urlParams.min ? }); }; -QUnit.config.urlConfig.push( "nojshint" ); +QUnit.config.urlConfig.push({ + id: "nojshint", + label: "Skip JSHint", + tooltip: "Skip running JSHint, e.g. within TestSwarm, where Jenkins runs it already" +}); + var jshintLoaded = false; TestHelpers.testJshint = function( module ) { if ( QUnit.urlParams.nojshint ) { -- cgit v1.2.3