Avoid changing html in two places; add minified jQuery as an option to the main test page

This commit is contained in:
timmywil 2011-05-02 17:53:55 -04:00
parent 3dbd7b54de
commit ea24cd106b
4 changed files with 13 additions and 268 deletions

View file

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

View file

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