fix up Layer.Vector tests in IE which were broken as of r10039, r=elemoine (closes #2465)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -568,6 +568,8 @@
|
|||||||
"height is set correctly");
|
"height is set correctly");
|
||||||
feature.style = customStyle4;
|
feature.style = customStyle4;
|
||||||
layer.drawFeature(feature);
|
layer.drawFeature(feature);
|
||||||
|
var left = parseInt(root.firstChild.style.left);
|
||||||
|
var top = parseInt(root.firstChild.style.top);
|
||||||
t.eq(root.firstChild.style.height,
|
t.eq(root.firstChild.style.height,
|
||||||
customStyle4.graphicHeight.toString()+'px',
|
customStyle4.graphicHeight.toString()+'px',
|
||||||
"given graphicHeight and graphicWidth, both are set: height");
|
"given graphicHeight and graphicWidth, both are set: height");
|
||||||
@@ -591,15 +593,10 @@
|
|||||||
"graphicOpacity correctly set");
|
"graphicOpacity correctly set");
|
||||||
feature.style = customStyle6;
|
feature.style = customStyle6;
|
||||||
layer.drawFeature(feature);
|
layer.drawFeature(feature);
|
||||||
var x = geometryX / renderer.getResolution();
|
var offsetLeft = parseInt(root.firstChild.style.left);
|
||||||
var y = geometryY / renderer.getResolution();
|
var offsetTop = parseInt(root.firstChild.style.top);
|
||||||
t.eq(root.firstChild.style.left,
|
t.eq((offsetLeft-left)*2, customStyle6.graphicXOffset, "graphicXOffset correctly set");
|
||||||
(x + customStyle6.graphicXOffset).toFixed().toString()+'px',
|
t.eq((top-offsetTop)*2, customStyle6.graphicYOffset, "graphicYOffset correctly set");
|
||||||
"graphicXOffset correctly set");
|
|
||||||
|
|
||||||
t.eq(root.firstChild.style.top,
|
|
||||||
(y - (customStyle6.graphicYOffset+parseInt(root.firstChild.style.height))).toFixed().toString()+'px',
|
|
||||||
"graphicYOffset correctly set");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user