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

Unified Diff: LayoutTests/compositing/overflow/content-loses-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-loses-scrollbars.html
diff --git a/LayoutTests/compositing/overflow/content-loses-scrollbars.html b/LayoutTests/compositing/overflow/content-loses-scrollbars.html
index e9062f3ea6ddd2e9c97ae9063178b4e45248a774..9fef789cb6cfda3233822799dc20de3eba0c537e 100644
--- a/LayoutTests/compositing/overflow/content-loses-scrollbars.html
+++ b/LayoutTests/compositing/overflow/content-loses-scrollbars.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="../../resources/run-after-display.js"></script>
<style>
.container {
width: 100px;
@@ -49,15 +50,14 @@ function finishTest() {
document.getElementById("both").classList.remove("tall"); // vertical and horizontal scrollbars
document.getElementById("corner").classList.remove("resizeWidget"); // bottom div loses 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