diff options
author | John Resig <jeresig@gmail.com> | 2009-09-29 18:06:16 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-09-29 18:06:16 +0000 |
commit | 8df82d2b04505a45408c2fcf22859a4c60af2e58 (patch) | |
tree | a275869832f890a5819d1733e49ac4830c0edb28 /test | |
parent | 69e6e53555f21f07b534f1169298f7b33011bb4b (diff) | |
download | jquery-8df82d2b04505a45408c2fcf22859a4c60af2e58.tar.gz jquery-8df82d2b04505a45408c2fcf22859a4c60af2e58.zip |
Moved the init test script off into a separate file.
Diffstat (limited to 'test')
-rw-r--r-- | test/data/testinit.js | 4 | ||||
-rw-r--r-- | test/index.html | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js new file mode 100644 index 000000000..41aa396b4 --- /dev/null +++ b/test/data/testinit.js @@ -0,0 +1,4 @@ +var jQuery = this.jQuery || "jQuery", // For testing .noConflict() + $ = this.$ || "$", + originaljQuery = jQuery, + original$ = $; diff --git a/test/index.html b/test/index.html index 414bf7576..887609da8 100644 --- a/test/index.html +++ b/test/index.html @@ -8,12 +8,7 @@ ol#empty { opacity: 0; filter:Alpha(opacity=0); } /* for testing opacity set in styles in IE */ </style> <!-- Includes --> - <script type="text/javascript"> - var jQuery = this.jQuery || "jQuery", // For testing .noConflict() - $ = this.$ || "$", - originaljQuery = jQuery, - original$ = $; - </script> + <script type="text/javascript" src="data/testinit.js"></script> <script type="text/javascript" src="../dist/jquery.js"></script> <script type="text/javascript" src="qunit/testrunner.js"></script> <script type="text/javascript" src="data/testrunner.js"></script> |