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

Unified Diff: LayoutTests/svg/custom/stale-resource-data-crash.svg

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/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>

Powered by Google App Engine
This is Rietveld 408576698