aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/testinit.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-09-03 09:55:32 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-09-03 10:43:32 -0400
commit0c185209233f4c15e57c6a24e8f81b27dd26db59 (patch)
treea473d3fc651a54040ef25d7c21d81e52a0506fee /test/data/testinit.js
parentf66d53c85643e703a8e37d9ca9375dd386a60cda (diff)
downloadjquery-0c185209233f4c15e57c6a24e8f81b27dd26db59.tar.gz
jquery-0c185209233f4c15e57c6a24e8f81b27dd26db59.zip
No ticket: Hide the testing-support jQuery from tests
Diffstat (limited to 'test/data/testinit.js')
-rw-r--r--test/data/testinit.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js
index 30136de36..8cb57d5f5 100644
--- a/test/data/testinit.js
+++ b/test/data/testinit.js
@@ -1,17 +1,17 @@
/*jshint multistr:true, quotmark:false */
-var fireNative,
- originaljQuery = this.jQuery || "jQuery",
- original$ = this.$ || "$",
+var fireNative, originaljQuery, original$,
+ supportjQuery = this.jQuery,
// see RFC 2606
externalHost = "example.com";
this.hasPHP = true;
this.isLocal = window.location.protocol === "file:";
-// For testing .noConflict()
-this.jQuery = originaljQuery;
-this.$ = original$;
+// Setup global variables before loading jQuery for testing .noConflict()
+supportjQuery.noConflict( true );
+originaljQuery = this.jQuery = undefined;
+original$ = this.$ = "replaced";
/**
* Returns an array of elements with the given IDs
@@ -253,3 +253,4 @@ this.testIframeWithCallback = function( title, fileName, func ) {
).appendTo( "body" );
});
};
+this.iframeCallback = undefined;