| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>Node constants</title> | 2 <title>Node constants</title> |
| 3 <script src="../../../../resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="../../../../resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script src="../constants.js"></script> | 5 <script src="../constants.js"></script> |
| 6 <div id="log"></div> | 6 <div id="log"></div> |
| 7 <script> | 7 <script> |
| 8 var objects; | 8 var objects; |
| 9 setup(function() { | 9 setup(function() { |
| 10 objects = [ | 10 objects = [ |
| 11 [Node, "Node interface object"], | 11 [Node, "Node interface object"], |
| 12 [Node.prototype, "Node prototype object"], | 12 [Node.prototype, "Node prototype object"], |
| 13 [document.createElement("foo"), "Element object"], | 13 [document.createElement("foo"), "Element object"], |
| 14 [document.createTextNode("bar"), "Text object"] | 14 [document.createTextNode("bar"), "Text object"] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 30 ], "nodeType") | 30 ], "nodeType") |
| 31 testConstants(objects, [ | 31 testConstants(objects, [ |
| 32 ["DOCUMENT_POSITION_DISCONNECTED", 0x01], | 32 ["DOCUMENT_POSITION_DISCONNECTED", 0x01], |
| 33 ["DOCUMENT_POSITION_PRECEDING", 0x02], | 33 ["DOCUMENT_POSITION_PRECEDING", 0x02], |
| 34 ["DOCUMENT_POSITION_FOLLOWING", 0x04], | 34 ["DOCUMENT_POSITION_FOLLOWING", 0x04], |
| 35 ["DOCUMENT_POSITION_CONTAINS", 0x08], | 35 ["DOCUMENT_POSITION_CONTAINS", 0x08], |
| 36 ["DOCUMENT_POSITION_CONTAINED_BY", 0x10], | 36 ["DOCUMENT_POSITION_CONTAINED_BY", 0x10], |
| 37 ["DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", 0x20] | 37 ["DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", 0x20] |
| 38 ], "createDocumentPosition") | 38 ], "createDocumentPosition") |
| 39 </script> | 39 </script> |
| OLD | NEW |