aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-06-06 17:39:23 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-06 17:39:23 -0400
commit53a5810bfc7251b9fcb7d0f9fb56853fdceb0273 (patch)
treece2cd9fc5307bb0913be5708d4fe4cb84ad94bd3 /test
parentf5d2bc4db14bba1621a2e1a4baf171acfc9add1a (diff)
downloadjquery-53a5810bfc7251b9fcb7d0f9fb56853fdceb0273.tar.gz
jquery-53a5810bfc7251b9fcb7d0f9fb56853fdceb0273.zip
Rough draft of version=min test capabilities reintroduced.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/index.html22
1 files changed, 21 insertions, 1 deletions
diff --git a/test/index.html b/test/index.html
index b0aae40bf..3de1565fe 100644
--- a/test/index.html
+++ b/test/index.html
@@ -8,7 +8,27 @@
<!-- Includes -->
<script src="data/testinit.js"></script>
- <script src="../dist/jquery.js"></script>
+
+ <script>
+ var set, keyvals, params,
+ version = "";
+
+ if ( location.search ) {
+ keyvals = location.search.slice(1).split("&"),
+ params = {};
+
+ while ( keyvals.length ) {
+ set = keyvals.shift().split("=");
+ params[ set[0] ] = set[1];
+ }
+ if ( params.version && params.version === "min" ) {
+ version = params.version + ".";
+ }
+ }
+ document.write(
+ "<script src='../dist/jquery." + version + "js'><\/script>"
+ );
+ </script>
<script src="qunit/qunit/qunit.js"></script>
<script src="data/testrunner.js"></script>