aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-10-31 18:24:34 -0400
committertimmywil <timmywillisn@gmail.com>2011-10-31 18:24:34 -0400
commit006fde228da59ae71c11a67ef65dbfc09e788773 (patch)
tree12c68aa20a4e3bee87f2e93f21a3a77cf8aaf900 /test
parent0752687612d190f608e64181148ced1a4adfa5d6 (diff)
downloadjquery-006fde228da59ae71c11a67ef65dbfc09e788773.tar.gz
jquery-006fde228da59ae71c11a67ef65dbfc09e788773.zip
Pass iframe support tests at doc ready. Fixes support fail in FF7
Diffstat (limited to 'test')
-rw-r--r--test/data/support/bodyBackground.html4
-rw-r--r--test/unit/support.js8
2 files changed, 8 insertions, 4 deletions
diff --git a/test/data/support/bodyBackground.html b/test/data/support/bodyBackground.html
index 824fe65e4..3d135ab56 100644
--- a/test/data/support/bodyBackground.html
+++ b/test/data/support/bodyBackground.html
@@ -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>
diff --git a/test/unit/support.js b/test/unit/support.js
index 50a40e4a0..4917a5478 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -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;