aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/versioncheck.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-02 17:53:55 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-02 17:53:55 -0400
commitea24cd106b86dae2411e5b87c367f6ff5163aee8 (patch)
tree194158cd02520977f848c3168be6291d89e3291d /test/data/versioncheck.js
parent3dbd7b54de95aef238277dc52fe9112ff896f66c (diff)
downloadjquery-ea24cd106b86dae2411e5b87c367f6ff5163aee8.tar.gz
jquery-ea24cd106b86dae2411e5b87c367f6ff5163aee8.zip
Avoid changing html in two places; add minified jQuery as an option to the main test page
Diffstat (limited to 'test/data/versioncheck.js')
-rw-r--r--test/data/versioncheck.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/data/versioncheck.js b/test/data/versioncheck.js
new file mode 100644
index 000000000..f4b7790da
--- /dev/null
+++ b/test/data/versioncheck.js
@@ -0,0 +1,8 @@
+// Run minified source from dist (do make first)
+// Should be loaded before QUnit but after src
+(function() {
+ if ( /jquery\=min/.test( window.location.search ) ) {
+ jQuery.noConflict( true );
+ document.write(unescape("%3Cscript%20src%3D%27../dist/jquery.min.js%27%3E%3C/script%3E"));
+ }
+})(); \ No newline at end of file