| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>Node.compareDocumentPosition() tests</title> | 2 <title>Node.compareDocumentPosition() tests</title> |
| 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> | 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> |
| 4 <div id=log></div> | 4 <div id=log></div> |
| 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 <script src=../common.js></script> | 7 <script src=../common.js></script> |
| 8 <script> | 8 <script> |
| 9 "use strict"; | 9 "use strict"; |
| 10 | 10 |
| 11 testNodes.forEach(function(referenceName) { | 11 testNodes.forEach(function(referenceName) { |
| 12 var reference = eval(referenceName); | 12 var reference = eval(referenceName); |
| 13 testNodes.forEach(function(otherName) { | 13 testNodes.forEach(function(otherName) { |
| 14 var other = eval(otherName); | 14 var other = eval(otherName); |
| 15 test(function() { | 15 test(function() { |
| 16 var result = reference.compareDocumentPosition(other); | 16 var result = reference.compareDocumentPosition(other); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // "Return DOCUMENT_POSITION_FOLLOWING." | 79 // "Return DOCUMENT_POSITION_FOLLOWING." |
| 80 assert_equals(result, Node.DOCUMENT_POSITION_FOLLOWING); | 80 assert_equals(result, Node.DOCUMENT_POSITION_FOLLOWING); |
| 81 }, referenceName + ".compareDocumentPosition(" + otherName + ")"); | 81 }, referenceName + ".compareDocumentPosition(" + otherName + ")"); |
| 82 }); | 82 }); |
| 83 }); | 83 }); |
| 84 | 84 |
| 85 testDiv.parentNode.removeChild(testDiv); | 85 testDiv.parentNode.removeChild(testDiv); |
| 86 </script> | 86 </script> |
| 87 <!-- vim: set expandtab tabstop=2 shiftwidth=2: --> | 87 <!-- vim: set expandtab tabstop=2 shiftwidth=2: --> |
| OLD | NEW |