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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/link-highlight-helper.js"></script>
6 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style. css">
7 </head>
8 <body onload="runTest();">
9 <div class="opaqueHighlight" id="expectedHighlight" style="border-style: sol id; cursor: pointer">
10 Click here to go <a id="taptarget" href="#">there</a>
11 </div>
12
13 <script>
14 function runTest() {
15 useMockHighlight();
16
17 var clientRect = document.getElementById("taptarget").getBoundingCli entRect();
18 x = (clientRect.left + clientRect.right) / 2;
19 y = (clientRect.top + clientRect.bottom) / 2;
20 if (window.testRunner) {
21 testRunner.dumpAsTextWithPixelResults();
22 testRunner.waitUntilDone();
23 }
24
25 if (window.eventSender) {
26 eventSender.gestureShowPress(x, y);
27 window.setTimeout(function() { window.testRunner.notifyDone(); } , 0);
28 } else {
29 debug("This test requires DumpRenderTree.");
30 }
31 }
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698