OLD | NEW |
1 <html> | 1 <html> |
2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.js"></script> |
3 <body style="min-height: 5000px"> | 3 <body style="min-height: 5000px"> |
4 <span id="elt">text</span> | 4 <span id="elt">text</span> |
5 | 5 |
6 <script> | 6 <script> |
7 description('Checks that two adjacent TextMatch markers are not being merged.'); | 7 description('Checks that two adjacent TextMatch markers are not being merged.'); |
8 | 8 |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 | 24 |
25 window.internals.addTextMatchMarker(rangeLeft, true); | 25 window.internals.addTextMatchMarker(rangeLeft, true); |
26 window.internals.addTextMatchMarker(rangeRight, true); | 26 window.internals.addTextMatchMarker(rangeRight, true); |
27 | 27 |
28 shouldBe('window.internals.markerCountForNode(elt, "textmatch")', '2'); | 28 shouldBe('window.internals.markerCountForNode(elt, "textmatch")', '2'); |
29 | 29 |
30 var successfullyParsed = true; | 30 var successfullyParsed = true; |
31 </script> | 31 </script> |
32 | 32 |
33 <script src="../js/resources/js-test-post.js"></script> | |
34 | 33 |
35 </body> | 34 </body> |
36 </html> | 35 </html> |
OLD | NEW |