[OpenLayers-Commits] r4779 - trunk/openlayers/tests/Format

commits at openlayers.org commits at openlayers.org
Wed Oct 3 10:57:47 EDT 2007


Author: crschmidt
Date: 2007-10-03 10:57:45 -0400 (Wed, 03 Oct 2007)
New Revision: 4779

Modified:
   trunk/openlayers/tests/Format/test_GeoRSS.html
Log:
Fix Format tests (committed the wrong one.) (See #1024)


Modified: trunk/openlayers/tests/Format/test_GeoRSS.html
===================================================================
--- trunk/openlayers/tests/Format/test_GeoRSS.html	2007-10-03 13:42:39 UTC (rev 4778)
+++ trunk/openlayers/tests/Format/test_GeoRSS.html	2007-10-03 14:57:45 UTC (rev 4779)
@@ -30,9 +30,9 @@
         t.plan(2);
 
         var parser = new OpenLayers.Format.GeoRSS();
-        var data = parser.read('<rss xmlns="http://backend.userland.com/rss2" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"><item><geo:long>-1</geo:long><geo:lat>1</geo:long></item></rss>');
-        t.eq(features.geometry.x, "-1", "w3c geo x read correctly"); 
-        t.eq(features.geometry.y, "1", "w3c geo y read correctly"); 
+        var data = parser.read('<rss xmlns="http://backend.userland.com/rss2" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"><item><geo:long>-1</geo:long><geo:lat>1</geo:lat></item></rss>');
+        t.eq(data[0].geometry.x, -1, "w3c geo x read correctly"); 
+        t.eq(data[0].geometry.y, 1, "w3c geo y read correctly"); 
     }
     function test_Format_GeoRSS_roundtrip(t) {
         t.plan(input.length);



More information about the Commits mailing list