diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-01-11 21:35:13 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-01-11 21:35:13 -0500 |
commit | dd900460ac6f77be71ceb878bc2cd1465397dc60 (patch) | |
tree | a33fe72fa0be5886c5689d7106def00b539b2ae9 | |
parent | f724bc6c921378b82d9d6fa17329b6451fbb7a51 (diff) | |
download | jquery-dd900460ac6f77be71ceb878bc2cd1465397dc60.tar.gz jquery-dd900460ac6f77be71ceb878bc2cd1465397dc60.zip |
Fix #10902. DRY up the ways to include src files in tests.
-rw-r--r-- | test/csp.php | 20 | ||||
-rw-r--r-- | test/data/include_js.php | 102 | ||||
-rw-r--r-- | test/data/offset/absolute.html | 13 | ||||
-rw-r--r-- | test/data/offset/body.html | 12 | ||||
-rw-r--r-- | test/data/offset/fixed.html | 12 | ||||
-rw-r--r-- | test/data/offset/relative.html | 12 | ||||
-rw-r--r-- | test/data/offset/scroll.html | 12 | ||||
-rw-r--r-- | test/data/offset/static.html | 12 | ||||
-rw-r--r-- | test/data/offset/table.html | 12 | ||||
-rw-r--r-- | test/data/selector/html5_selector.html | 21 | ||||
-rw-r--r-- | test/data/selector/sizzle_cache.html | 21 | ||||
-rw-r--r-- | test/data/support/bodyBackground.html | 21 | ||||
-rw-r--r-- | test/data/support/boxModelIE.html | 21 | ||||
-rw-r--r-- | test/data/support/hiddenIFrameFF.html | 21 | ||||
-rw-r--r-- | test/data/versioncheck.js | 8 | ||||
-rw-r--r-- | test/delegatetest.html | 13 | ||||
-rw-r--r-- | test/hovertest.html | 2 | ||||
-rw-r--r-- | test/index.html | 24 | ||||
-rw-r--r-- | test/localfile.html | 20 | ||||
-rw-r--r-- | test/networkerror.html | 20 | ||||
-rw-r--r-- | test/readywait.html | 20 |
21 files changed, 122 insertions, 297 deletions
diff --git a/test/csp.php b/test/csp.php index 13c324ea6..46cba8348 100644 --- a/test/csp.php +++ b/test/csp.php @@ -5,25 +5,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CSP Test Page</title> - <script src="../src/core.js"></script> - <script src="../src/deferred.js"></script> - <script src="../src/support.js"></script> - <script src="../src/data.js"></script> - <script src="../src/queue.js"></script> - <script src="../src/attributes.js"></script> - <script src="../src/event.js"></script> - <script src="../src/sizzle/sizzle.js"></script> - <script src="../src/sizzle-jquery.js"></script> - <script src="../src/traversing.js"></script> - <script src="../src/manipulation.js"></script> - <script src="../src/css.js"></script> - <script src="../src/ajax.js"></script> - <script src="../src/ajax/jsonp.js"></script> - <script src="../src/ajax/script.js"></script> - <script src="../src/ajax/xhr.js"></script> - <script src="../src/effects.js"></script> - <script src="../src/offset.js"></script> - <script src="../src/dimensions.js"></script> + <script src="data/include_js.php"></script> </head> <body> <p>CSP Test Page</p> diff --git a/test/data/include_js.php b/test/data/include_js.php new file mode 100644 index 000000000..467a6b2be --- /dev/null +++ b/test/data/include_js.php @@ -0,0 +1,102 @@ +/* +<?php +// if php is available, close the comment so PHP can echo the appropriate JS +echo "*" . "/"; + +// initialize vars +$output = ""; +$version = ""; + +// extract vars from referrer to determine version +if(isset($_SERVER['HTTP_REFERER'])){ + $referrer = $_SERVER['HTTP_REFERER']; + $referrer_query_string = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY ); + parse_str($referrer_query_string, $referrer_params); + + if(isset($referrer_params['jquery'])){ + $version = $referrer_params['jquery']; + } +} + +// load up built versions of jquery +if( $version === "min" ) { + $output = @file_get_contents("../../dist/jquery.min.js"); +}elseif( $version === "dist" ) { + $output = @file_get_contents("../../dist/jquery.js"); +}elseif( ctype_digit( substr( $version, 0, 1 )) || $version === "git" ) { + $output = "document.write('<script src=\"http://code.jquery.com/jquery-" . $version . ".js\"><'+'/script>');"; +} + +// the concatenated version of the the src files is both the default and the fallback +// because it does not require you to "make" jquery for it to update +if( $output === "" ) { + $files = array( + "intro", + "core", + "callbacks", + "deferred", + "support", + "data", + "queue", + "attributes", + "event", + "sizzle/sizzle", + "sizzle-jquery", + "traversing", + "manipulation", + "css", + "ajax", + "ajax/jsonp", + "ajax/script", + "ajax/xhr", + "effects", + "offset", + "dimensions", + "exports", + "outro" + ); + + foreach ( $files as $file ) { + $output .= file_get_contents( "../../src/" . $file . ".js" ); + } + + $output = str_replace( "(function( jQuery ) {", "", $output ); + $output = str_replace( "})( jQuery );", "", $output ); +} + +echo $output; +die(); +?> +*/ + +// javascript fallback using src files in case this is not run on a PHP server! +var baseURL = document.location.href.replace( /\/test\/.+/, "/"), + files = [ + "core", + "callbacks", + "deferred", + "support", + "data", + "queue", + "attributes", + "event", + "sizzle/sizzle", + "sizzle-jquery", + "traversing", + "manipulation", + "css", + "ajax", + "ajax/jsonp", + "ajax/script", + "ajax/xhr", + "effects", + "offset", + "dimensions", + "exports" + ], + len = files.length, + i = 0; + +for ( ; i < len; i++ ) { + document.write("<script src=\"" + baseURL + "src/" + files[ i ] + ".js\"><"+"/script>"); +} diff --git a/test/data/offset/absolute.html b/test/data/offset/absolute.html index 3868d6eb2..5a0e4afb4 100644 --- a/test/data/offset/absolute.html +++ b/test/data/offset/absolute.html @@ -15,18 +15,7 @@ p.instructions { position: absolute; bottom: 0; } #positionTest { position: absolute; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> - <script type="text/javascript" src="../../../dist/jquery.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { $('.absolute').click(function() { diff --git a/test/data/offset/body.html b/test/data/offset/body.html index 1678c2b25..ec7668c10 100644 --- a/test/data/offset/body.html +++ b/test/data/offset/body.html @@ -8,17 +8,7 @@ body { margin: 1px; padding: 5px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { $('body').click(function() { diff --git a/test/data/offset/fixed.html b/test/data/offset/fixed.html index 75e8b1f0a..8a7b31f19 100644 --- a/test/data/offset/fixed.html +++ b/test/data/offset/fixed.html @@ -12,17 +12,7 @@ #forceScroll { width: 5000px; height: 5000px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { window.scrollTo(1000,1000); diff --git a/test/data/offset/relative.html b/test/data/offset/relative.html index 6d0bb8d3e..361d4b294 100644 --- a/test/data/offset/relative.html +++ b/test/data/offset/relative.html @@ -10,17 +10,7 @@ #relative-2 { top: 20px; left: 20px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { $('.relative').click(function() { diff --git a/test/data/offset/scroll.html b/test/data/offset/scroll.html index c570e6c1a..17f01d8fc 100644 --- a/test/data/offset/scroll.html +++ b/test/data/offset/scroll.html @@ -13,17 +13,7 @@ #forceScroll { width: 5000px; height: 5000px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { window.scrollTo(1000,1000); diff --git a/test/data/offset/static.html b/test/data/offset/static.html index d78a2c4ea..cb5ed03eb 100644 --- a/test/data/offset/static.html +++ b/test/data/offset/static.html @@ -10,17 +10,7 @@ #static-2 { top: 20px; left: 20px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { $('.static').click(function() { diff --git a/test/data/offset/table.html b/test/data/offset/table.html index 83ef6c475..4a6a7a470 100644 --- a/test/data/offset/table.html +++ b/test/data/offset/table.html @@ -10,17 +10,7 @@ th, td { border: 1px solid #000; width: 100px; height: 100px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/offset.js"></script> + <script src="../include_js.php"></script> <script type="text/javascript" charset="utf-8"> jQuery(function($) { $('table, th, td').click(function() { diff --git a/test/data/selector/html5_selector.html b/test/data/selector/html5_selector.html index 28aa2b607..ed0bfbc94 100644 --- a/test/data/selector/html5_selector.html +++ b/test/data/selector/html5_selector.html @@ -4,26 +4,7 @@ <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>jQuery selector - attributes</title> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/queue.js"></script> - <script src="../../../src/attributes.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/manipulation.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/ajax.js"></script> - <script src="../../../src/ajax/jsonp.js"></script> - <script src="../../../src/ajax/script.js"></script> - <script src="../../../src/ajax/xhr.js"></script> - <script src="../../../src/effects.js"></script> - <script src="../../../src/offset.js"></script> - <script src="../../../src/dimensions.js"></script> + <script src="../include_js.php"></script> <script id="script1" defer diff --git a/test/data/selector/sizzle_cache.html b/test/data/selector/sizzle_cache.html index de1a583b2..4ad178a82 100644 --- a/test/data/selector/sizzle_cache.html +++ b/test/data/selector/sizzle_cache.html @@ -8,26 +8,7 @@ <script> var $git = jQuery.noConflict(true); </script> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/queue.js"></script> - <script src="../../../src/attributes.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/manipulation.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/ajax.js"></script> - <script src="../../../src/ajax/jsonp.js"></script> - <script src="../../../src/ajax/script.js"></script> - <script src="../../../src/ajax/xhr.js"></script> - <script src="../../../src/effects.js"></script> - <script src="../../../src/offset.js"></script> - <script src="../../../src/dimensions.js"></script> + <script src="../include_js.php"></script> </head> <body> diff --git a/test/data/support/bodyBackground.html b/test/data/support/bodyBackground.html index 3d135ab56..cd3744b87 100644 --- a/test/data/support/bodyBackground.html +++ b/test/data/support/bodyBackground.html @@ -10,26 +10,7 @@ </head> <body> <div> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/queue.js"></script> - <script src="../../../src/attributes.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/manipulation.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/ajax.js"></script> - <script src="../../../src/ajax/jsonp.js"></script> - <script src="../../../src/ajax/script.js"></script> - <script src="../../../src/ajax/xhr.js"></script> - <script src="../../../src/effects.js"></script> - <script src="../../../src/offset.js"></script> - <script src="../../../src/dimensions.js"></script> + <script src="../include_js.php"></script> </div> <script> jQuery(function() { diff --git a/test/data/support/boxModelIE.html b/test/data/support/boxModelIE.html index 8a96dd873..ca647a281 100644 --- a/test/data/support/boxModelIE.html +++ b/test/data/support/boxModelIE.html @@ -1,26 +1,7 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/queue.js"></script> - <script src="../../../src/attributes.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/manipulation.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/ajax.js"></script> - <script src="../../../src/ajax/jsonp.js"></script> - <script src="../../../src/ajax/script.js"></script> - <script src="../../../src/ajax/xhr.js"></script> - <script src="../../../src/effects.js"></script> - <script src="../../../src/offset.js"></script> - <script src="../../../src/dimensions.js"></script> + <script src="../include_js.php"></script> <script> jQuery(function() { window.parent.supportCallback( document.compatMode, jQuery.support.boxModel ) }); </script> diff --git a/test/data/support/hiddenIFrameFF.html b/test/data/support/hiddenIFrameFF.html index a21708d57..c2dda8cd4 100644 --- a/test/data/support/hiddenIFrameFF.html +++ b/test/data/support/hiddenIFrameFF.html @@ -1,25 +1,6 @@ <html> <head> - <script src="../../../src/core.js"></script> - <script src="../../../src/callbacks.js"></script> - <script src="../../../src/deferred.js"></script> - <script src="../../../src/support.js"></script> - <script src="../../../src/data.js"></script> - <script src="../../../src/queue.js"></script> - <script src="../../../src/attributes.js"></script> - <script src="../../../src/event.js"></script> - <script src="../../../src/sizzle/sizzle.js"></script> - <script src="../../../src/sizzle-jquery.js"></script> - <script src="../../../src/traversing.js"></script> - <script src="../../../src/manipulation.js"></script> - <script src="../../../src/css.js"></script> - <script src="../../../src/ajax.js"></script> - <script src="../../../src/ajax/jsonp.js"></script> - <script src="../../../src/ajax/script.js"></script> - <script src="../../../src/ajax/xhr.js"></script> - <script src="../../../src/effects.js"></script> - <script src="../../../src/offset.js"></script> - <script src="../../../src/dimensions.js"></script> + <script src="../include_js.php"></script> </head> <body> </body> diff --git a/test/data/versioncheck.js b/test/data/versioncheck.js deleted file mode 100644 index f4b7790da..000000000 --- a/test/data/versioncheck.js +++ /dev/null @@ -1,8 +0,0 @@ -// 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")); - } -})();
\ No newline at end of file diff --git a/test/delegatetest.html b/test/delegatetest.html index 5bf1c305a..012d27c91 100644 --- a/test/delegatetest.html +++ b/test/delegatetest.html @@ -2,15 +2,7 @@ <html> <head> <title>Event Delegation Tests</title> -<script> -var version = location.search && location.search.substr(1); -if ( version ) { - version = "http://code.jquery.com/jquery-"+version+".js"; -} else { - version = "../dist/jquery.js"; -} -document.write('<script src="'+version+'"><'+'/script>'); -</script> +<script src="data/include_js.php"></script> <style> table { border-collapse: collapse; @@ -31,7 +23,7 @@ th, td { </style> </head> <body> -<h2>Delegate Tests (<span id="version">BAD FILE IN URL</span>, <span id="fileversion">x</span>)</h2> +<h2>Delegate Tests (<span id="fileversion">x</span>)</h2> <table id="changes"> <thead> @@ -133,7 +125,6 @@ th, td { <script type='text/javascript'> -$("#version").text(version); $("#fileversion").text($.fn.jquery); // Try an auto-submit, it should only fire once diff --git a/test/hovertest.html b/test/hovertest.html index d6242091e..2d2736a65 100644 --- a/test/hovertest.html +++ b/test/hovertest.html @@ -1,7 +1,7 @@ <html> <head> <title>Hover tests</title> -<script src="../dist/jquery.js" type='text/javascript'></script> +<script src="data/include_js.php"></script> <style> /* Remove body dimensions so we can test enter/leave to surrounding browser chrome */ body, html { diff --git a/test/index.html b/test/index.html index 3ebc27f2d..6ad1df111 100644 --- a/test/index.html +++ b/test/index.html @@ -8,29 +8,7 @@ <!-- Includes --> <script src="data/testinit.js"></script> - <script src="../src/core.js"></script> - <script src="../src/callbacks.js"></script> - <script src="../src/deferred.js"></script> - <script src="../src/support.js"></script> - <script src="../src/data.js"></script> - <script src="../src/queue.js"></script> - <script src="../src/attributes.js"></script> - <script src="../src/event.js"></script> - <script src="../src/sizzle/sizzle.js"></script> - <script src="../src/sizzle-jquery.js"></script> - <script src="../src/traversing.js"></script> - <script src="../src/manipulation.js"></script> - <script src="../src/css.js"></script> - <script src="../src/ajax.js"></script> - <script src="../src/ajax/jsonp.js"></script> - <script src="../src/ajax/script.js"></script> - <script src="../src/ajax/xhr.js"></script> - <script src="../src/effects.js"></script> - <script src="../src/offset.js"></script> - <script src="../src/dimensions.js"></script> - <script src="../src/exports.js"></script> - - <script src="data/versioncheck.js"></script> + <script src="data/include_js.php"></script> <script src="qunit/qunit/qunit.js"></script> <script src="data/testrunner.js"></script> diff --git a/test/localfile.html b/test/localfile.html index c552f2145..2c089c4d2 100644 --- a/test/localfile.html +++ b/test/localfile.html @@ -4,25 +4,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery Local File Test</title> <!-- Includes --> - <script src="../src/core.js"></script> - <script src="../src/deferred.js"></script> - <script src="../src/support.js"></script> - <script src="../src/data.js"></script> - <script src="../src/queue.js"></script> - <script src="../src/attributes.js"></script> - <script src="../src/event.js"></script> - <script src="../src/sizzle/sizzle.js"></script> - <script src="../src/sizzle-jquery.js"></script> - <script src="../src/traversing.js"></script> - <script src="../src/manipulation.js"></script> - <script src="../src/css.js"></script> - <script src="../src/ajax.js"></script> - <script src="../src/ajax/jsonp.js"></script> - <script src="../src/ajax/script.js"></script> - <script src="../src/ajax/xhr.js"></script> - <script src="../src/effects.js"></script> - <script src="../src/offset.js"></script> - <script src="../src/dimensions.js"></script> + <script src="data/include_js.php"></script> <style> .error { color: red; } .success { color: green; } diff --git a/test/networkerror.html b/test/networkerror.html index f98bf4699..e258d83d8 100644 --- a/test/networkerror.html +++ b/test/networkerror.html @@ -15,25 +15,7 @@ <style> div { margin-top: 10px; } </style> - <script src="../src/core.js"></script> - <script src="../src/deferred.js"></script> - <script src="../src/support.js"></script> - <script src="../src/data.js"></script> - <script src="../src/queue.js"></script> - <script src="../src/attributes.js"></script> - <script src="../src/event.js"></script> - <script src="../src/sizzle/sizzle.js"></script> - <script src="../src/sizzle-jquery.js"></script> - <script src="../src/traversing.js"></script> - <script src="../src/manipulation.js"></script> - <script src="../src/css.js"></script> - <script src="../src/ajax.js"></script> - <script src="../src/ajax/jsonp.js"></script> - <script src="../src/ajax/script.js"></script> - <script src="../src/ajax/xhr.js"></script> - <script src="../src/effects.js"></script> - <script src="../src/offset.js"></script> - <script src="../src/dimensions.js"></script> + <script src="data/include_js.php"></script> <script type="text/javascript"> $('button').live('click', function () { $.ajax({ diff --git a/test/readywait.html b/test/readywait.html index b4d8111eb..a9eab3961 100644 --- a/test/readywait.html +++ b/test/readywait.html @@ -14,25 +14,7 @@ #output { background-color: green } #expectedOutput { background-color: green } </style> - <script src="../src/core.js"></script> - <script src="../src/deferred.js"></script> - <script src="../src/support.js"></script> - <script src="../src/data.js"></script> - <script src="../src/queue.js"></script> - <script src="../src/attributes.js"></script> - <script src="../src/event.js"></script> - <script src="../src/sizzle/sizzle.js"></script> - <script src="../src/sizzle-jquery.js"></script> - <script src="../src/traversing.js"></script> - <script src="../src/manipulation.js"></script> - <script src="../src/css.js"></script> - <script src="../src/ajax.js"></script> - <script src="../src/ajax/jsonp.js"></script> - <script src="../src/ajax/script.js"></script> - <script src="../src/ajax/xhr.js"></script> - <script src="../src/effects.js"></script> - <script src="../src/offset.js"></script> - <script src="../src/dimensions.js"></script> + <script src="data/include_js.php"></script> <!-- Load the script loader that uses jQuery.readyWait --> |