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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <div>
4 <p id="text">
5 This tests that the methods that set selection colors for Linux work correctly.
6 </p>
7 <p>(All the text in the above sentence should be highlighted red with green text )</p>
8 </div>
9 <script>
10 if (window.layoutTestController) {
11 layoutTestController.forceRedSelectionColors()
12 }
13
14 var div = document.getElementById("text");
15 var sel = window.getSelection();
16 var range = document.createRange();
17 range.selectNode(div);
18 sel.addRange(range);
19 </script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698