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

Unified Diff: LayoutTests/svg/animations/reinserting-svg-into-document.html

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/reinserting-svg-into-document.html
diff --git a/LayoutTests/svg/animations/reinserting-svg-into-document.html b/LayoutTests/svg/animations/reinserting-svg-into-document.html
index b0738ea2d13ba1cbe089cdb70b99df1bb3561ddb..58cd52c4d870aa0d2ea5e4107666d403343127d9 100644
--- a/LayoutTests/svg/animations/reinserting-svg-into-document.html
+++ b/LayoutTests/svg/animations/reinserting-svg-into-document.html
@@ -11,13 +11,13 @@ function load() {
svg = document.getElementById("svg");
rect = document.getElementById("rect");
- setTimeout(function () {
+ requestAnimationFrame(function () {
svg.setCurrentTime(1);
document.body.removeChild(svg);
document.body.appendChild(svg);
- setTimeout(function () {
+ requestAnimationFrame(function () {
shouldBeCloseEnough("rect.x.animVal.value", "30", 1);
svg.setCurrentTime(2);
@@ -26,8 +26,8 @@ function load() {
if (window.testRunner)
testRunner.notifyDone();
- }, 0);
- }, 0);
+ });
+ });
};
</script>
<body onload="load()">

Powered by Google App Engine
This is Rietveld 408576698