Relativize all urls pertaining to dist/jquery.js so users can run their server from any file location; Make sure Sizzle is available for its tests in testrunner.

This commit is contained in:
timmywil 2012-06-04 18:04:11 -04:00
parent 81c7b83d64
commit 37ffb29d37
25 changed files with 29 additions and 25 deletions

@ -1 +1 @@
Subproject commit 97128a76c3cf06732db953b1f9ffd6b5d2cca698 Subproject commit c24253c0556a75bfb145dccee6f074d064b3fdc3

View File

@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSP Test Page</title> <title>CSP Test Page</title>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
</head> </head>
<body> <body>
<p>CSP Test Page</p> <p>CSP Test Page</p>

View File

@ -11,7 +11,7 @@
</head> </head>
<body> <body>
<div> <div>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
</div> </div>
</body> </body>
</html> </html>

View File

@ -15,7 +15,7 @@
</head> </head>
<body> <body>
<div> <div>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
</div> </div>
</body> </body>
</html> </html>

View File

@ -19,7 +19,7 @@ if ( document.attachEvent ) {
}); });
} }
document.getElementsByTagName("head")[ 0 ].appendChild( el ); document.getElementsByTagName("head")[ 0 ].appendChild( el );
el.src = "/dist/jquery.js"; el.src = "../../../dist/jquery.js";
}, 1000 ); }, 1000 );
} }
</script> </script>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #11470</title> <title>Test case for jQuery ticket #11470</title>
<script type="text/javascript" src="/dist/jquery.js"></script> <script type="text/javascript" src="../../../dist/jquery.js"></script>
<script type="text/javascript"> <script type="text/javascript">
jQuery.when( jQuery.ready ).done(function() { jQuery.when( jQuery.ready ).done(function() {
jQuery("body").append("<div>modifying DOM</div>"); jQuery("body").append("<div>modifying DOM</div>");

View File

@ -3,7 +3,7 @@
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #10067</title> <title>Test case for jQuery ticket #10067</title>
<script type="text/javascript" src="/dist/jquery.js"></script> <script type="text/javascript" src="../../../dist/jquery.js"></script>
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -15,7 +15,7 @@
p.instructions { position: absolute; bottom: 0; } p.instructions { position: absolute; bottom: 0; }
#positionTest { position: absolute; } #positionTest { position: absolute; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
$('.absolute').click(function() { $('.absolute').click(function() {

View File

@ -8,7 +8,7 @@
body { margin: 1px; padding: 5px; } body { margin: 1px; padding: 5px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
$('body').click(function() { $('body').click(function() {

View File

@ -12,7 +12,7 @@
#forceScroll { width: 5000px; height: 5000px; } #forceScroll { width: 5000px; height: 5000px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
window.scrollTo(1000,1000); window.scrollTo(1000,1000);

View File

@ -10,7 +10,7 @@
#relative-2 { top: 20px; left: 20px; } #relative-2 { top: 20px; left: 20px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
$('.relative').click(function() { $('.relative').click(function() {

View File

@ -13,7 +13,7 @@
#forceScroll { width: 5000px; height: 5000px; } #forceScroll { width: 5000px; height: 5000px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
window.scrollTo(1000,1000); window.scrollTo(1000,1000);

View File

@ -10,7 +10,7 @@
#static-2 { top: 20px; left: 20px; } #static-2 { top: 20px; left: 20px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
$('.static').click(function() { $('.static').click(function() {

View File

@ -10,7 +10,7 @@
th, td { border: 1px solid #000; width: 100px; height: 100px; } th, td { border: 1px solid #000; width: 100px; height: 100px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
jQuery(function($) { jQuery(function($) {
$('table, th, td').click(function() { $('table, th, td').click(function() {

View File

@ -4,7 +4,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>jQuery selector - attributes</title> <title>jQuery selector - attributes</title>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script id="script1" <script id="script1"
defer defer

View File

@ -4,11 +4,11 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>jQuery selector - sizzle cache</title> <title>jQuery selector - sizzle cache</title>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
<script> <script>
var $cached = jQuery.noConflict(true); var $cached = jQuery.noConflict(true);
</script> </script>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
</head> </head>
<body> <body>

View File

@ -17,7 +17,7 @@
</head> </head>
<body> <body>
<div> <div>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
</div> </div>
<script> <script>
jQuery(function() { jQuery(function() {

View File

@ -7,7 +7,7 @@
background: url('http://s1.postimage.org/2d2r8xih0/body_background.png'); background: url('http://s1.postimage.org/2d2r8xih0/body_background.png');
} }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../../../dist/jquery.js"></script>
</head> </head>
<body> <body>
<script> <script>

View File

@ -3,6 +3,10 @@
*/ */
jQuery.noConflict(); jQuery.noConflict();
// Expose Sizzle for Sizzle's selector tests
// We remove Sizzle's globalization in jQuery
var Sizzle = Sizzle || jQuery.find;
/** /**
* QUnit hooks * QUnit hooks
*/ */

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Event Delegation Tests</title> <title>Event Delegation Tests</title>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<style> <style>
table { table {
border-collapse: collapse; border-collapse: collapse;

View File

@ -1,7 +1,7 @@
<html> <html>
<head> <head>
<title>Hover tests</title> <title>Hover tests</title>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<style> <style>
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */ /* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
body, html { body, html {

View File

@ -8,7 +8,7 @@
<!-- Includes --> <!-- Includes -->
<script src="data/testinit.js"></script> <script src="data/testinit.js"></script>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<script src="qunit/qunit/qunit.js"></script> <script src="qunit/qunit/qunit.js"></script>
<script src="data/testrunner.js"></script> <script src="data/testrunner.js"></script>

View File

@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Local File Test</title> <title>jQuery Local File Test</title>
<!-- Includes --> <!-- Includes -->
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<style> <style>
.error { color: red; } .error { color: red; }
.success { color: green; } .success { color: green; }

View File

@ -15,7 +15,7 @@
<style> <style>
div { margin-top: 10px; } div { margin-top: 10px; }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$('button').live('click', function () { $('button').live('click', function () {
$.ajax({ $.ajax({

View File

@ -14,7 +14,7 @@
#output { background-color: green } #output { background-color: green }
#expectedOutput { background-color: green } #expectedOutput { background-color: green }
</style> </style>
<script src="/dist/jquery.js"></script> <script src="../dist/jquery.js"></script>
<!-- Load the script loader that uses <!-- Load the script loader that uses
jQuery.readyWait --> jQuery.readyWait -->