Moved the init test script off into a separate file.
authorJohn Resig <jeresig@gmail.com>
Tue, 29 Sep 2009 18:06:16 +0000 (18:06 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 29 Sep 2009 18:06:16 +0000 (18:06 +0000)
test/data/testinit.js [new file with mode: 0644]
test/index.html

diff --git a/test/data/testinit.js b/test/data/testinit.js
new file mode 100644 (file)
index 0000000..41aa396
--- /dev/null
@@ -0,0 +1,4 @@
+var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
+       $ = this.$ || "$",
+       originaljQuery = jQuery,
+       original$ = $;
index 414bf75..887609d 100644 (file)
@@ -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>