From 363299ac24aebbf2445207621840f44fcaaf670a Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Sun, 27 Jan 2013 23:34:38 -0500 Subject: [PATCH] Ref #13316: Sync all documents on full vs. minified source. Close gh-1147. --- src/support.js | 2 +- test/data/ajax/unreleasedXHR.html | 2 +- test/data/core/cc_on.html | 2 +- test/data/dimensions/documentLarge.html | 2 +- test/data/dimensions/documentSmall.html | 2 +- test/data/{ => event}/onbeforeunload.html | 2 +- test/data/event/promiseReady.html | 2 +- test/data/event/syncReady.html | 2 +- test/data/manipulation/iframe-denied.html | 2 +- test/data/offset/absolute.html | 2 +- test/data/offset/body.html | 2 +- test/data/offset/fixed.html | 2 +- test/data/offset/relative.html | 2 +- test/data/offset/scroll.html | 2 +- test/data/offset/static.html | 2 +- test/data/offset/table.html | 2 +- test/data/selector/html5_selector.html | 2 +- test/data/selector/sizzle_cache.html | 13 ++- test/data/support/bodyBackground.html | 2 +- test/data/support/csp.js | 3 + test/{ => data/support}/csp.php | 8 +- test/data/support/shrinkWrapBlocks.html | 2 +- test/data/support/testElementCrash.html | 2 +- test/delegatetest.html | 2 +- test/hovertest.html | 2 +- test/index.html | 2 +- test/jquery.js | 5 + test/localfile.html | 2 +- test/networkerror.html | 2 +- test/polluted.php | 110 ---------------------- test/readywait.html | 2 +- test/unit/event.js | 2 +- test/unit/selector.js | 7 +- test/unit/support.js | 26 ++--- 34 files changed, 58 insertions(+), 168 deletions(-) rename test/data/{ => event}/onbeforeunload.html (90%) create mode 100644 test/data/support/csp.js rename test/{ => data/support}/csp.php (50%) create mode 100644 test/jquery.js delete mode 100644 test/polluted.php diff --git a/src/support.js b/src/support.js index 35fb87612..166f50896 100644 --- a/src/support.js +++ b/src/support.js @@ -60,7 +60,7 @@ jQuery.support = (function() { support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: Firefox 17+ - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) div.setAttribute( "onfocusin", "t" ); support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false; diff --git a/test/data/ajax/unreleasedXHR.html b/test/data/ajax/unreleasedXHR.html index 6c3d8210b..5233354f5 100644 --- a/test/data/ajax/unreleasedXHR.html +++ b/test/data/ajax/unreleasedXHR.html @@ -3,7 +3,7 @@ Attempt to block tests because of dangling XHR requests (IE) - + - + + diff --git a/test/data/dimensions/documentSmall.html b/test/data/dimensions/documentSmall.html index 12cbf9385..63e1c2a8f 100644 --- a/test/data/dimensions/documentSmall.html +++ b/test/data/dimensions/documentSmall.html @@ -15,7 +15,7 @@
- +
diff --git a/test/data/onbeforeunload.html b/test/data/event/onbeforeunload.html similarity index 90% rename from test/data/onbeforeunload.html rename to test/data/event/onbeforeunload.html index ad3a1caeb..11ad1964a 100644 --- a/test/data/onbeforeunload.html +++ b/test/data/event/onbeforeunload.html @@ -1,6 +1,6 @@ - + + + diff --git a/test/data/manipulation/iframe-denied.html b/test/data/manipulation/iframe-denied.html index 28a530575..14df26a69 100644 --- a/test/data/manipulation/iframe-denied.html +++ b/test/data/manipulation/iframe-denied.html @@ -6,7 +6,7 @@
- + + + + + + + + + + - -
Worlds collide
- + diff --git a/test/data/support/bodyBackground.html b/test/data/support/bodyBackground.html index b0abc074f..8991007cf 100644 --- a/test/data/support/bodyBackground.html +++ b/test/data/support/bodyBackground.html @@ -17,7 +17,7 @@
- +
+ +

CSP Test Page

diff --git a/test/data/support/shrinkWrapBlocks.html b/test/data/support/shrinkWrapBlocks.html index 1ae15bfb5..a2097cb21 100644 --- a/test/data/support/shrinkWrapBlocks.html +++ b/test/data/support/shrinkWrapBlocks.html @@ -12,7 +12,7 @@
- +
+ + - + \n"; - if( $lib == "prototype" ) { // prototype must be included first - array_unshift( $includes, $include ); - } else { - array_push( $includes, $include ); - } - } - - $includes = implode( "\n", $includes ); - $suite = file_get_contents( "index.html" ); - echo str_replace( "", $includes, $suite ); - exit; - } -?> - - - - - Run jQuery Test Suite Polluted - - - - -

jQuery Test Suite

- -

Choose other libraries to include

- -
- $data ) { - echo "
$name"; - $i = 0; - foreach( $data[ "versions" ] as $ver ) { - $i++; - echo ""; - if( !($i % 4) ) echo "
"; - } - echo "
"; - } - ?> - -
- - diff --git a/test/readywait.html b/test/readywait.html index 4738b1b95..7a736bef5 100644 --- a/test/readywait.html +++ b/test/readywait.html @@ -14,7 +14,7 @@ #output { background-color: green } #expectedOutput { background-color: green } - + diff --git a/test/unit/event.js b/test/unit/event.js index c72d873f0..f5dd149a3 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -1372,7 +1372,7 @@ test("Submit event can be stopped (#11049)", function() { // Test beforeunload event only if it supported (i.e. not Opera) if ( window.onbeforeunload === null ) { asyncTest("on(beforeunload)", 1, function() { - var iframe = jQuery(jQuery.parseHTML("