]> source.dussan.org Git - jquery.git/commitdiff
Pass iframe support tests at doc ready. Fixes support fail in FF7
authortimmywil <timmywillisn@gmail.com>
Mon, 31 Oct 2011 22:24:34 +0000 (18:24 -0400)
committertimmywil <timmywillisn@gmail.com>
Mon, 31 Oct 2011 22:24:34 +0000 (18:24 -0400)
test/data/support/bodyBackground.html
test/unit/support.js

index 824fe65e45d869f7993dec45c96c60db163b4150..3d135ab56f0434221c71dcfe53af49d57a0d6785 100644 (file)
@@ -32,7 +32,9 @@
                <script src="../../../src/dimensions.js"></script>
        </div>
        <script>
-               window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
+               jQuery(function() {
+                       window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
+               });
        </script>
 </body>
 </html>
index 50a40e4a05f0826303f31c4185f892ada5e3ef0f..4917a54785d94eabc1ac6a75979b0f5225e67f79 100644 (file)
@@ -33,12 +33,14 @@ supportIFrameTest( "proper boxModel in compatMode CSS1Compat (IE6 and IE7)", "bo
 
 supportIFrameTest( "body background is not lost if set prior to loading jQuery (#9238)", "bodyBackground", function( color, support ) {
        expect( 2 );
-       var okValue = {
+       var i,
+               passed = true,
+               okValue = {
                        "#000000": true,
                        "rgb(0, 0, 0)": true
-       };
+               };
        ok( okValue[ color ], "color was not reset (" + color + ")" );
-       var i, passed = true;
+
        for ( i in jQuery.support ) {
                if ( jQuery.support[ i ] !== support[ i ] ) {
                        passed = false;