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 tile;
function test_01_Tile_Image_constructor (t) {
@@ -28,7 +29,10 @@
"http://www.openlayers.org/dev/tests/tileimage",
new OpenLayers.Size(5,6));
tile.draw();
t.ok( tile.img instanceof HTMLImageElement, "tile.draw creates an image");
if (!isMozilla)
t.ok( true, "skipping element test outside of Mozilla");
else
t.ok( tile.img instanceof HTMLImageElement, "tile.draw creates an image");
t.eq( tile.img.src, "http://www.openlayers.org/dev/tests/tileimage", "tile.draw creates an image");
t.eq( tile.img.style.width, "5px", "Image width is correct" );
t.eq( tile.img.style.height, "6px", "Image height is correct" );