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

Unified Diff: LayoutTests/fast/canvas/setWidthResetAfterForcedRender.html

Issue 207383002: Remove repaint.js from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations 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/canvas/setWidthResetAfterForcedRender.html
diff --git a/LayoutTests/fast/canvas/setWidthResetAfterForcedRender.html b/LayoutTests/fast/canvas/setWidthResetAfterForcedRender.html
index fa877cff4ad921f04277bab90126aa91fc3b8974..403176ad6a0d73b8175a1e85b4dfb4dbf1ceeddb 100644
--- a/LayoutTests/fast/canvas/setWidthResetAfterForcedRender.html
+++ b/LayoutTests/fast/canvas/setWidthResetAfterForcedRender.html
@@ -2,20 +2,24 @@
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
-<script src="resources/repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
<script>
-if (window.testRunner)
+if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+}
function repaintTest()
{
var canvas = document.getElementById('c1');
var offset = document.body.offsetLeft; // Forces layout
canvas.width = canvas.width; // Should wipe canvas clean
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
</head>
-<body onload="runRepaintTest();">
+<body onload="runAfterDisplay(repaintTest);">
<p><b>BUG ID:</b> <a href="https://bugs.webkit.org/show_bug.cgi?id=43341">Bugzilla bug 43341</a>
Setting canvas width after canvas already rendered resets canvas data appropriately, but doesn't repaint immediately.
<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>

Powered by Google App Engine
This is Rietveld 408576698