More tests for XML format that pass in Safari - confirming nothing except that I have gone nuts
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user