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

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: Fixed logic with all tests passing. 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.css" >
6 </head>
7 <body onload="runTest();">
8 <style>
Rick Byers 2014/07/30 15:35:51 nit: <style> belongs inside of <head>.
mustaq 2014/07/30 16:40:44 Done.
9 #outerDiv {
10 width: 150px;
11 }
12 #outerDiv, #outerDiv div {
13 padding: 15px;
14 border-style: solid;
15 }
16 </style>
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 This test is successful if the outermost box above is covered with a green rec tangle.
26
27 <script>
28 function runTest() {
29 var clientRect = document.getElementById("innerDiv").getBoundingClientRect ();
30 x = (clientRect.left + clientRect.right) / 2;
31 y = (clientRect.top + clientRect.bottom) / 2;
32 if (window.testRunner) {
33 testRunner.dumpAsTextWithPixelResults();
34 testRunner.waitUntilDone();
35 }
36
37 if (window.eventSender) {
38 eventSender.gestureShowPress(x, y);
39 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
40 } else {
41 debug("This test requires DumpRenderTree.");
42 }
43 }
44 </script>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698