aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/qunit-composite.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/qunit-composite.js')
-rw-r--r--tests/unit/qunit-composite.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/unit/qunit-composite.js b/tests/unit/qunit-composite.js
index b3df04217..2e5454056 100644
--- a/tests/unit/qunit-composite.js
+++ b/tests/unit/qunit-composite.js
@@ -16,8 +16,15 @@ QUnit.extend( QUnit, {
},
runSuite: function( suite ) {
+ var path = suite;
+
+ if ( QUnit.is( "object", suite ) ) {
+ path = suite.path;
+ suite = suite.name;
+ }
+
asyncTest( suite, function() {
- QUnit.iframe.setAttribute( "src", suite );
+ QUnit.iframe.setAttribute( "src", path );
});
},
@@ -33,6 +40,9 @@ QUnit.extend( QUnit, {
var module, test,
count = 0;
+ if (iframe.src === "") {
+ return;
+ }
iframeWin.QUnit.moduleStart(function( data ) {
// capture module name for messages