diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-06-10 21:54:16 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-06-10 21:54:16 -0400 |
commit | 5f35b3d9f90d07ee084d59702a54051ee51fb0d3 (patch) | |
tree | 7c412b9602b6a3a48435f5adb1d3c84b97bd20dc /test/unit/support.js | |
parent | 1bb1432fe995881821f433c5b7bf86c61f3b3f50 (diff) | |
download | jquery-5f35b3d9f90d07ee084d59702a54051ee51fb0d3.tar.gz jquery-5f35b3d9f90d07ee084d59702a54051ee51fb0d3.zip |
Fix #11857. Modularize css.js, add dependency management. Closes gh-816.
See the pull request for more info on the dependency management details.
Diffstat (limited to 'test/unit/support.js')
-rw-r--r-- | test/unit/support.js | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index bb4887921..e733d520d 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -6,30 +6,32 @@ test("boxModel", function() { equal( jQuery.support.boxModel, document.compatMode === "CSS1Compat" , "jQuery.support.boxModel is sort of tied to quirks mode but unstable since 1.8" ); }); -testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9238)", "support/bodyBackground", function( color, support ) { - expect( 2 ); - var i, - passed = true, - okValue = { - "#000000": true, - "rgb(0, 0, 0)": true - }; - ok( okValue[ color ], "color was not reset (" + color + ")" ); +if ( jQuery.css ) { + testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9238)", "support/bodyBackground", function( color, support ) { + expect( 2 ); + var i, + passed = true, + okValue = { + "#000000": true, + "rgb(0, 0, 0)": true + }; + ok( okValue[ color ], "color was not reset (" + color + ")" ); - for ( i in jQuery.support ) { - if ( jQuery.support[ i ] !== support[ i ] ) { - passed = false; - strictEqual( jQuery.support[ i ], support[ i ], "Support property " + i + " is different" ); + for ( i in jQuery.support ) { + if ( jQuery.support[ i ] !== support[ i ] ) { + passed = false; + strictEqual( jQuery.support[ i ], support[ i ], "Support property " + i + " is different" ); + } } - } - for ( i in support ) { - if ( !( i in jQuery.support ) ) { - passed = false; - strictEqual( jQuery.support[ i ], support[ i ], "Unexpected property: " + i ); + for ( i in support ) { + if ( !( i in jQuery.support ) ) { + passed = false; + strictEqual( jQuery.support[ i ], support[ i ], "Unexpected property: " + i ); + } } - } - ok( passed, "Same support properties" ); -}); + ok( passed, "Same support properties" ); + }); +} testIframeWithCallback( "A background on the testElement does not cause IE8 to crash (#9823)", "support/testElementCrash", function() { expect(1); |