Pass iframe support tests at doc ready. Fixes support fail in FF7

This commit is contained in:
timmywil
2011-10-31 18:24:34 -04:00
parent 0752687612
commit 006fde228d
2 changed files with 8 additions and 4 deletions

View 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>

View 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;