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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text-expected.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text-expected.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..e53a4cdd901db85f61f1db5e39c5a0c3bf2bd0ad
--- /dev/null
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-form-input-text-expected.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+input {
+ margin:20px;
+}
+</style>
+<body onload="runTest();">
+<div style="transform: translateZ(0); position: relative; left: 10px; top: 40px">
+ <form>
+ <div>
+ <input id="target" value="Target Input Text">
+ </div>
+ </form>
+</div>
+<div style="position: relative; left: 10px; top: 70px">
+This test is successful if there are no green rectangles.
+</div>
+<script>
+function runTest() {
+ // Needs to call eventSender.gestureShowPress() to get the same visual
+ var clientRect = target.getBoundingClientRect();
+ var x = (clientRect.left + clientRect.right) / 2;
+ var 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>
« 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