File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 770
770
}
771
771
772
772
function test_setOpacity ( t ) {
773
-
773
+ var origRequestFrame = OpenLayers . Animation . requestFrame ;
774
+ OpenLayers . Animation . requestFrame = function ( fn ) { fn ( ) ; } ;
775
+
774
776
t . plan ( 5 ) ;
775
777
776
778
var map = new OpenLayers . Map ( 'map' ) ;
799
801
t . eq ( parseFloat ( tile . imgDiv . style . opacity ) , 0.2 , "tile opacity is correc" ) ;
800
802
801
803
map . destroy ( ) ;
804
+
805
+ OpenLayers . Animation . requestFrame = origRequestFrame
802
806
}
803
807
804
808
function test_getServerResolution ( t ) {
1309
1313
}
1310
1314
1311
1315
function test_delayed_back_buffer_removal ( t ) {
1316
+ var origRequestFrame = OpenLayers . Animation . requestFrame ;
1317
+ OpenLayers . Animation . requestFrame = function ( fn ) { fn ( ) ; } ;
1312
1318
1313
1319
//
1314
1320
// Test that the delaying of the back buffer removal behaves
1353
1359
// tear down
1354
1360
1355
1361
map . destroy ( ) ;
1362
+
1363
+ OpenLayers . Animation . requestFrame = origRequestFrame ;
1356
1364
}
1357
1365
1358
1366
function test_getGridData ( t ) {
You can’t perform that action at this time.
0 commit comments