| 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()">
|
|
|