aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2013-08-16 14:36:08 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-16 14:39:42 -0400
commitef694f6cc77674fc119b8bfa32c74aa456b84eb6 (patch)
treeafc066b250822c52a23fc08e03e4d73bdba717f4 /test
parentb693b370a459ef89ef187518b832a45b6e848eca (diff)
downloadjquery-ef694f6cc77674fc119b8bfa32c74aa456b84eb6.tar.gz
jquery-ef694f6cc77674fc119b8bfa32c74aa456b84eb6.zip
Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.
Conflicts: src/manipulation.js
Diffstat (limited to 'test')
-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 = {};