X Tutup
Skip to content

Commit 006fde2

Browse files
committed
Pass iframe support tests at doc ready. Fixes support fail in FF7
1 parent 0752687 commit 006fde2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

test/data/support/bodyBackground.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
<script src="../../../src/dimensions.js"></script>
3333
</div>
3434
<script>
35-
window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
35+
jQuery(function() {
36+
window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
37+
});
3638
</script>
3739
</body>
3840
</html>

test/unit/support.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ supportIFrameTest( "proper boxModel in compatMode CSS1Compat (IE6 and IE7)", "bo
3333

3434
supportIFrameTest( "body background is not lost if set prior to loading jQuery (#9238)", "bodyBackground", function( color, support ) {
3535
expect( 2 );
36-
var okValue = {
36+
var i,
37+
passed = true,
38+
okValue = {
3739
"#000000": true,
3840
"rgb(0, 0, 0)": true
39-
};
41+
};
4042
ok( okValue[ color ], "color was not reset (" + color + ")" );
41-
var i, passed = true;
43+
4244
for ( i in jQuery.support ) {
4345
if ( jQuery.support[ i ] !== support[ i ] ) {
4446
passed = false;

0 commit comments

Comments
 (0)
X Tutup