]> source.dussan.org Git - jquery.git/commitdiff
Relativize all urls pertaining to dist/jquery.js so users can run their server from...
authortimmywil <timmywillisn@gmail.com>
Mon, 4 Jun 2012 22:04:11 +0000 (18:04 -0400)
committertimmywil <timmywillisn@gmail.com>
Mon, 4 Jun 2012 22:04:11 +0000 (18:04 -0400)
25 files changed:
src/sizzle
test/csp.php
test/data/dimensions/documentLarge.html
test/data/dimensions/documentSmall.html
test/data/event/asyncReady.html
test/data/event/promiseReady.html
test/data/event/syncReady.html
test/data/offset/absolute.html
test/data/offset/body.html
test/data/offset/fixed.html
test/data/offset/relative.html
test/data/offset/scroll.html
test/data/offset/static.html
test/data/offset/table.html
test/data/selector/html5_selector.html
test/data/selector/sizzle_cache.html
test/data/support/bodyBackground.html
test/data/support/testElementCrash.html
test/data/testrunner.js
test/delegatetest.html
test/hovertest.html
test/index.html
test/localfile.html
test/networkerror.html
test/readywait.html

index 97128a76c3cf06732db953b1f9ffd6b5d2cca698..c24253c0556a75bfb145dccee6f074d064b3fdc3 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 97128a76c3cf06732db953b1f9ffd6b5d2cca698
+Subproject commit c24253c0556a75bfb145dccee6f074d064b3fdc3
index 9c90300bf71c6e57619fc8e1c1dafc34a83450b9..e3245149c47a975a0ea1a73ab4c483d7852076bd 100644 (file)
@@ -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>
index ee9a709ae05297581c67a9741b5de4ef97942861..b2fabd144db14457bd654f356dc2a3966d87e551 100644 (file)
@@ -11,7 +11,7 @@
 </head>
 <body>
        <div>
-               <script src="/dist/jquery.js"></script>
+               <script src="../../../dist/jquery.js"></script>
        </div>
 </body>
 </html>
index fe55d2125ffa949a732a9f98bd677ae6720b3fc9..d5eeacfc2e868901ef1b1f4297a452ef436a2ca6 100644 (file)
@@ -15,7 +15,7 @@
 </head>
 <body>
        <div>
-               <script src="/dist/jquery.js"></script>
+               <script src="../../../dist/jquery.js"></script>
        </div>
 </body>
 </html>
index f1f6aa20ffc47f666b3b318bf0cdfb716710c856..174c0f780025655121bf45d1275182d07c525aa3 100644 (file)
@@ -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>
index 04e45ae8d502a6c86b75be7faf4879e9daf4a48d..f8567cc91804c7dc1ac407a0e135c27b12ee451c 100644 (file)
@@ -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>");
index fcd2ac23a6bbbcee0b41eca75da2523bd5ad9aa5..c542c987abc9b76cb0ca1d9197cbfec346c3814b 100644 (file)
@@ -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">
index 7d659a38266cf355b041bca400afd039233171ff..78db1a3785bc49f91de3dea84157a2c00294398e 100644 (file)
@@ -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() {
index 5e955ea733fa9a61f9f9e75a8d566b731ee1cd5f..20b0583eb3ed66eec371daacb9072a7491a12501 100644 (file)
@@ -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() {
index 25e1010f444951483b2c40a381b6fef0264b2edd..6fa2af992eab2de434c45c15dace18047a6c2592 100644 (file)
@@ -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);
index 8a1203abf0549d05a61146edc4ea3866e70b09e7..33b6abb6d067849294356d5acbe193cd6758e344 100644 (file)
@@ -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() {
index 26cd6fcaf786edf472859cde752914ea538b8893..716891c868f0dc355528acb5f2dc8356ec93f2bf 100644 (file)
@@ -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);
index 64f1d7ec051f5ec6303063346354691141dae22a..674a7d03aac29108b6f0065bbbc62b63c06c0525 100644 (file)
@@ -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() {
index f5bfbb69317aa009e4aeb5ceef8f8eff4bd3ba5a..004f4acb0f3c7667804b1bc561a3071a115538a0 100644 (file)
@@ -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() {
index 99c5bdbfeb84b3496bcf3a31771759244996cf56..c62328903add2785533d9c58579ec886d0a0bdb3 100644 (file)
@@ -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
index 6260e2ab9e9b7aff89ae9c5d5c8f7479a28fa706..5b8bbb485b990062a192724c5cb9cb5d0162f9f9 100644 (file)
@@ -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>
index d1d118843cb2ac5db3c235a9196d4b867e175731..ebfa341c4ba75be029941e2e6911501b787a7861 100644 (file)
@@ -17,7 +17,7 @@
 </head>
 <body>
        <div>
-               <script src="/dist/jquery.js"></script>
+               <script src="../../../dist/jquery.js"></script>
        </div>
        <script>
                jQuery(function() {
index 5ea5464b37145c7aaa888617485137ad580f2571..1ede71c718579cd0e37fa8a9fe9581abd34dc6b0 100644 (file)
@@ -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>
index 3afb1a650a40087ca77dadc6f9be5583c30619fb..fe720cec3ac6517bd5a9e006d542983dac082a36 100644 (file)
@@ -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
  */
index 387005e41cb52efde5569681e0bd06cb126b9342..9c3718b1924764669de7c3eede02cca3cf9f2292 100644 (file)
@@ -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;
index 5d5355d4cd9a6abdacf25beb5a13a1fb0dd54576..2f85d5e62bdb8348fb4ce53337e324f66c89dd97 100644 (file)
@@ -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 {
index 2457f11de4a59b997328f35834ed06ad0dd4a97d..b0aae40bfce80d9750347cd7c42c7b3b65198410 100644 (file)
@@ -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>
index 2cfd130048109a25fb3d466479edeb355ca74ac3..7d49c44e1bb92c9ddeb36aba78d2dc96d313c2e9 100644 (file)
@@ -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; }
index 64b59f93d439aa9a643c1d73274d175cf92daf9e..0c6b61f152856252704a0ae184091bcf44df476f 100644 (file)
@@ -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({
index cd749a49d1ac3c0fd8130ee676405ff990e5051b..9983be432272a841ca2e361be10b3d9f8c813f01 100644 (file)
@@ -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 -->