diff options
| author | Steve Block <steveblock@google.com> | 2011-05-13 06:44:40 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-13 06:44:40 -0700 |
| commit | 08014c20784f3db5df3a89b73cce46037b77eb59 (patch) | |
| tree | 47749210d31e19e6e2f64036fa8fae2ad693476f /Source/WebCore/manual-tests/pre-tab-selection-rect.html | |
| parent | 860220379e56aeb66424861ad602b07ee22b4055 (diff) | |
| parent | 4c3661f7918f8b3f139f824efb7855bedccb4c94 (diff) | |
| download | external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.zip external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.tar.gz external_webkit-08014c20784f3db5df3a89b73cce46037b77eb59.tar.bz2 | |
Merge changes Ide388898,Ic49f367c,I1158a808,Iacb6ca5d,I2100dd3a,I5c1abe54,Ib0ef9902,I31dbc523,I570314b3
* changes:
Merge WebKit at r75315: Update WebKit version
Merge WebKit at r75315: Add FrameLoaderClient PageCache stubs
Merge WebKit at r75315: Stub out AXObjectCache::remove()
Merge WebKit at r75315: Fix ImageBuffer
Merge WebKit at r75315: Fix PluginData::initPlugins()
Merge WebKit at r75315: Fix conflicts
Merge WebKit at r75315: Fix Makefiles
Merge WebKit at r75315: Move Android-specific WebCore files to Source
Merge WebKit at r75315: Initial merge by git.
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> |
