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

Unified Diff: LayoutTests/compositing/img-layer-grow.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/img-layer-grow.html
diff --git a/LayoutTests/compositing/img-layer-grow.html b/LayoutTests/compositing/img-layer-grow.html
index 01a8f4d556fadea23396cf48d95ed96ccbf1b1f3..55cf46d2fc8df6ca322e54bf963e51db78689d30 100644
--- a/LayoutTests/compositing/img-layer-grow.html
+++ b/LayoutTests/compositing/img-layer-grow.html
@@ -1,6 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
+<script src="../resources/run-after-display.js"></script>
<script src="resources/mock_scrollbars.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -12,13 +13,11 @@
function doTest()
{
div = document.getElementById("div");
- if (window.testRunner)
- testRunner.display();
- window.setTimeout(function() {
+ runAfterDisplay(function() {
div.style.height = "1600px";
if (window.testRunner)
testRunner.notifyDone();
- }, 0);
+ });
}
window.addEventListener('load', doTest, false);

Powered by Google App Engine
This is Rietveld 408576698