Title: [140753] trunk/LayoutTests
Revision
140753
Author
[email protected]
Date
2013-01-24 17:02:47 -0800 (Thu, 24 Jan 2013)

Log Message

Cannot click an element at 2nd line or more inside inline-block in vertical writing mode.
https://bugs.webkit.org/show_bug.cgi?id=104775

Patch by Yuki Sekiguchi <[email protected]> on 2013-01-24
Reviewed by Ryosuke Niwa.

Rewrite test using js-test-pre.js.
Add test description to the test.

* fast/writing-mode/vertical-inline-block-hittest-expected.txt:
* fast/writing-mode/vertical-inline-block-hittest.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (140752 => 140753)


--- trunk/LayoutTests/ChangeLog	2013-01-25 00:59:01 UTC (rev 140752)
+++ trunk/LayoutTests/ChangeLog	2013-01-25 01:02:47 UTC (rev 140753)
@@ -1,3 +1,16 @@
+2013-01-24  Yuki Sekiguchi  <[email protected]>
+
+        Cannot click an element at 2nd line or more inside inline-block in vertical writing mode.
+        https://bugs.webkit.org/show_bug.cgi?id=104775
+
+        Reviewed by Ryosuke Niwa.
+
+        Rewrite test using js-test-pre.js.
+        Add test description to the test.
+
+        * fast/writing-mode/vertical-inline-block-hittest-expected.txt:
+        * fast/writing-mode/vertical-inline-block-hittest.html:
+
 2013-01-24  Christian Biesinger  <[email protected]>
 
         resize property doesn't work on iframes

Modified: trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest-expected.txt (140752 => 140753)


--- trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest-expected.txt	2013-01-25 00:59:01 UTC (rev 140752)
+++ trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest-expected.txt	2013-01-25 01:02:47 UTC (rev 140753)
@@ -1,3 +1,10 @@
+Test that we can click 2nd line inside inline-block in vertical writing mode.
 
-b
-PASS
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.elementFromPoint(5, 5) is elementInsideInlineBlockInSecondLine
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Modified: trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest.html (140752 => 140753)


--- trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest.html	2013-01-25 00:59:01 UTC (rev 140752)
+++ trunk/LayoutTests/fast/writing-mode/vertical-inline-block-hittest.html	2013-01-25 01:02:47 UTC (rev 140753)
@@ -1,21 +1,22 @@
 <!DOCTYPE html>
 <html>
 <body style="margin: 0px">
-<div style="-webkit-writing-mode: vertical-rl; border: solid 1px black; font-family: Ahem">
+<div id="target" style="-webkit-writing-mode: vertical-rl; border: solid 1px black; font-family: Ahem">
 <br />
 <span style="display: inline-block"><a>b</a></span>
 </div>
-<div id="result"></div>
+<p id="description"></p>
+<div id="console"></div>
+<script src=''></script>
 <script>
 function runTests() {
-    var obj = document.elementFromPoint(5, 5);
-    var hitResult = (obj.nodeName.toLowerCase() == "a");
-    var result = document.getElementById("result");
-    result.innerHTML = hitResult ? "PASS" : "FAIL: We cannot hit a element at (5, 5)."
-    if (window.testRunner)
-        testRunner.dumpAsText();
+    description("Test that we can click 2nd line inside inline-block in vertical writing mode.");
+    elementInsideInlineBlockInSecondLine = document.querySelector("a");
+    shouldBe("document.elementFromPoint(5, 5)", "elementInsideInlineBlockInSecondLine");
+    document.getElementById("target").style.display = "none";
 }
 runTests();
 </script>
+<script src=''></script>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to