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

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.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-cursor2.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html
new file mode 100644
index 0000000000000000000000000000000000000000..a16eaea2adb716bb871659171434fc8456acdd8e
--- /dev/null
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html
@@ -0,0 +1,47 @@
+<!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">
+ <style>
+ #outerDiv {
+ width: 150px;
+ }
+ #outerDiv, #outerDiv div {
+ padding: 15px;
+ border-style: solid;
+ }
+ </style>
+</head>
+<body onload="runTest();">
+ <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer">
+ <div>
+ <div style="cursor: pointer">
+ <div id="innerDiv"></div>
+ </div>
+ </div>
+ </div>
+
+ <script>
+ function runTest() {
+ useMockHighlight();
+
+ var clientRect = document.getElementById("innerDiv").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