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

Unified Diff: LayoutTests/svg/custom/js-late-clipPath-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/TestExpectations ('k') | LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg
diff --git a/LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg b/LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg
index ec0502a7ab3b8fa656d45ad132d12aa4471d05ec..61bd33201572bd606238a8148b50ae7fe247ae2d 100644
--- a/LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg
+++ b/LayoutTests/svg/custom/js-late-clipPath-and-object-creation.svg
@@ -4,13 +4,13 @@
<script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
<g id="content" transform="scale(1, 1.5)"/>
<script>
- var content = document.getElementById("content");
+ window.testIsAsync = true;
function repaintTest() {
- if (window.testRunner)
- testRunner.waitUntilDone();
- setTimeout(createObject, 0);
+ runAfterDisplay(createObject);
}
+ var content = document.getElementById("content");
+
function createObject()
{
var text = document.createElementNS("http://www.w3.org/2000/svg", "text");
@@ -23,7 +23,7 @@
text.appendChild(document.createTextNode("Clipped. INVISIBLE."));
content.appendChild(text);
- setTimeout(createClipPath, 0);
+ runAfterDisplay(createClipPath);
}
function createClipPath()
@@ -38,8 +38,7 @@
clipPath.appendChild(path);
content.appendChild(clipPath);
- if (window.testRunner)
- testRunner.notifyDone();
+ finishRepaintTest();
}
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/custom/js-late-gradient-and-object-creation.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698