Skip to content

Commit

Permalink
Rough draft of version=min test capabilities reintroduced.
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <[email protected]>
  • Loading branch information
rwaldron committed Jun 6, 2012
1 parent f5d2bc4 commit 53a5810
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 53a5810

Please sign in to comment.