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

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 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-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.");
}

Powered by Google App Engine
This is Rietveld 408576698