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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text-expected.html

Issue 931753002: Disable gesture tap highlight on editable nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit: removed obsolete comment Created 5 years, 10 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 <script src="../../resources/js-test.js"></script>
3 <style>
4 input {
5 margin:20px;
6 }
7 </style>
8 <body onload="runTest();">
9 <div style="transform: translateZ(0); position: relative; left: 10px; top: 40px" >
10 <form>
11 <div>
12 <input id="target" value="Target Input Text">
13 </div>
14 </form>
15 </div>
16 <div style="position: relative; left: 10px; top: 70px">
17 This test is successful if there are no green rectangles.
18 </div>
19 <script>
20 function runTest() {
21 // Needs to call eventSender.gestureShowPress() to get the same visual
22 var clientRect = target.getBoundingClientRect();
23 var x = (clientRect.left + clientRect.right) / 2;
24 var y = (clientRect.top + clientRect.bottom) / 2;
25 if (window.testRunner) {
26 testRunner.dumpAsTextWithPixelResults();
27 testRunner.waitUntilDone();
28 }
29
30 if (window.eventSender) {
31 eventSender.gestureShowPress(x, y);
32 window.setTimeout(function () { window.testRunner.notifyDone(); }, 0);
33 } else {
34 debug("This test requires DumpRenderTree.");
35 }
36 }
37 </script>
38 </body>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text.html ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698