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

Unified Diff: LayoutTests/compositing/overflow/content-gains-scrollbars.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/overflow/content-gains-scrollbars.html
diff --git a/LayoutTests/compositing/overflow/content-gains-scrollbars.html b/LayoutTests/compositing/overflow/content-gains-scrollbars.html
index 673ad0b49d76b9cebcf91572cf0167a480ba1801..ee8526c5a84f5b71acbf3234a9100b239a8e3f4f 100644
--- a/LayoutTests/compositing/overflow/content-gains-scrollbars.html
+++ b/LayoutTests/compositing/overflow/content-gains-scrollbars.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
<style>
.container {
width: 100px;
@@ -49,15 +50,15 @@ function finishTest() {
document.getElementById("both").classList.add("tall"); // vertical and horizontal scrollbars
document.getElementById("corner").classList.add("resizeWidget"); // bottom div gets a resize corner but no scrollbars
if (window.testRunner) {
- testRunner.display(); // Ensure compositor tree is up to date.
document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
}
}
if (window.testRunner) {
testRunner.dumpAsText();
- testRunner.display(); // Force compositor state to be updated before the container needs any overflow controls
- finishTest();
-} else
- window.setTimeout(finishTest, 0);
+ testRunner.waitUntilDone();
+}
+
+runAfterDisplay(finishTest);
</script>

Powered by Google App Engine
This is Rietveld 408576698