aboutsummaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-09 09:11:34 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:28:25 -0400
commitf499569bffae60a6a7161eb2e13ec409afb98450 (patch)
tree801ed5acdb9ac6172940078802c1d75fcb220d93 /external
parent4bf80d209a7e804e1aa33d92faf3812a714a03c2 (diff)
downloadjquery-ui-f499569bffae60a6a7161eb2e13ec409afb98450.tar.gz
jquery-ui-f499569bffae60a6a7161eb2e13ec409afb98450.zip
Build: Upgrade to qunit-composite 1.1.0
Ref #10119 Closes gh-1528
Diffstat (limited to 'external')
-rw-r--r--external/qunit-composite/qunit-composite.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/external/qunit-composite/qunit-composite.js b/external/qunit-composite/qunit-composite.js
index 6cff04b51..1ffd2eea5 100644
--- a/external/qunit-composite/qunit-composite.js
+++ b/external/qunit-composite/qunit-composite.js
@@ -1,5 +1,5 @@
/**
- * QUnit Composite v1.0.4
+ * QUnit Composite v1.0.5-pre
*
* https://github.com/JamesMGreene/qunit-composite
*
@@ -7,7 +7,13 @@
* Released under the MIT license.
* https://jquery.org/license/
*/
-(function( QUnit ) {
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+ define( [ "qunit" ], factory );
+ } else {
+ factory( QUnit );
+ }
+}(function( QUnit ) {
var iframe, hasBound,
modules = 1,
executingComposite = false;
@@ -60,6 +66,11 @@ function initIframe() {
return;
}
+ // Deal with QUnit being loaded asynchronously via AMD
+ if ( !iframeWin.QUnit && iframeWin.define && iframeWin.define.amd ) {
+ return iframeWin.require( [ "qunit" ], onIframeLoad );
+ }
+
iframeWin.QUnit.moduleStart(function( data ) {
// Capture module name for messages
moduleName = data.name;
@@ -181,4 +192,4 @@ QUnit.testDone(function( data ) {
current.getElementsByTagName( "a" )[ 0 ].href = src;
});
-})( QUnit );
+}));