Commit 006fde22 authored by timmywil's avatar timmywil

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

parent 07526876
...@@ -32,7 +32,9 @@ ...@@ -32,7 +32,9 @@
<script src="../../../src/dimensions.js"></script> <script src="../../../src/dimensions.js"></script>
</div> </div>
<script> <script>
jQuery(function() {
window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support ); window.parent.supportCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
});
</script> </script>
</body> </body>
</html> </html>
...@@ -33,12 +33,14 @@ supportIFrameTest( "proper boxModel in compatMode CSS1Compat (IE6 and IE7)", "bo ...@@ -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 ) { supportIFrameTest( "body background is not lost if set prior to loading jQuery (#9238)", "bodyBackground", function( color, support ) {
expect( 2 ); expect( 2 );
var okValue = { var i,
passed = true,
okValue = {
"#000000": true, "#000000": true,
"rgb(0, 0, 0)": true "rgb(0, 0, 0)": true
}; };
ok( okValue[ color ], "color was not reset (" + color + ")" ); ok( okValue[ color ], "color was not reset (" + color + ")" );
var i, passed = true;
for ( i in jQuery.support ) { for ( i in jQuery.support ) {
if ( jQuery.support[ i ] !== support[ i ] ) { if ( jQuery.support[ i ] !== support[ i ] ) {
passed = false; passed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment