[OpenLayers-Commits] r2118 - trunk/openlayers/tests
commits at openlayers.org
commits at openlayers.org
Tue Jan 2 17:33:39 EST 2007
Author: euzuro
Date: 2007-01-02 17:33:38 -0500 (Tue, 02 Jan 2007)
New Revision: 2118
Modified:
trunk/openlayers/tests/test_Icon.html
Log:
updating icon test - was failing in Opera
Modified: trunk/openlayers/tests/test_Icon.html
===================================================================
--- trunk/openlayers/tests/test_Icon.html 2007-01-02 20:33:03 UTC (rev 2117)
+++ trunk/openlayers/tests/test_Icon.html 2007-01-02 22:33:38 UTC (rev 2118)
@@ -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");
}
// -->
More information about the Commits
mailing list