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/use-detach.svg

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/use-detach.svg
diff --git a/LayoutTests/svg/custom/use-detach.svg b/LayoutTests/svg/custom/use-detach.svg
index a1f975baf243c7e6f55a7062a3bde9441ccf6194..213b72476eae184b7055bb122fb7c13500d4c880 100644
--- a/LayoutTests/svg/custom/use-detach.svg
+++ b/LayoutTests/svg/custom/use-detach.svg
@@ -8,12 +8,15 @@
function repaintTest() {
var elem = document.getElementById('use');
elem.setAttributeNS(null,'display','inline');
- window.setTimeout("step2()", 0);
+ // Nested RAF to ensure enough time elapsed for repaint logging to occur
+ requestAnimationFrame(function() {
+ requestAnimationFrame(step2);
+ });
}
function step2() {
var elem = document.getElementById('use');
elem.setAttributeNS(null,'display','none');
- window.setTimeout("step3()", 0);
+ requestAnimationFrame(step3);
}
function step3() {
var elem = document.getElementById('use');

Powered by Google App Engine
This is Rietveld 408576698