| 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>
|
|
|