All tests now pass in IE.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-05-24 05:46:54 +00:00
parent cfb1b472a7
commit 0e6b61c352
9 changed files with 66 additions and 20 deletions
+5 -1
View File
@@ -2,6 +2,7 @@
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
function test_01_Layer_Text_constructor (t) {
@@ -27,7 +28,10 @@
t.eq( map.layers[0].name, layer.name, "Layer added to map okay" );
t.delay_call( 1, function() {
map.setCenter(new OpenLayers.LonLat(0,0),0);
t.ok( map.layers[0].div.firstChild instanceof HTMLImageElement, "Marker added to div" )
if (!isMozilla)
t.ok( true, "skipping element test outside of Mozilla");
else
t.ok( map.layers[0].div.firstChild instanceof HTMLImageElement, "Marker added to div" )
t.eq( map.layers[0].div.firstChild.style.top, "219px", "Marker top set correctly" )
t.eq( map.layers[0].div.firstChild.style.left, "273px", "Marker left set correctly" )
});;