setupId = popped.getLastTrackEventId();
-
popped.exec( 4, function() {
- if( popped.currentTime() > 3 && popped.currentTime() <= 5 ) {
- ok(OpenLayers, "OpenLayers is available");
- plus();
- ok (document.getElementById('openmapdiv1'), "First map is on the page" );
- plus();
- equals (document.getElementById('openmapdiv1').offsetParent.id, "map", "First map is inside the 'map' div" );
- plus();
- }
- } );
- popped.exec( 4, function() {
- if( popped.currentTime() > 3 && popped.currentTime() <= 5 ) {
- ok (document.getElementById('openmapdiv2'), "Second map is on the page" );
- plus();
- equals (document.getElementById('openmapdiv2').offsetParent.id, "map2", "Second map is inside the 'map2' div" );
- plus();
- }
- } );
- popped.exec( 4, function() {
- if( popped.currentTime() > 3 && popped.currentTime() <= 5 ) {
- ok (document.getElementById('openmapdiv3'), "Third map is on the page" );
- plus();
- equals (document.getElementById('openmapdiv3').offsetParent.id, "map3", "Third map is inside the 'map3' div" );
- plus();
- }
- } );
- popped.exec( 4, function() {
- if( popped.currentTime() > 3 && popped.currentTime() <= 5 ) {
- ok (document.getElementById('openmapdiv4'), "Fourth map is on the page" );
- plus();
- equals (document.getElementById('openmapdiv4').offsetParent.id, "map4", "Fourth map is inside the 'map4' div" );
- plus();
- }
- } );
- popped.exec( 6, function() {
- if( popped.currentTime() > 5 ) {
- ok (document.getElementById('openmapdiv2').style.display === "none" &&
- document.getElementById('openmapdiv3').style.display === "none" &&
- document.getElementById('openmapdiv4').style.display === "none" &&
- document.getElementById('openmapdiv1').style.display === "none", "All three maps are no longer visible" );
- plus();
- popped.pause().removeTrackEvent( setupId );
- ok( !document.getElementById('actualmap3'), "removed map was properly destroyed" );
- plus();
- }
+ ok(OpenLayers, "OpenLayers is available");
+ plus();
+ ok (document.getElementById('openmapdiv1'), "First map is on the page" );
+ plus();
+ equals (document.getElementById('openmapdiv1').offsetParent.id, "map", "First map is inside the 'map' div" );
+ plus();
+ } )
+ .exec( 4, function() {
+ ok (document.getElementById('openmapdiv2'), "Second map is on the page" );
+ plus();
+ equals (document.getElementById('openmapdiv2').offsetParent.id, "map2", "Second map is inside the 'map2' div" );
+ plus();
+ } )
+ .exec( 4, function() {
+ ok (document.getElementById('openmapdiv3'), "Third map is on the page" );
+ plus();
+ equals (document.getElementById('openmapdiv3').offsetParent.id, "map3", "Third map is inside the 'map3' div" );
+ plus();
+ } )
+ .exec( 4, function() {
+ ok (document.getElementById('openmapdiv4'), "Fourth map is on the page" );
+ plus();
+ equals (document.getElementById('openmapdiv4').offsetParent.id, "map4", "Fourth map is inside the 'map4' div" );
+ plus();
+ } )
+ .exec( 6, function() {
+ ok (document.getElementById('openmapdiv2').style.display === "none" &&
+ document.getElementById('openmapdiv3').style.display === "none" &&
+ document.getElementById('openmapdiv4').style.display === "none" &&
+ document.getElementById('openmapdiv1').style.display === "none", "All three maps are no longer visible" );
+ plus();
+ popped.pause().removeTrackEvent( setupId );
+ ok( !document.getElementById('actualmap3'), "removed map was properly destroyed" );
+ plus();
} );
} );