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:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user