| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>Range.selectNode() and .selectNodeContents() tests</title> | 2 <title>Range.selectNode() and .selectNodeContents() 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 <meta name=timeout content=long> | 4 <meta name=timeout content=long> |
| 5 <div id=log></div> | 5 <div id=log></div> |
| 6 <script src=../../../../resources/testharness.js></script> | 6 <script src=/resources/testharness.js></script> |
| 7 <script src=../../../../resources/testharnessreport.js></script> | 7 <script src=/resources/testharnessreport.js></script> |
| 8 <script src=../common.js></script> | 8 <script src=../common.js></script> |
| 9 <script> | 9 <script> |
| 10 "use strict"; | 10 "use strict"; |
| 11 | 11 |
| 12 function testSelectNode(range, node) { | 12 function testSelectNode(range, node) { |
| 13 try { | 13 try { |
| 14 range.collapsed; | 14 range.collapsed; |
| 15 } catch (e) { | 15 } catch (e) { |
| 16 // Range is detached | 16 // Range is detached |
| 17 assert_throws("INVALID_STATE_ERR", function () { | 17 assert_throws("INVALID_STATE_ERR", function () { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 docfrag, foreignDocfrag, xmlDocfrag]; | 90 docfrag, foreignDocfrag, xmlDocfrag]; |
| 91 | 91 |
| 92 for (var i = 0; i < otherTests.length; i++) { | 92 for (var i = 0; i < otherTests.length; i++) { |
| 93 testTree(otherTests[i], " "); | 93 testTree(otherTests[i], " "); |
| 94 } | 94 } |
| 95 | 95 |
| 96 generate_tests(testSelectNode, tests); | 96 generate_tests(testSelectNode, tests); |
| 97 | 97 |
| 98 testDiv.style.display = "none"; | 98 testDiv.style.display = "none"; |
| 99 </script> | 99 </script> |
| OLD | NEW |