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

Unified Diff: LayoutTests/svg/custom/mask-invalidation.svg

Issue 316193003: Fix some async repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline more tests Created 6 years, 6 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/svg/custom/mask-invalidation.svg
diff --git a/LayoutTests/svg/custom/mask-invalidation.svg b/LayoutTests/svg/custom/mask-invalidation.svg
index 8667d7cc6dbbd975adb1bade84595f1013b2e5d5..d7a91d48537fc46d29ec8e3ca9ba7f33e17df5a3 100644
--- a/LayoutTests/svg/custom/mask-invalidation.svg
+++ b/LayoutTests/svg/custom/mask-invalidation.svg
@@ -2,6 +2,7 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
<script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
<script>
+window.testIsAsync = true;
function draw(x, y) {
var maskrect = document.getElementById("maskRect");
maskrect.setAttribute("transform", "translate(" + x + "," + y + ")");
@@ -22,14 +23,10 @@ function draw(x, y) {
}
function repaintTest() {
- if (window.testRunner)
- testRunner.waitUntilDone();
-
draw(150, 50);
requestAnimationFrame(function() {
draw(50, 50);
- if (window.testRunner)
- testRunner.notifyDone();
+ finishRepaintTest();
});
}
« no previous file with comments | « LayoutTests/svg/custom/foreignObject-crash-on-hover.xml ('k') | LayoutTests/svg/custom/resource-client-removal.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698