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

Unified Diff: third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html

Issue 2601103003: CSS Animations: fix flaky zoom-responsive-transform-animation.html (Closed)
Patch Set: remove unneeded line Created 3 years, 12 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: third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html
diff --git a/third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html b/third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html
index 1767b2599d9876a5e294ae67124a53a2cfea2df9..dda23df93babc63fd7dd308d91cd5481db189f07 100644
--- a/third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html
+++ b/third_party/WebKit/LayoutTests/animations/zoom-responsive-transform-animation.html
@@ -14,7 +14,9 @@
}
</style>
<div id="container"></div>
+<div id="footer"></div>
<script>
+'use strict';
[
'perspective(200px) translate3D(10px, 10px, 10px)',
'matrix(0, 1, 1, 0, 10, 10)',
@@ -47,12 +49,18 @@
if (window.testRunner)
testRunner.waitUntilDone();
+function waitForCompositor() {
+ return footer.animate({opacity: ['1', '1']}, 1).ready;
+}
+
requestAnimationFrame(() => {
requestAnimationFrame(() => {
internals.setZoomFactor(2);
requestAnimationFrame(() => {
- if (window.testRunner)
- testRunner.notifyDone();
+ waitForCompositor().then(() => {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
});
});
});

Powered by Google App Engine
This is Rietveld 408576698