Skip to content
Permalink
Browse files

Avoid changing html in two places; add minified jQuery as an option t…

…o the main test page
  • Loading branch information...
timmywil
timmywil committed May 2, 2011
1 parent 3dbd7b5 commit ea24cd106b86dae2411e5b87c367f6ff5163aee8
Showing with 13 additions and 268 deletions.
  1. +0 −3 test/data/testrunner.js
  2. +8 −0 test/data/versioncheck.js
  3. +0 −264 test/index.built.html
  4. +5 −1 test/index.html
@@ -28,9 +28,6 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.

// QUnit Aliases
(function() {

window.equals = window.equal;
window.same = window.deepEqual;

})();

@@ -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"));
}
})();

This file was deleted.

@@ -28,6 +28,8 @@
<script src="../src/offset.js"></script>
<script src="../src/dimensions.js"></script>

<script src="data/versioncheck.js"></script>

<script src="qunit/qunit/qunit.js"></script>
<script src="data/testrunner.js"></script>

@@ -48,7 +50,9 @@
</head>

<body id="body">
<h1 id="qunit-header">jQuery Test Suite</h1>
<h1 id="qunit-header">jQuery Test Suite
<a href="?jquery=min">(minified)</a>
</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>

0 comments on commit ea24cd1

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