[OpenLayers-Commits] r6005 - trunk/openlayers/tests/Format
commits at openlayers.org
commits at openlayers.org
Wed Feb 6 11:00:55 EST 2008
Author: tschaub
Date: 2008-02-06 11:00:55 -0500 (Wed, 06 Feb 2008)
New Revision: 6005
Modified:
trunk/openlayers/tests/Format/test_XML.html
Log:
More tests for XML format that pass in Safari - confirming nothing except that I have gone nuts
Modified: trunk/openlayers/tests/Format/test_XML.html
===================================================================
--- trunk/openlayers/tests/Format/test_XML.html 2008-02-06 15:34:16 UTC (rev 6004)
+++ trunk/openlayers/tests/Format/test_XML.html 2008-02-06 16:00:55 UTC (rev 6005)
@@ -16,6 +16,14 @@
'<ol:child>junk3<' + '/ol:child>' +
'<element>junk4<' + '/element>' +
'<ol:element>junk5<' + '/ol:element>' +
+ '<ol:p>' +
+ '<ol:a>junk' +
+ '<' + '/ol:a>' +
+ '<ol:b>junk' +
+ '<' + '/ol:b>' +
+ '<ol:a>junk' +
+ '<' + '/ol:a>' +
+ '<' + '/ol:p>' +
'<' + '/ol:root>';
function test_Format_XML_constructor(t) {
@@ -138,7 +146,7 @@
}
function test_Format_XML_getElementsByTagNameNS(t) {
- t.plan(3);
+ t.plan(5);
var format = new OpenLayers.Format.XML();
var olUri = "http://namespace.openlayers.org";
@@ -159,6 +167,16 @@
t.eq(nodes.length, 1,
"gets correct number of nodes in default namespace");
+ var pList = format.getElementsByTagNameNS(doc.documentElement,
+ olUri, "p");
+ t.eq(pList.length, 1, "got one ol:p element");
+ var p = pList[0];
+
+ var aList = format.getElementsByTagNameNS(p, olUri, "a");
+ t.eq(aList.length, 2, "got two child ol:a elements");
+
+
+
}
function test_Format_XML_getAttributeNodeNS(t) {
More information about the Commits
mailing list