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

Unified Diff: LayoutTests/fast/canvas/canvas-resize-after-paint-without-layout.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/canvas-resize-after-paint-without-layout.html
diff --git a/LayoutTests/fast/canvas/canvas-resize-after-paint-without-layout.html b/LayoutTests/fast/canvas/canvas-resize-after-paint-without-layout.html
index 306ab5caf683436d680cd5e8b8a4f9558d2f386c..c2870297a9b97d59a45d236a1360b13cf5b78b95 100644
--- a/LayoutTests/fast/canvas/canvas-resize-after-paint-without-layout.html
+++ b/LayoutTests/fast/canvas/canvas-resize-after-paint-without-layout.html
@@ -12,23 +12,27 @@
height: 300px;
}
</style>
- <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 runTest() {
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'red';
ctx.fillRect(0, 0, 300, 300);
- runRepaintTest();
+ runAfterDisplay(repaintTest);
}
function repaintTest() {
var canvas = document.getElementById('canvas');
// This changes the resolution of the canvas but keeps its layout size constant.
canvas.width = canvas.width / 2;
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
</head>
« no previous file with comments | « LayoutTests/fast/canvas/canvas-incremental-repaint-2.html ('k') | LayoutTests/fast/canvas/drawImage-with-broken-image.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698