OpenLayers OpenLayers

Changeset 6005

Show
Ignore:
Timestamp:
02/06/08 11:00:55 (1 year ago)
Author:
tschaub
Message:

More tests for XML format that pass in Safari - confirming nothing except that I have gone nuts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Format/test_XML.html

    r5501 r6005  
    1717            '<element>junk4<' + '/element>' +  
    1818            '<ol:element>junk5<' + '/ol:element>' +  
     19            '<ol:p>' + 
     20                '<ol:a>junk' + 
     21                '<' + '/ol:a>' +  
     22                '<ol:b>junk' + 
     23                '<' + '/ol:b>' +  
     24                '<ol:a>junk' + 
     25                '<' + '/ol:a>' +  
     26            '<' + '/ol:p>' +  
    1927        '<' + '/ol:root>'; 
    2028 
     
    139147 
    140148    function test_Format_XML_getElementsByTagNameNS(t) { 
    141         t.plan(3); 
     149        t.plan(5); 
    142150 
    143151        var format = new OpenLayers.Format.XML(); 
     
    159167        t.eq(nodes.length, 1, 
    160168             "gets correct number of nodes in default namespace"); 
     169         
     170        var pList = format.getElementsByTagNameNS(doc.documentElement, 
     171                                                  olUri, "p"); 
     172        t.eq(pList.length, 1, "got one ol:p element"); 
     173        var p = pList[0]; 
     174         
     175        var aList = format.getElementsByTagNameNS(p, olUri, "a"); 
     176        t.eq(aList.length, 2, "got two child ol:a elements"); 
     177         
     178         
    161179         
    162180    }