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

Unified Diff: webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html

Issue 554004: GTK: Use GTK+ theme selection colors and plumb them into webkit. (Closed)
Patch Set: Move layout tests to correct paths Created 10 years, 11 months 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: webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html
diff --git a/webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html b/webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html
new file mode 100644
index 0000000000000000000000000000000000000000..eea9d283d8f4bfa0046d4f68d57f5c44f4e4f885
--- /dev/null
+++ b/webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html
@@ -0,0 +1,21 @@
+<html>
+<body>
+<div>
+<p id="text">
+This tests that the methods that set selection colors for Linux work correctly.
+</p>
+<p>(All the text in the above sentence should be highlighted red with green text)</p>
+</div>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.forceRedSelectionColors()
+}
+
+var div = document.getElementById("text");
+var sel = window.getSelection();
+var range = document.createRange();
+range.selectNode(div);
+sel.addRange(range);
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698