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> |