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

Unified Diff: LayoutTests/svg/custom/resource-client-removal.svg

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/pending-resource-after-removal.xhtml ('k') | LayoutTests/svg/custom/use-detach.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/resource-client-removal.svg
diff --git a/LayoutTests/svg/custom/resource-client-removal.svg b/LayoutTests/svg/custom/resource-client-removal.svg
index 0bf7b96c0f6d806ec26eb081f70bcaf47b47f3a4..3fd84f48949257aa8f549900a36f132e37ea9078 100644
--- a/LayoutTests/svg/custom/resource-client-removal.svg
+++ b/LayoutTests/svg/custom/resource-client-removal.svg
@@ -6,16 +6,18 @@ window.testIsAsync = true;
function repaintTest() {
container = document.getElementById("inneruse");
stop = document.getElementById("offset");
- setTimeout(offset, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(offset, 1);
}
var turns = 5;
function offset(){
container.setAttribute ("transform", "");
stop.setAttribute ("offset", "1.0");
turns--;
- if (turns > 0)
- window.setTimeout("offset()", 0)
- else
+ if (turns > 0) {
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ window.setTimeout("offset()", 1)
+ } else
finishRepaintTest();
}
]]>
« no previous file with comments | « LayoutTests/svg/custom/pending-resource-after-removal.xhtml ('k') | LayoutTests/svg/custom/use-detach.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698