| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>LookupNamespaceURI and IsDefaultNamespace tests</title> | 4 <title>LookupNamespaceURI and IsDefaultNamespace tests</title> |
| 5 <script src=../../../../resources/testharness.js></script> | 5 <script src=/resources/testharness.js></script> |
| 6 <script src=../../../../resources/testharnessreport.js></script> | 6 <script src=/resources/testharnessreport.js></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <h1>LookupNamespaceURI and IsDefaultNamespace</h1> | 9 <h1>LookupNamespaceURI and IsDefaultNamespace</h1> |
| 10 <div id="log"/> | 10 <div id="log"/> |
| 11 <script> | 11 <script> |
| 12 function lookupNamespaceURI(node, prefix, expected, name) { | 12 function lookupNamespaceURI(node, prefix, expected, name) { |
| 13 test(function() { | 13 test(function() { |
| 14 assert_equals(node.lookupNamespaceURI(prefix), expected); | 14 assert_equals(node.lookupNamespaceURI(prefix), expected); |
| 15 }, name); | 15 }, name); |
| 16 } | 16 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 isDefaultNamespace(document, 'bazURI', false, 'For document, baz namespace is no
t default'); | 107 isDefaultNamespace(document, 'bazURI', false, 'For document, baz namespace is no
t default'); |
| 108 isDefaultNamespace(document, 'http://www.w3.org/1999/xhtml', true, 'For document
, xhtml namespace is default'); | 108 isDefaultNamespace(document, 'http://www.w3.org/1999/xhtml', true, 'For document
, xhtml namespace is default'); |
| 109 | 109 |
| 110 var comment = document.createComment('comment'); | 110 var comment = document.createComment('comment'); |
| 111 document.appendChild(comment); | 111 document.appendChild(comment); |
| 112 lookupNamespaceURI(comment, 'bar', null, 'Comment does not have bar namespace'); | 112 lookupNamespaceURI(comment, 'bar', null, 'Comment does not have bar namespace'); |
| 113 | 113 |
| 114 </script> | 114 </script> |
| 115 </body> | 115 </body> |
| 116 </html> | 116 </html> |
| OLD | NEW |