From 430906ff2234fa473504fc80c66b5d0080f6a5e3 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 17 Dec 2007 01:19:57 +0000 Subject: [PATCH] FF3.0b1 has a bug with testing innerWidth/innerHeight of frames. This will be fixed in later versions, but none are released yet. git-svn-id: http://svn.openlayers.org/trunk/openlayers@5447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/run-tests.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/run-tests.html b/tests/run-tests.html index 02d52a579c..cabada0fec 100644 --- a/tests/run-tests.html +++ b/tests/run-tests.html @@ -899,7 +899,9 @@ Test.AnotherWay._test_page_onload=function() } }else { // otherwise (not IE) it ought to work like this for( var i in Test.AnotherWay._g_test_iframe) { - if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) { + // Hack to prevent failure in FF3.0b1 + if (i == "innerWidth" || i == "innerHeight") { continue; } + if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) { if( i.substring( 0, 4 )=="test" ) { test_page.test_objects.push( new Test.AnotherWay._test_object_t( i ) ); }