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

Unified Diff: LayoutTests/fast/table/border-collapsing/cached-change-cell-sl-border-color.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-change-cell-sl-border-color.html
diff --git a/LayoutTests/fast/table/border-collapsing/cached-change-cell-sl-border-color.html b/LayoutTests/fast/table/border-collapsing/cached-change-cell-sl-border-color.html
index 95d614d7f101037dacb698953175f17551d2779b..a90997d108357e8ad7d7d40cd41354a1fd0b6116 100644
--- a/LayoutTests/fast/table/border-collapsing/cached-change-cell-sl-border-color.html
+++ b/LayoutTests/fast/table/border-collapsing/cached-change-cell-sl-border-color.html
@@ -8,16 +8,20 @@ Here we:
<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();
- // remove text, this requests layout for DIV,
- // but only simplified layout for TABLE
- document.getElementById("blockDiv").innerText = "";
- // change color, no layout for TABLE, only repaint
- document.getElementById("foo").style.borderColor = "lime";
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
+ // remove text, this requests layout for DIV,
+ // but only simplified layout for TABLE
+ document.getElementById("blockDiv").innerText = "";
+ // change color, no layout for TABLE, only repaint
+ document.getElementById("foo").style.borderColor = "lime";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
</script>
</head>
@@ -31,4 +35,4 @@ Here we:
</table>
</body>
</html>
-
+

Powered by Google App Engine
This is Rietveld 408576698