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/js-late-marker-and-object-creation.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
Index: LayoutTests/svg/custom/js-late-marker-and-object-creation.svg
diff --git a/LayoutTests/svg/custom/js-late-marker-and-object-creation.svg b/LayoutTests/svg/custom/js-late-marker-and-object-creation.svg
index 18b4f6409f1ee33343026c81b53c5c6d56d83d65..ea863efdff03eeca2b715c4564fe2fc91f8380bf 100644
--- a/LayoutTests/svg/custom/js-late-marker-and-object-creation.svg
+++ b/LayoutTests/svg/custom/js-late-marker-and-object-creation.svg
@@ -19,7 +19,8 @@
var content = document.getElementById("content");
function repaintTest() {
- setTimeout(createObject, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(createObject, 1);
}
function createObject()
@@ -34,7 +35,8 @@
path.setAttribute("d", "M 130 135 L 180 135 L 180 185");
content.appendChild(path);
- setTimeout(createMarker, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(createMarker, 1);
}
function createMarker()
« no previous file with comments | « LayoutTests/svg/custom/js-late-gradient-creation.svg ('k') | LayoutTests/svg/custom/js-late-mask-and-object-creation.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698