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

Unified Diff: LayoutTests/svg/custom/resource-client-removal.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/custom/resource-client-removal.svg
diff --git a/LayoutTests/svg/custom/resource-client-removal.svg b/LayoutTests/svg/custom/resource-client-removal.svg
index 0bf7b96c0f6d806ec26eb081f70bcaf47b47f3a4..5f5cb3be47ec82c1ccfed0731fe0c8ddbf8e8467 100644
--- a/LayoutTests/svg/custom/resource-client-removal.svg
+++ b/LayoutTests/svg/custom/resource-client-removal.svg
@@ -6,7 +6,7 @@ window.testIsAsync = true;
function repaintTest() {
container = document.getElementById("inneruse");
stop = document.getElementById("offset");
- setTimeout(offset, 0);
+ requestAnimationFrame(offset);
}
var turns = 5;
function offset(){
@@ -14,7 +14,7 @@ function offset(){
stop.setAttribute ("offset", "1.0");
turns--;
if (turns > 0)
- window.setTimeout("offset()", 0)
+ requestAnimationFrame(offset)
else
finishRepaintTest();
}

Powered by Google App Engine
This is Rietveld 408576698