From 33f088675c1f2ca4e179d6b6d3362ab7536b9692 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 2 Jan 2007 22:33:38 +0000 Subject: [PATCH] updating icon test - was failing in Opera git-svn-id: http://svn.openlayers.org/trunk/openlayers@2118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Icon.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_Icon.html b/tests/test_Icon.html index c93d3e31db..5aaba8cd8f 100644 --- a/tests/test_Icon.html +++ b/tests/test_Icon.html @@ -24,16 +24,14 @@ t.eq( cloned.url, "b", "cloned.url does change when edited" ); } - function test_02_Marker_setOpacity(t) { + function test_03_Marker_setOpacity(t) { t.plan( 2 ); icon = new OpenLayers.Icon("a",new OpenLayers.Size(5,6)); - t.ok(!icon.imageDiv.style.opacity, "default icon has no opacity"); icon.setOpacity(0.5); - - t.eq(icon.imageDiv.style.opacity + "", "0.5", "icon.setOpacity() works"); + t.eq(parseFloat(icon.imageDiv.style.opacity), 0.5, "icon.setOpacity() works"); } // -->