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

Unified Diff: LayoutTests/svg/repaint/image-with-clip-path.svg

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 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
« LayoutTests/resources/js-test.js ('K') | « LayoutTests/svg/custom/use-detach.svg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/repaint/image-with-clip-path.svg
diff --git a/LayoutTests/svg/repaint/image-with-clip-path.svg b/LayoutTests/svg/repaint/image-with-clip-path.svg
index b801db7e7a35600d8865f857710fb62a2df9de55..1f07f443db9197ed4abe51c84c161b2ac80e77c3 100644
--- a/LayoutTests/svg/repaint/image-with-clip-path.svg
+++ b/LayoutTests/svg/repaint/image-with-clip-path.svg
@@ -1,5 +1,6 @@
<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" type="text/javascript"></script>
+ <script xlink:href="../../resources/run-after-display.js"></script>
<text y="-10">Bug 76559: All red should disappear</text>
<g id="g" transform="translate(0, 0)">
<defs>
@@ -31,12 +32,12 @@
}
function nextStep() {
- i.onload = function() { setTimeout(finishTest, 0); };
+ i.onload = function() { requestAnimationFrame(finishTest); };
update(200, 50, green);
}
function repaintTest() {
- i.onload = function() { setTimeout(nextStep, 0); };
+ i.onload = function() { runAfterDisplay(nextStep); };
update(50, 100, red);
}
</script>
« LayoutTests/resources/js-test.js ('K') | « LayoutTests/svg/custom/use-detach.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698