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

Unified Diff: LayoutTests/svg/custom/pending-resource-after-removal.xhtml

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/pending-resource-after-removal.xhtml
diff --git a/LayoutTests/svg/custom/pending-resource-after-removal.xhtml b/LayoutTests/svg/custom/pending-resource-after-removal.xhtml
index 9100804228ade013e35d1ba5fe06b59ef8523c28..ebdfb8e56036f85c0455e98c309be3fb113eeb74 100644
--- a/LayoutTests/svg/custom/pending-resource-after-removal.xhtml
+++ b/LayoutTests/svg/custom/pending-resource-after-removal.xhtml
@@ -48,7 +48,10 @@ function updateFill() {
function repaintTest() {
updateFill();
- setTimeout("updateFill()", 0);
+ // Nested RAF to ensure enough time elapsed for repaint logging to occur
Julien - ping for review 2014/10/03 22:22:32 runAfterDisplay would probably solve this issue bu
alex clarke (OOO till 29th) 2014/10/10 17:46:02 Done.
+ requestAnimationFrame(function() {
+ requestAnimationFrame(updateFill);
+ });
}
</script>
<body onload="runRepaintAndPixelTest()">

Powered by Google App Engine
This is Rietveld 408576698