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

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

Issue 196653012: Remove display() from compositing/ LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: softwarecompositing expectations Created 6 years, 9 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-navigate.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-navigate.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-navigate.html
index 9f89659b26efced4bbac2ef9f401a068d027d87b..4bb12eb3c3bb18bed1548916f77d6916ab134f51 100644
--- a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-navigate.html
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-navigate.html
@@ -10,6 +10,7 @@
<div style="position: relative; left: 10px; top: 70px; -webkit-transform: translateZ(0);">
This test is not successful if this message appears.
</div>
+<script src="../../resources/run-after-display.js"></script>
<script>
function runTest() {
var clientRect = document.getElementById('targetLink').getBoundingClientRect();
@@ -21,8 +22,12 @@ function runTest() {
if (window.eventSender) {
eventSender.gestureShowPress(x, y);
// Force display of highlight before navigating to second page.
- window.testRunner.display();
- window.location = 'resources/gesture-tapHighlight-simple-navigate-destination.html';
+ runAfterDisplay(function() {
+ window.location = 'resources/gesture-tapHighlight-simple-navigate-destination.html';
+ runAfterDisplay(function() {
+ testRunner.notifyDone();
+ });
+ });
} else {
debug("This test requires DumpRenderTree.");
}

Powered by Google App Engine
This is Rietveld 408576698