Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/text-match.html

Issue 1468913002: Find In Page hides the text when text color matches text search hightlight color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added descriptive variable name in function declarations Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/repaint/text-match.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/text-match.html b/third_party/WebKit/LayoutTests/fast/repaint/text-match.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa9358a0d99b883f235f9b9a31e9a3e22bbf74a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/text-match.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<script src="../../resources/ahem.js"></script>
+<script>
+ function highlightRange(id, start, end, active) {
pdr. 2015/12/01 23:58:48 Indent 4, or 2, but not both.
ramya.v 2015/12/10 09:39:37 Done.
+ 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>
+<span id="1" style="font-family: Ahem; font-size: 20px; color:#FF9632">findMe</span>
+</body>

Powered by Google App Engine
This is Rietveld 408576698