| Index: third_party/WebKit/LayoutTests/fast/repaint/text-match-svg.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/text-match-svg.html b/third_party/WebKit/LayoutTests/fast/repaint/text-match-svg.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7ff43a5f513a9a80af841f2f701d8ea254ea1870
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/text-match-svg.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="../../resources/ahem.js"></script>
|
| +<script>
|
| + function highlightRange(id, start, end, active) {
|
| + var range = document.createRange();
|
| + var elem = document.getElementById(id).firstChild;
|
| + range.setStart(elem, start);
|
| + range.setEnd(elem, end);
|
| + window.internals.addTextMatchMarker(range, active);
|
| + window.internals.setMarkedTextMatchesAreHighlighted(document, true);
|
| + }
|
| + function highlightTest() {
|
| + highlightRange('1', 2, 5, true);
|
| + }
|
| +</script>
|
| +
|
| +<body onload="highlightTest()">
|
| +Test for crbug.com/512354
|
| +<p>Find In Page: The below text "ndM" from findMe should be highlighted as orange and painted as black</p>
|
| +<svg width="300px" height="100px">
|
| + <text id="1" x="0" y="16" style="font-family: Ahem; font-size: 20px; fill:#FF9632;">findMe</text>
|
| +</svg>
|
| +</body>
|
|
|