Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / documentmarker-set-active.html
blob35f28fd21387d889fa80f48b3951cab244d98fac
1 <html>
2 <script src="../../resources/js-test.js"></script>
3 <body style="min-height: 5000px">
4 <span id="elt">text</span>
6 <script>
7 description('Checks that bounds are handled properly when activating TextMatch markers.');
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 var range = document.createRange();
13 var elt = document.getElementById('elt').firstChild;
14 range.setStart(elt, 1);
15 range.setEnd(elt, 3);
17 if (!window.internals) {
18 alert('This test requires window.interals to run!');
19 } else {
20 window.internals.addTextMatchMarker(range, false);
22 window.internals.setMarkersActive(elt, 0, 1, true);
23 shouldBe('window.internals.activeMarkerCountForNode(elt)', '0');
25 window.internals.setMarkersActive(elt, 1, 2, true);
26 shouldBe('window.internals.activeMarkerCountForNode(elt)', '1');
28 window.internals.setMarkersActive(elt, 2, 3, false);
29 shouldBe('window.internals.activeMarkerCountForNode(elt)', '0');
31 window.internals.setMarkersActive(elt, 3, 4, true);
32 shouldBe('window.internals.activeMarkerCountForNode(elt)', '0');
35 var successfullyParsed = true;
36 </script>
37 </body>
38 </html>