diff options
| author | Steve Block <steveblock@google.com> | 2011-05-06 11:45:16 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2011-05-12 13:44:10 +0100 |
| commit | cad810f21b803229eb11403f9209855525a25d57 (patch) | |
| tree | 29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /Source/WebCore/manual-tests/pre-tab-selection-rect.html | |
| parent | 121b0cf4517156d0ac5111caf9830c51b69bae8f (diff) | |
| download | external_webkit-cad810f21b803229eb11403f9209855525a25d57.zip external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2 | |
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'Source/WebCore/manual-tests/pre-tab-selection-rect.html')
| -rw-r--r-- | Source/WebCore/manual-tests/pre-tab-selection-rect.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/pre-tab-selection-rect.html b/Source/WebCore/manual-tests/pre-tab-selection-rect.html new file mode 100644 index 0000000..d9a9801 --- /dev/null +++ b/Source/WebCore/manual-tests/pre-tab-selection-rect.html @@ -0,0 +1,66 @@ +<html> +<head> +<title>Highlighting preformatted text after tab</title> +<style type="text/css"> +#t4 { font-size: 36px; } +#t4:first-line { font-size:16px; } +</style> +<script type="text/javascript"> +function test1() +{ + var t = document.getElementById('t1').childNodes[1]; + window.getSelection().setBaseAndExtent(t, 1, t, 13); +} + +function test2() +{ + var t = document.getElementById('t2').childNodes[0]; + window.getSelection().setBaseAndExtent(t, 5, t, 23); +} + +function test3() +{ + var t = document.getElementById('t3').childNodes[0]; + window.getSelection().setBaseAndExtent(t, 5, t, 23); +} + +function test4() +{ + var t = document.getElementById('t4').childNodes[0]; + window.getSelection().setBaseAndExtent(t, 11, t, 29); +} +</script> +</head> +<body> +<p> +This is a test for <i>http://bugs.webkit.org/show_bug.cgi?id=6043 +Incorrect selection highlighting in pre-formatted text with tabs</i>. +</p> +<hr> +<p> +Instructions: +</p> +<p> +1. Click <a href="#" onclick="window.setTimeout(test1,1);">test 1</a>. +The entire word “highlighting” below should be highlighted. +</p> +<pre id="t1"><span>Buggy</span> highlighting</pre> +<p> +2. Click <a href="#" onclick="window.setTimeout(test2,1);">test 2</a>. +The words “buggy highlighting” below should be fully highlighted. +</p> +<pre id="t2" style="padding-left: 10px;">Very buggy highlighting</pre> +<p> +3. Click <a href="#" onclick="window.setTimeout(test3,1);">test 3</a>. +The words “buggy highlighting” below should be fully highlighted. +</p> +<pre id="t3" style="margin-left: 10px;">Very buggy highlighting</pre> +<p> +4. Click <a href="#" onclick="window.setTimeout(test4,1);">test 4</a>. +The words “buggy highlighting” below should be fully highlighted. +</p> +<p id="t4"> +Even more buggy highlighting. +</p> +</body> +</html> |
