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

Unified Diff: LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg

Issue 1111323002: Attempt to deflake svg/custom/js-late-{clipPath,gradient}-and-...svg (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
« no previous file with comments | « LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg
diff --git a/LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg b/LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg
index 3f6945cd763f61eaa3d98eddcfdf10aed6654d22..3656d0a76099496b958e37cf40e82d277b644b66 100644
--- a/LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg
+++ b/LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg
@@ -5,14 +5,14 @@
<g id="content"/>
<script>
- var content = document.getElementById("content");
+ window.testIsAsync = true;
function repaintTest() {
- if (window.testRunner)
- testRunner.waitUntilDone();
- setTimeout(createGradients, 0);
+ runAfterDisplay(createGradients);
}
+ var content = document.getElementById("content");
+
function createGradients()
{
// Setup "fillLinearGradient"
@@ -52,7 +52,8 @@
gradient2.appendChild(stop22);
content.appendChild(gradient2);
- setTimeout(setupGradientUsers, 0);
+
+ runAfterDisplay(setupGradientUsers);
}
function setupGradientUsers()
@@ -87,8 +88,7 @@
content.appendChild(text3);
- if (window.testRunner)
- testRunner.notifyDone();
+ finishRepaintTest();
}
</script>
« no previous file with comments | « LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698