aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/unit/event.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 9ea75fb81..e1b1b3922 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2448,6 +2448,12 @@ if ( hasPHP ) {
(function(){
// This code must be run before DOM ready!
+ if ( QUnit.urlParams.amd ) {
+
+ // If we load jQuery through requirejs DOM will be already loaded
+ return;
+ }
+
var notYetReady, noEarlyExecution,
order = [],
args = {};