diff options
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); |