Index: LayoutTests/svg/custom/non-scaling-stroke-update.svg |
diff --git a/LayoutTests/svg/custom/non-scaling-stroke-update.svg b/LayoutTests/svg/custom/non-scaling-stroke-update.svg |
index 5bce3f79ebee10920240a12c5f08427230551baf..cc47a265f703c79b542dd0a858e14e0a0ca3feeb 100644 |
--- a/LayoutTests/svg/custom/non-scaling-stroke-update.svg |
+++ b/LayoutTests/svg/custom/non-scaling-stroke-update.svg |
@@ -7,18 +7,17 @@ |
<script> |
if (window.testRunner) { |
- testRunner.display(); |
testRunner.waitUntilDone(); |
- setTimeout(runTest, 0); |
- } else { |
- setTimeout(runTest, 200); |
} |
+ window.requestAnimationFrame(function() { |
+ setTimeout(runTest, 0); |
+ }); |
function runTest() { |
- document.getElementById('clear_rect').setAttribute('fill', 'white'); |
- document.getElementById('rect').setAttribute('vector-effect', 'non-scaling-stroke'); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
+ document.getElementById('clear_rect').setAttribute('fill', 'white'); |
+ document.getElementById('rect').setAttribute('vector-effect', 'non-scaling-stroke'); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
} |
</script> |
</svg> |