[CSS Regions] Layout Test for selecting text in 2 regions
authorrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Oct 2013 21:07:07 +0000 (21:07 +0000)
committerrego@igalia.com <rego@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Oct 2013 21:07:07 +0000 (21:07 +0000)
commit89cecd976297c182fa80997960a7e5d9043ccd09
tree060d5d415983dcb1bb5672054e3d7a656fbb8788
parentece23a6c390c102e9e814fa6366c4803ece1caeb
[CSS Regions] Layout Test for selecting text in 2 regions
https://bugs.webkit.org/show_bug.cgi?id=121841

Reviewed by Alexandru Chiculita.

Add new reftest for selecting text in 2 regions. It compares the
behavior (highlighted text and selected content) in regions and absolute
positions.

* fast/regions/resources/helper.js: Add new function to set selected
content in an element onmouseup.
(onMouseUpLogSelection.document.onmouseup):
(onMouseUpLogSelection):
* fast/regions/resources/region-style.css: Define some styles that could
be reused in other tests.
* fast/regions/selection/selecting-text-in-2-regions-expected.html:
Added.
* fast/regions/selection/selecting-text-in-2-regions.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/regions/resources/helper.js
LayoutTests/fast/regions/resources/region-style.css
LayoutTests/fast/regions/selection/selecting-text-in-2-regions-expected.html [new file with mode: 0644]
LayoutTests/fast/regions/selection/selecting-text-in-2-regions.html [new file with mode: 0644]