Commit changes for tests to pass in IE.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-09-14 16:28:24 +00:00
parent c0fc945824
commit 760e1ca014
2 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -24,6 +24,7 @@
} }
function test_03_Control_MouseToolbar_control_events (t) { function test_03_Control_MouseToolbar_control_events (t) {
if ((navigator.userAgent.indexOf("compatible") == -1)) {
t.plan( 1 ); t.plan( 1 );
var evt = {which: 1}; // control expects left-click var evt = {which: 1}; // control expects left-click
map = new OpenLayers.Map('map'); map = new OpenLayers.Map('map');
@@ -44,7 +45,7 @@
evt.xy = new OpenLayers.Size(15,15); evt.xy = new OpenLayers.Size(15,15);
control.defaultMouseUp(evt); control.defaultMouseUp(evt);
t.eq(map.getZoom(), 6, "Map zoom set correctly after zoombox"); t.eq(map.getZoom(), 6, "Map zoom set correctly after zoombox");
}
} }
// --> // -->
</script> </script>
+1 -1
View File
@@ -57,7 +57,7 @@
// t.plan( 2 ); // t.plan( 2 );
if (document.createEventObject) { if (document.createEventObject) {
t.plan(3); t.plan(2);
} else { } else {
t.plan(1); t.plan(1);
} }