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

Unified Diff: LayoutTests/fast/table/border-collapsing/cached-cell-append.html

Issue 196573021: Remove testRunner.display calls from table border collapsing tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/fast/table/border-collapsing/cached-cell-append.html
diff --git a/LayoutTests/fast/table/border-collapsing/cached-cell-append.html b/LayoutTests/fast/table/border-collapsing/cached-cell-append.html
index 717bc727a587b8aa6ae7f6f784a2c157aa490c21..2106e45577c3993495882e8ccd1b5cf894a2a1f0 100644
--- a/LayoutTests/fast/table/border-collapsing/cached-cell-append.html
+++ b/LayoutTests/fast/table/border-collapsing/cached-cell-append.html
@@ -6,16 +6,20 @@ Here we append new cell, expect that cache is invalidated and paint produces exp
<head>
<title></title>
<link rel="stylesheet" href="resources/cached.css">
+ <script src="../../../resources/run-after-display.js"></script>
<script type="text/javascript">
function test() {
- document.body.offsetTop;
if (window.testRunner)
- testRunner.display();
- newCell = document.createElement("td");
- newCell.style.borderLeftWidth = "6px";
- newCell.style.borderLeftStyle = "solid";
- newCell.style.borderLeftColor = "yellow";
- document.getElementById("row").appendChild(newCell);
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
+ newCell = document.createElement("td");
+ newCell.style.borderLeftWidth = "6px";
+ newCell.style.borderLeftStyle = "solid";
+ newCell.style.borderLeftColor = "yellow";
+ document.getElementById("row").appendChild(newCell);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698