Index: LayoutTests/svg/custom/stale-resource-data-crash.svg |
diff --git a/LayoutTests/svg/custom/stale-resource-data-crash.svg b/LayoutTests/svg/custom/stale-resource-data-crash.svg |
index 52c70cda820147bdc4604e78c40c9c34b6c535a7..e2c27c52b4eea29681d97c0f36f9bc41be95a25a 100644 |
--- a/LayoutTests/svg/custom/stale-resource-data-crash.svg |
+++ b/LayoutTests/svg/custom/stale-resource-data-crash.svg |
@@ -19,14 +19,19 @@ |
newDefs = document.getElementById('defs').cloneNode(true); |
if (window.testRunner) { |
- testRunner.dumpAsText(); |
- // Force a paint at this point to generate cached filter results. |
- testRunner.display(); |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
} |
- |
- docElement.appendChild(newDefs); |
- docElement.appendChild(f2); |
- docElement.offsetTop; |
- light.removeAttribute('azimuth'); |
+ // Force a paint at this point to generate cached filter results. |
+ window.requestAnimationFrame(function() { |
+ setTimeout(function() { |
+ docElement.appendChild(newDefs); |
+ docElement.appendChild(f2); |
+ docElement.offsetTop; |
+ light.removeAttribute('azimuth'); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 0); |
+ }); |
</script> |
</svg> |