Index: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html |
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html |
index 3cd061119f1e51ee72181ced05fe1e9ef95d1e20..6e80dc4a35177cb75a49624cda9684911a38824e 100644 |
--- a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html |
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html |
@@ -2,6 +2,7 @@ |
<html> |
<head> |
<script src="../../resources/js-test.js"></script> |
+<script src="../../resources/run-after-display.js"></script> |
</head> |
<body onload="runTest();" onclick="doNothing();"> |
<div style="-webkit-transform: translateZ(0); position: relative; left: 10px; top: 40px"> |
@@ -26,11 +27,11 @@ function runTest() { |
if (window.eventSender) { |
// Generate valid link highlight. |
eventSender.gestureShowPress(x, y); |
- window.testRunner.display(); |
- |
- // Generate tap in region with no valid target ... this should cancel the first tap. |
- eventSender.gestureShowPress(150, 150); |
- window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
+ runAfterDisplay(function() { |
+ // Generate tap in region with no valid target ... this should cancel the first tap. |
+ eventSender.gestureShowPress(150, 150); |
+ testRunner.notifyDone(); |
+ }); |
} else { |
debug("This test requires DumpRenderTree."); |
} |