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

Unified Diff: LayoutTests/svg/animations/smil-leak-element-instances.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
Index: LayoutTests/svg/animations/smil-leak-element-instances.svg
diff --git a/LayoutTests/svg/animations/smil-leak-element-instances.svg b/LayoutTests/svg/animations/smil-leak-element-instances.svg
index 7c2e715143e618ce58d251951527e857579236e2..cd4fd4537ad4e1eeb18ac1f9f93393453fa07322 100644
--- a/LayoutTests/svg/animations/smil-leak-element-instances.svg
+++ b/LayoutTests/svg/animations/smil-leak-element-instances.svg
@@ -61,7 +61,7 @@ function startTest() {
for (var i = 0; i < 100; i++)
g.appendChild(createAnimatedRectInstance());
- setTimeout(cleanup, 0);
+ requestAnimationFrame(cleanup);
}
function load() {
@@ -73,7 +73,7 @@ function load() {
return;
}
- setTimeout(startTest, 0);
+ requestAnimationFrame(startTest);
}
]]>
</script>

Powered by Google App Engine
This is Rietveld 408576698