fix SVG tests in webkit
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -409,9 +409,16 @@
|
|||||||
|
|
||||||
var polygon = document.getElementById(r.container.id + "_defs").firstChild.firstChild;
|
var polygon = document.getElementById(r.container.id + "_defs").firstChild.firstChild;
|
||||||
|
|
||||||
var points = polygon.getAttribute("points");
|
var pass = false;
|
||||||
|
for (var i = 0; i < polygon.points.numberOfItems; i++) {
|
||||||
t.eq(points.replace(/ /g,''), "0,00,11,11,00,0", "Square symbol rendered correctly");
|
var p = polygon.points.getItem(i);
|
||||||
|
pass = p.x === OpenLayers.Renderer.symbol.square[2*i] &&
|
||||||
|
p.y === OpenLayers.Renderer.symbol.square[2*i+1];
|
||||||
|
if (!pass) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
t.ok(pass, "Square symbol rendered correctly");
|
||||||
t.ok(r.symbolMetrics["-square"], "Symbol metrics cached correctly.");
|
t.ok(r.symbolMetrics["-square"], "Symbol metrics cached correctly.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user