Diff
Modified: trunk/LayoutTests/ChangeLog (189388 => 189389)
--- trunk/LayoutTests/ChangeLog 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/ChangeLog 2015-09-04 21:28:28 UTC (rev 189389)
@@ -1,5 +1,21 @@
2015-09-04 Beth Dakin <[email protected]>
+ Should have a test for selection behavior when deep clicking a link
+ https://bugs.webkit.org/show_bug.cgi?id=148827
+
+ Reviewed by Tim Horton.
+
+ * fast/events/force-click-link-selection-behavior-expected.txt: Added.
+ * fast/events/force-click-link-selection-behavior.html: Added.
+ * platform/efl/TestExpectations:
+ * platform/gtk/TestExpectations:
+ * platform/ios-simulator/TestExpectations:
+ * platform/mac-mavericks/TestExpectations:
+ * platform/mac-wk1/TestExpectations:
+ * platform/win/TestExpectations:
+
+2015-09-04 Beth Dakin <[email protected]>
+
Rolling this back in since these tests do still fail on the bots.
* platform/mac-wk2/TestExpectations:
Added: trunk/LayoutTests/fast/events/force-click-link-selection-behavior-expected.txt (0 => 189389)
--- trunk/LayoutTests/fast/events/force-click-link-selection-behavior-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/force-click-link-selection-behavior-expected.txt 2015-09-04 21:28:28 UTC (rev 189389)
@@ -0,0 +1,3 @@
+Link
+Select me.
+SUCCESS! We did not dismiss the selection when we force clicked the link.
Added: trunk/LayoutTests/fast/events/force-click-link-selection-behavior.html (0 => 189389)
--- trunk/LayoutTests/fast/events/force-click-link-selection-behavior.html (rev 0)
+++ trunk/LayoutTests/fast/events/force-click-link-selection-behavior.html 2015-09-04 21:28:28 UTC (rev 189389)
@@ -0,0 +1,50 @@
+<html>
+<head>
+<script>
+function checkForDone()
+{
+ var targetParent = document.getElementById("targetParent");
+ var textNode = targetParent.firstChild;
+
+ var selection = window.getSelection();
+ var anchor = selection.anchorNode;
+ if (anchor == textNode) {
+ var console = document.getElementById("console");
+ console.innerHTML = "SUCCESS! We did not dismiss the selection when we force clicked the link.";
+ }
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+function startTest()
+{
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ var selection = window.getSelection();
+ var targetParent = document.getElementById("targetParent");
+ var textNode = targetParent.firstChild;
+ var range = document.createRange();
+ range.selectNodeContents(textNode);
+ selection.addRange(range);
+
+ if (window.eventSender) {
+ eventSender.mouseMoveTo(16, 16);
+ eventSender.mouseForceClick();
+ window.setTimeout(checkForDone, 0);
+ }
+}
+</script>
+</head>
+
+<body _onload_="startTest()">
+
+<a href=""
+<div id="targetParent">Select me.</div>
+<pre id="console">Failed. This test must be run in the test harness. To run the test manually, select text on the page and then force click the link. The selection should not be dismissed.</pre>
+
+</body>
+</html>
Modified: trunk/LayoutTests/platform/efl/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/efl/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/efl/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -69,6 +69,7 @@
animations/trigger-container-scroll-boundaries.html [ Skip ]
# No support for force events
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]
Modified: trunk/LayoutTests/platform/gtk/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/gtk/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/gtk/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -570,6 +570,7 @@
webkit.org/b/143703 fast/forms/listbox-visible-size.html [ Failure ]
# No support for force events
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]
Modified: trunk/LayoutTests/platform/ios-simulator/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/ios-simulator/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/ios-simulator/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -432,6 +432,7 @@
http/tests/security/drag-over-remote-content-iframe.html
# No support for force events
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]
Modified: trunk/LayoutTests/platform/mac-mavericks/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/mac-mavericks/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/mac-mavericks/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -2,6 +2,7 @@
http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy.html
# No support for force events
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]
Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/mac-wk1/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -124,6 +124,7 @@
http/tests/cache/disk-cache
# There is not yet support for force events in WK1.
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]
Modified: trunk/LayoutTests/platform/win/TestExpectations (189388 => 189389)
--- trunk/LayoutTests/platform/win/TestExpectations 2015-09-04 21:19:31 UTC (rev 189388)
+++ trunk/LayoutTests/platform/win/TestExpectations 2015-09-04 21:28:28 UTC (rev 189389)
@@ -619,6 +619,7 @@
animations/trigger-container-scroll-boundaries.html [ Skip ]
# No support for force events
+fast/events/force-click-link-selection-behavior.html [ Skip ]
fast/events/force-click-on-link-navigation.html [ Skip ]
fast/events/mouse-force-changed.html [ Skip ]
fast/events/mouse-force-down.html [ Skip ]