Add a test to ensure that matched text markers are not highlighted when highlight...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Dec 2017 17:35:28 +0000 (17:35 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Dec 2017 17:35:28 +0000 (17:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180919

Reviewed by Antti Koivisto.

* fast/text/mark-matches-rendering-when-highlight-disabled-expected.html: Added.
* fast/text/mark-matches-rendering-when-highlight-disabled.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226054 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled-expected.html [new file with mode: 0644]
LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled.html [new file with mode: 0644]

index 7f2ee21..a6d118d 100644 (file)
@@ -1,5 +1,15 @@
 2017-12-18  Daniel Bates  <dabates@apple.com>
 
+        Add a test to ensure that matched text markers are not highlighted when highlight is disabled
+        https://bugs.webkit.org/show_bug.cgi?id=180919
+
+        Reviewed by Antti Koivisto.
+
+        * fast/text/mark-matches-rendering-when-highlight-disabled-expected.html: Added.
+        * fast/text/mark-matches-rendering-when-highlight-disabled.html: Added.
+
+2017-12-18  Daniel Bates  <dabates@apple.com>
+
         Add SPI to query for the current and last auto fill button type and pass user data object to _webView:focusShouldStartInputSession:
         https://bugs.webkit.org/show_bug.cgi?id=180774
         <rdar://problem/36033832>
diff --git a/LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled-expected.html b/LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled-expected.html
new file mode 100644 (file)
index 0000000..2d90eb2
--- /dev/null
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p style="display:inline-block; background-color:red">
+Quo usque tandem abutere, Catilina, patientia nostra?
+</p>
+</body>
+</html>
diff --git a/LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled.html b/LayoutTests/fast/text/mark-matches-rendering-when-highlight-disabled.html
new file mode 100644 (file)
index 0000000..2c76e20
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p style="display:inline-block; background-color:red">
+Quo usque tandem abutere, Catilina, patientia nostra?
+</p>
+<script>
+if (window.internals) {
+    internals.setMarkedTextMatchesAreHighlighted(false);
+    internals.countMatchesForText("Quo usque tandem abutere, Catilina, patientia nostra?", [], "mark");
+}
+</script>
+</body>
+</html>