make tests pass on FF with the 'file' protocol. r=elemoine (closes #2660)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10378 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -917,8 +917,8 @@ Test.AnotherWay._test_page_onload=function()
|
|||||||
}
|
}
|
||||||
}else { // otherwise (not IE) it ought to work like this
|
}else { // otherwise (not IE) it ought to work like this
|
||||||
for( var i in Test.AnotherWay._g_test_iframe) {
|
for( var i in Test.AnotherWay._g_test_iframe) {
|
||||||
// Hack to prevent failure in FF3.0b1
|
// Hack to prevent failure in FF3.0b1 (innerWidth/innerHeight) and FF>=3.5 (sessionStorage)
|
||||||
if (i == "innerWidth" || i == "innerHeight") { continue; }
|
if (i == "innerWidth" || i == "innerHeight" || i == "sessionStorage") { continue; }
|
||||||
if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) {
|
if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) {
|
||||||
if( i.substring( 0, 4 )=="test" ) {
|
if( i.substring( 0, 4 )=="test" ) {
|
||||||
test_page.test_objects.push( new Test.AnotherWay._test_object_t( i ) );
|
test_page.test_objects.push( new Test.AnotherWay._test_object_t( i ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user