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

Unified Diff: LayoutTests/fast/table/border-collapsing/cached-69296.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/table/border-collapsing/cached-cell-append.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/table/border-collapsing/cached-69296.html
diff --git a/LayoutTests/fast/table/border-collapsing/cached-69296.html b/LayoutTests/fast/table/border-collapsing/cached-69296.html
index dbfc36f933eeb3a53d5357094f38956626c1d3b6..e4caf5585ce5235293359d41f970d774c9db47ad 100644
--- a/LayoutTests/fast/table/border-collapsing/cached-69296.html
+++ b/LayoutTests/fast/table/border-collapsing/cached-69296.html
@@ -4,6 +4,7 @@ Collapsed borders should not disappear.
-->
<html>
<head>
+ <script src="../../../resources/run-after-display.js"></script>
<style>
BODY {
margin: 20px;
@@ -24,18 +25,18 @@ Collapsed borders should not disappear.
<head>
<script type="text/javascript">
function test() {
- document.body.offsetTop;
- if (window.testRunner) {
- testRunner.display();
- }
- if (window.eventSender) {
- row = document.getElementById('row1');
- rowRect = row.getBoundingClientRect();
- x = rowRect.left + 75;
- y = rowRect.top;
- eventSender.mouseMoveTo(x, y + 1);
- eventSender.mouseMoveTo(x, y - 1);
- document.body.offsetTop;
+ if (window.eventSender && window.testRunner) {
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
+ row = document.getElementById('row1');
+ rowRect = row.getBoundingClientRect();
+ x = rowRect.left + 75;
+ y = rowRect.top;
+ eventSender.mouseMoveTo(x, y + 1);
+ eventSender.mouseMoveTo(x, y - 1);
+ document.body.offsetTop;
+ testRunner.notifyDone();
+ });
}
}
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/table/border-collapsing/cached-cell-append.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698