Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor3.html

Issue 402603005: Disable touch highlight when the touched node has no hand-cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reverted back to last working logic Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor3.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor3.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor3.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc5b2f4925cb57fa3d9a1a26f6ac4fccd7529d50
--- /dev/null
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor3.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="../../resources/js-test.js"></script>
+ <script src="resources/link-highlight-helper.js"></script>
+ <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
+</head>
+<body onload="runTest();">
+ <div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid; cursor: pointer">
+ Click here to go <a id="taptarget" href="#">there</a>
+ </div>
+
+ <script>
+ function runTest() {
+ useMockHighlight();
+
+ var clientRect = document.getElementById("taptarget").getBoundingClientRect();
+ x = (clientRect.left + clientRect.right) / 2;
+ y = (clientRect.top + clientRect.bottom) / 2;
+ if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+ }
+
+ if (window.eventSender) {
+ eventSender.gestureShowPress(x, y);
+ window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
+ } else {
+ debug("This test requires DumpRenderTree.");
+ }
+ }
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698