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

Unified Diff: LayoutTests/compositing/rubberbanding/transform-overhang-size-change.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/rubberbanding/transform-overhang-size-change.html
diff --git a/LayoutTests/compositing/rubberbanding/transform-overhang-size-change.html b/LayoutTests/compositing/rubberbanding/transform-overhang-size-change.html
index 5ea1fd1db9270a03aca6d442564c9abdd3d71a37..5d2b0893f57bd583bbc431de1cb5bf46724dd238 100644
--- a/LayoutTests/compositing/rubberbanding/transform-overhang-size-change.html
+++ b/LayoutTests/compositing/rubberbanding/transform-overhang-size-change.html
@@ -6,14 +6,18 @@
</div>
<div id="info">This test requires DRT.</div>
+<script src="../../resources/run-after-display.js"></script>
<script>
if (window.internals && window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
document.getElementById('info').style.visibility = "hidden";
internals.settings.setMockScrollbarsEnabled(false);
internals.setScrollViewPosition(document, -20, -20);
- testRunner.display();
- internals.setScrollViewPosition(document, -60, -60);
+ runAfterDisplay(function() {
+ internals.setScrollViewPosition(document, -60, -60);
+ testRunner.notifyDone();
+ });
}
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698