fix Layer/Vector.html tests in FF4 (closes #3298)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11968 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -685,9 +685,12 @@
|
||||
"given graphicHeight and graphicWidth, both are set: width");
|
||||
feature.style = customStyle5;
|
||||
layer.drawFeature(feature);
|
||||
t.eq(root.firstChild.getAttributeNS(null, 'style'),
|
||||
'opacity: '+customStyle5.graphicOpacity.toString()+((OpenLayers.BROWSER_NAME == "opera" || OpenLayers.BROWSER_NAME == "safari") ? "" : ';'),
|
||||
"graphicOpacity correctly set");
|
||||
// we use startsWith here as some browsers (at least Safari 3 and FireFox 4)
|
||||
// do not append a semi-colon to the opacity string
|
||||
t.ok(OpenLayers.String.startsWith(
|
||||
root.firstChild.getAttributeNS(null, 'style'),
|
||||
"opacity: " + customStyle5.graphicOpacity.toString()),
|
||||
"graphicOpacity correctly set");
|
||||
feature.style = customStyle6;
|
||||
layer.drawFeature(feature);
|
||||
var x = geometryX / renderer.getResolution() + renderer.left;
|
||||
|
||||
Reference in New Issue
Block a user