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

Side by Side 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: 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 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.cs s">
6 <style>
7 #outerDiv {
8 width: 150px;
9 }
10 #outerDiv, #outerDiv div {
11 padding: 15px;
12 border-style: solid;
13 }
14 </style>
15 </head>
16 <body onload="runTest();">
17 <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer">
18 <div>
19 <div style="cursor: pointer">
20 <div id="innerDiv"></div>
21 </div>
22 </div>
23 </div>
24
25 <script>
26 function runTest() {
27 var clientRect = document.getElementById("innerDiv").getBoundingClientRect ();
28 x = (clientRect.left + clientRect.right) / 2;
29 y = (clientRect.top + clientRect.bottom) / 2;
30 if (window.testRunner) {
31 testRunner.dumpAsTextWithPixelResults();
32 testRunner.waitUntilDone();
33 }
34
35 if (window.eventSender) {
36 eventSender.gestureShowPress(x, y);
37 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
38 } else {
39 debug("This test requires DumpRenderTree.");
40 }
41 }
42 </script>
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698