diff options
author | timmywil <timmywillisn@gmail.com> | 2012-06-04 18:04:11 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2012-06-04 18:04:11 -0400 |
commit | 37ffb29d37129293523bf1deacf3609a28b0ceec (patch) | |
tree | bd4abc0dad0e8be6f3e2fdba9e9d04ff801e8108 /test | |
parent | 81c7b83d645d2f151e9e40f9f98cc4b70e81a62a (diff) | |
download | jquery-37ffb29d37129293523bf1deacf3609a28b0ceec.tar.gz jquery-37ffb29d37129293523bf1deacf3609a28b0ceec.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/csp.php | 2 | ||||
-rw-r--r-- | test/data/dimensions/documentLarge.html | 2 | ||||
-rw-r--r-- | test/data/dimensions/documentSmall.html | 2 | ||||
-rw-r--r-- | test/data/event/asyncReady.html | 2 | ||||
-rw-r--r-- | test/data/event/promiseReady.html | 2 | ||||
-rw-r--r-- | test/data/event/syncReady.html | 2 | ||||
-rw-r--r-- | test/data/offset/absolute.html | 2 | ||||
-rw-r--r-- | test/data/offset/body.html | 2 | ||||
-rw-r--r-- | test/data/offset/fixed.html | 2 | ||||
-rw-r--r-- | test/data/offset/relative.html | 2 | ||||
-rw-r--r-- | test/data/offset/scroll.html | 2 | ||||
-rw-r--r-- | test/data/offset/static.html | 2 | ||||
-rw-r--r-- | test/data/offset/table.html | 2 | ||||
-rw-r--r-- | test/data/selector/html5_selector.html | 2 | ||||
-rw-r--r-- | test/data/selector/sizzle_cache.html | 4 | ||||
-rw-r--r-- | test/data/support/bodyBackground.html | 2 | ||||
-rw-r--r-- | test/data/support/testElementCrash.html | 2 | ||||
-rw-r--r-- | test/data/testrunner.js | 4 | ||||
-rw-r--r-- | test/delegatetest.html | 2 | ||||
-rw-r--r-- | test/hovertest.html | 2 | ||||
-rw-r--r-- | test/index.html | 2 | ||||
-rw-r--r-- | test/localfile.html | 2 | ||||
-rw-r--r-- | test/networkerror.html | 2 | ||||
-rw-r--r-- | test/readywait.html | 2 |
24 files changed, 28 insertions, 24 deletions
diff --git a/test/csp.php b/test/csp.php index 9c90300bf..e3245149c 100644 --- a/test/csp.php +++ b/test/csp.php @@ -5,7 +5,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CSP Test Page</title> - <script src="/dist/jquery.js"></script> + <script src="../dist/jquery.js"></script> </head> <body> <p>CSP Test Page</p> diff --git a/test/data/dimensions/documentLarge.html b/test/data/dimensions/documentLarge.html index ee9a709ae..b2fabd144 100644 --- a/test/data/dimensions/documentLarge.html +++ b/test/data/dimensions/documentLarge.html @@ -11,7 +11,7 @@ </head> <body> <div> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> </div> </body> </html> diff --git a/test/data/dimensions/documentSmall.html b/test/data/dimensions/documentSmall.html index fe55d2125..d5eeacfc2 100644 --- a/test/data/dimensions/documentSmall.html +++ b/test/data/dimensions/documentSmall.html @@ -15,7 +15,7 @@ </head> <body> <div> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> </div> </body> </html> diff --git a/test/data/event/asyncReady.html b/test/data/event/asyncReady.html index f1f6aa20f..174c0f780 100644 --- a/test/data/event/asyncReady.html +++ b/test/data/event/asyncReady.html @@ -19,7 +19,7 @@ if ( document.attachEvent ) { }); } document.getElementsByTagName("head")[ 0 ].appendChild( el ); - el.src = "/dist/jquery.js"; + el.src = "../../../dist/jquery.js"; }, 1000 ); } </script> diff --git a/test/data/event/promiseReady.html b/test/data/event/promiseReady.html index 04e45ae8d..f8567cc91 100644 --- a/test/data/event/promiseReady.html +++ b/test/data/event/promiseReady.html @@ -3,7 +3,7 @@ <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <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"> jQuery.when( jQuery.ready ).done(function() { jQuery("body").append("<div>modifying DOM</div>"); diff --git a/test/data/event/syncReady.html b/test/data/event/syncReady.html index fcd2ac23a..c542c987a 100644 --- a/test/data/event/syncReady.html +++ b/test/data/event/syncReady.html @@ -3,7 +3,7 @@ <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <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> <body> <script type="text/javascript"> diff --git a/test/data/offset/absolute.html b/test/data/offset/absolute.html index 7d659a382..78db1a378 100644 --- a/test/data/offset/absolute.html +++ b/test/data/offset/absolute.html @@ -15,7 +15,7 @@ p.instructions { position: absolute; bottom: 0; } #positionTest { position: absolute; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 5e955ea73..20b0583eb 100644 --- a/test/data/offset/body.html +++ b/test/data/offset/body.html @@ -8,7 +8,7 @@ body { margin: 1px; padding: 5px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 25e1010f4..6fa2af992 100644 --- a/test/data/offset/fixed.html +++ b/test/data/offset/fixed.html @@ -12,7 +12,7 @@ #forceScroll { width: 5000px; height: 5000px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 8a1203abf..33b6abb6d 100644 --- a/test/data/offset/relative.html +++ b/test/data/offset/relative.html @@ -10,7 +10,7 @@ #relative-2 { top: 20px; left: 20px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 26cd6fcaf..716891c86 100644 --- a/test/data/offset/scroll.html +++ b/test/data/offset/scroll.html @@ -13,7 +13,7 @@ #forceScroll { width: 5000px; height: 5000px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 64f1d7ec0..674a7d03a 100644 --- a/test/data/offset/static.html +++ b/test/data/offset/static.html @@ -10,7 +10,7 @@ #static-2 { top: 20px; left: 20px; } #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 f5bfbb693..004f4acb0 100644 --- a/test/data/offset/table.html +++ b/test/data/offset/table.html @@ -10,7 +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="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></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 99c5bdbfe..c62328903 100644 --- a/test/data/selector/html5_selector.html +++ b/test/data/selector/html5_selector.html @@ -4,7 +4,7 @@ <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>jQuery selector - attributes</title> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> <script id="script1" defer diff --git a/test/data/selector/sizzle_cache.html b/test/data/selector/sizzle_cache.html index 6260e2ab9..5b8bbb485 100644 --- a/test/data/selector/sizzle_cache.html +++ b/test/data/selector/sizzle_cache.html @@ -4,11 +4,11 @@ <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>jQuery selector - sizzle cache</title> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> <script> var $cached = jQuery.noConflict(true); </script> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> </head> <body> diff --git a/test/data/support/bodyBackground.html b/test/data/support/bodyBackground.html index d1d118843..ebfa341c4 100644 --- a/test/data/support/bodyBackground.html +++ b/test/data/support/bodyBackground.html @@ -17,7 +17,7 @@ </head> <body> <div> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> </div> <script> jQuery(function() { diff --git a/test/data/support/testElementCrash.html b/test/data/support/testElementCrash.html index 5ea5464b3..1ede71c71 100644 --- a/test/data/support/testElementCrash.html +++ b/test/data/support/testElementCrash.html @@ -7,7 +7,7 @@ background: url('http://s1.postimage.org/2d2r8xih0/body_background.png'); } </style> - <script src="/dist/jquery.js"></script> + <script src="../../../dist/jquery.js"></script> </head> <body> <script> diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 3afb1a650..fe720cec3 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -3,6 +3,10 @@ */ jQuery.noConflict(); +// Expose Sizzle for Sizzle's selector tests +// We remove Sizzle's globalization in jQuery +var Sizzle = Sizzle || jQuery.find; + /** * QUnit hooks */ diff --git a/test/delegatetest.html b/test/delegatetest.html index 387005e41..9c3718b19 100644 --- a/test/delegatetest.html +++ b/test/delegatetest.html @@ -2,7 +2,7 @@ <html> <head> <title>Event Delegation Tests</title> -<script src="/dist/jquery.js"></script> +<script src="../dist/jquery.js"></script> <style> table { border-collapse: collapse; diff --git a/test/hovertest.html b/test/hovertest.html index 5d5355d4c..2f85d5e62 100644 --- a/test/hovertest.html +++ b/test/hovertest.html @@ -1,7 +1,7 @@ <html> <head> <title>Hover tests</title> -<script src="/dist/jquery.js"></script> +<script src="../dist/jquery.js"></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 2457f11de..b0aae40bf 100644 --- a/test/index.html +++ b/test/index.html @@ -8,7 +8,7 @@ <!-- Includes --> <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="data/testrunner.js"></script> diff --git a/test/localfile.html b/test/localfile.html index 2cfd13004..7d49c44e1 100644 --- a/test/localfile.html +++ b/test/localfile.html @@ -4,7 +4,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery Local File Test</title> <!-- Includes --> - <script src="/dist/jquery.js"></script> + <script src="../dist/jquery.js"></script> <style> .error { color: red; } .success { color: green; } diff --git a/test/networkerror.html b/test/networkerror.html index 64b59f93d..0c6b61f15 100644 --- a/test/networkerror.html +++ b/test/networkerror.html @@ -15,7 +15,7 @@ <style> div { margin-top: 10px; } </style> - <script src="/dist/jquery.js"></script> + <script src="../dist/jquery.js"></script> <script type="text/javascript"> $('button').live('click', function () { $.ajax({ diff --git a/test/readywait.html b/test/readywait.html index cd749a49d..9983be432 100644 --- a/test/readywait.html +++ b/test/readywait.html @@ -14,7 +14,7 @@ #output { background-color: green } #expectedOutput { background-color: green } </style> - <script src="/dist/jquery.js"></script> + <script src="../dist/jquery.js"></script> <!-- Load the script loader that uses jQuery.readyWait --> |