Index: third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html |
diff --git a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html |
index 07ac5c515f9349c8493fbc7096e5846d8b1d23e7..846a8a474623297f53e39f90fc83d96d36cece36 100644 |
--- a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html |
+++ b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html |
@@ -2,10 +2,10 @@ |
<script src="../../resources/ahem.js"></script> |
<div id="target" style=" |
outline: dashed lightblue; |
- width: 150px; |
+ height: 150px; |
padding: 25px; |
font: 20px Ahem; |
- -webkit-writing-mode: horizontal-bt; |
+ writing-mode: vertical-rl; |
">Lorem ipsum dolor sit amet</div> |
<pre id="log"></pre> |
<script> |
@@ -19,13 +19,13 @@ |
document.getElementById("log").appendChild(document.createTextNode(message + "\n")); |
} |
- function test(x, y, expectedOffset) |
+ function test(y, x, expectedOffset) |
{ |
var actualOffset = document.caretRangeFromPoint(8 + x, 8 + y).startOffset; |
if (actualOffset === expectedOffset) |
- log("PASS: offset at (" + x + "," + y + ") was " + actualOffset + "."); |
+ log("PASS: offset at (" + y + "," + x + ") was " + actualOffset + "."); |
else |
- log("FAIL: offset at (" + x + "," + y + ") was " + actualOffset + ". Expected " + expectedOffset + "."); |
+ log("FAIL: offset at (" + y + "," + x + ") was " + actualOffset + ". Expected " + expectedOffset + "."); |
} |
test(100, 105, 4); |
@@ -36,6 +36,6 @@ |
test(160, 26, 26); |
test(60, 25, 24); |
test(160, 25, 26); |
- test(60, 24, 26); |
+ test(60, 24, 24); |
test(160, 24, 26); |
</script> |