Skip to content
Permalink
Browse files

Rough draft of version=min test capabilities reintroduced.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Jun 6, 2012
1 parent f5d2bc4 commit 53a5810bfc7251b9fcb7d0f9fb56853fdceb0273
Showing with 21 additions and 1 deletion.
  1. +21 −1 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>

0 comments on commit 53a5810

Please sign in to comment.
You can’t perform that action at this time.