A number of tests were not working as expected in IE. Specifically:

* Layer-KaMap, Grid, and Map were all having commented out tests run by 
   Test.AnotherWay.
 * Layer.html was adding an additional , after a list in an object creation,
   which IE doesn't allow.
 * When setting the href="" of an <a> element, IE does not then return 
   the concatanation of the location+href via the DOM. 
 * EventPane has mouse handling tests which work in IE, but not in FF.


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-22 18:56:12 +00:00
parent f6a50a37fc
commit 9f0b0e0ed7
6 changed files with 18 additions and 10 deletions

View File

@@ -20,7 +20,11 @@
if (!map.getCenter()) map.zoomToMaxExtent();
map.addControl(control);
map.pan(5, 0);
t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink");
if (/MSIE/.test(navigator.userAgent)) {
t.eq($('permalink').href, "?lat=0&lon=1.75781&zoom=2", "Panning sets permalink");
} else {
t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink");
}
}
function test_03_Control_Permalink_updateLinksBase (t) {
t.plan( 2 );

View File

@@ -99,7 +99,7 @@
var options = { projection: projection,
maxExtent: maxExtent,
maxResolution: maxResolution,
numZoomLevels: numZoomLevels,
numZoomLevels: numZoomLevels
};
var layer = new OpenLayers.Layer('Test Layer', options);

View File

@@ -56,7 +56,11 @@
// MOUSEMOVE test does not seem to work...
// t.plan( 2 );
t.plan(1);
if (document.createEventObject) {
t.plan(3);
} else {
t.plan(1);
}
var map = new OpenLayers.Map('map');
layer = new OpenLayers.Layer.EventPane('Test Layer');

View File

@@ -114,13 +114,13 @@
* -insertColumn
* -insertRow
function test_07_Layer_Grid_moveTo(t) {
function 07_Layer_Grid_moveTo(t) {
}
function test_08_Layer_Grid_insertColumn(t) {
function 08_Layer_Grid_insertColumn(t) {
}
function test_09_Layer_Grid_insertRow(t) {
function 09_Layer_Grid_insertRow(t) {
}
*

View File

@@ -107,13 +107,13 @@
* -insertColumn
* -insertRow
function test_07_Layer_KaMap_moveTo(t) {
function 07_Layer_KaMap_moveTo(t) {
}
function test_08_Layer_KaMap_insertColumn(t) {
function 08_Layer_KaMap_insertColumn(t) {
}
function test_09_Layer_KaMap_insertRow(t) {
function 09_Layer_KaMap_insertRow(t) {
}
*

View File

@@ -154,7 +154,7 @@
/*** THIS IS A GOOD TEST, BUT IT SHOULD BE MOVED TO WMS.
* Also, it won't work until we figure out the viewSize bug
function test_08_Map_px_lonlat_translation (t) {
function 08_Map_px_lonlat_translation (t) {
t.plan( 6 );
map = new OpenLayers.Map($('map'));
var baseLayer = new OpenLayers.Layer.WMS("Test Layer",