Title: [180253] trunk/LayoutTests
Revision
180253
Author
[email protected]
Date
2015-02-17 20:17:45 -0800 (Tue, 17 Feb 2015)

Log Message

Update editing/selection/fake-drag.html after r177774
https://bugs.webkit.org/show_bug.cgi?id=141605

Reviewed by Alexey Proskuryakov.

Text metrics changed, so the locations where the "user" interacts with the page should
change accordingly.

* editing/selection/fake-drag.html:
* platform/mac/TestExpectations:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (180252 => 180253)


--- trunk/LayoutTests/ChangeLog	2015-02-18 03:12:08 UTC (rev 180252)
+++ trunk/LayoutTests/ChangeLog	2015-02-18 04:17:45 UTC (rev 180253)
@@ -1,3 +1,16 @@
+2015-02-17  Myles C. Maxfield  <[email protected]>
+
+        Update editing/selection/fake-drag.html after r177774
+        https://bugs.webkit.org/show_bug.cgi?id=141605
+
+        Reviewed by Alexey Proskuryakov.
+
+        Text metrics changed, so the locations where the "user" interacts with the page should
+        change accordingly.
+
+        * editing/selection/fake-drag.html:
+        * platform/mac/TestExpectations:
+
 2015-02-17  Alexey Proskuryakov  <[email protected]>
 
         inspector/css/stylesheet-with-mutations.html is a flaky timeout/crash

Modified: trunk/LayoutTests/editing/selection/fake-drag.html (180252 => 180253)


--- trunk/LayoutTests/editing/selection/fake-drag.html	2015-02-18 03:12:08 UTC (rev 180252)
+++ trunk/LayoutTests/editing/selection/fake-drag.html	2015-02-18 04:17:45 UTC (rev 180253)
@@ -19,13 +19,21 @@
 
 function step6()
 {
-    eventSender.mouseMoveTo(50, 10);
+    var r = document.createRange();
+    var c = document.getElementById("c").firstChild;
+    r.setStart(c, 0);
+    r.setEnd(c, 8);
+    eventSender.mouseMoveTo(r.getBoundingClientRect().right, 10);
     window.setTimeout(step7, 0);
 }
 
 function step5()
 {
-    eventSender.mouseMoveTo(31, 10);
+    var r = document.createRange();
+    var c = document.getElementById("c").firstChild;
+    r.setStart(c, 0);
+    r.setEnd(c, 5);
+    eventSender.mouseMoveTo(r.getBoundingClientRect().right, 10);
     window.setTimeout(step6, 0);
 }
 
@@ -37,7 +45,11 @@
 
 function step3()
 {
-    eventSender.mouseMoveTo(30, 10);
+    var r = document.createRange();
+    var c = document.getElementById("c").firstChild;
+    r.setStart(c, 0);
+    r.setEnd(c, 4);
+    eventSender.mouseMoveTo(r.getBoundingClientRect().right, 10);
     eventSender.leapForward(1000);
     window.setTimeout(step4, 0);
 }
@@ -65,6 +77,6 @@
 </script>
 </head>
 <body>
-<div contenteditable>Select me, select me, select me</div>
+<div id="c" contenteditable>Select me, select me, select me</div>
 </body>
 </html>

Modified: trunk/LayoutTests/platform/mac/TestExpectations (180252 => 180253)


--- trunk/LayoutTests/platform/mac/TestExpectations	2015-02-18 03:12:08 UTC (rev 180252)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2015-02-18 04:17:45 UTC (rev 180253)
@@ -1265,7 +1265,6 @@
 webkit.org/b/139968 svg/text/tspan-outline.html [ ImageOnlyFailure ]
 webkit.org/b/139968 svg/transforms/transformed-text-fill-gradient.html [ ImageOnlyFailure ]
 # The following tests' expected results don't look like render tree dumps
-webkit.org/b/139968 editing/selection/fake-drag.html [ Failure ]
 webkit.org/b/139968 fast/forms/text-control-intrinsic-widths.html [ Failure ]
 webkit.org/b/139968 svg/text/lengthAdjust-text-metrics.html [ Failure ]
 webkit.org/b/139968 svg/text/text-rect-precision.html [ Failure ]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to