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

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: fix use-detatch.svg 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/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..ce5bc231f72f249df7fa7bb97449db09c9421af0 100644
--- a/LayoutTests/svg/custom/pending-resource-after-removal.xhtml
+++ b/LayoutTests/svg/custom/pending-resource-after-removal.xhtml
@@ -4,6 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
<title>The rectangle should be green.</title></head>
<script>
window.testIsAsync = true;
@@ -48,7 +49,7 @@ function updateFill() {
function repaintTest() {
updateFill();
- setTimeout("updateFill()", 0);
+ runAfterDisplay(updateFill);
}
</script>
<body onload="runRepaintAndPixelTest()">

Powered by Google App Engine
This is Rietveld 408576698