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

Unified Diff: LayoutTests/transitions/webkit-clip-path-equality.html

Issue 135693003: Defer starting of animations until after compositing update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Advance animation clock after minimum delay. Created 6 years, 10 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/transitions/webkit-clip-path-equality.html
diff --git a/LayoutTests/transitions/webkit-clip-path-equality.html b/LayoutTests/transitions/webkit-clip-path-equality.html
index a0ea565b52b95b31a7292dd29393fef559f82578..20a5be6cb33317a7bdad4e2ea3db5bb4b9b30362 100644
--- a/LayoutTests/transitions/webkit-clip-path-equality.html
+++ b/LayoutTests/transitions/webkit-clip-path-equality.html
@@ -13,17 +13,22 @@ if (window.testRunner) {
testRunner.waitUntilDone();
}
var target = document.getElementById('target');
+var result = '';
onload = function() {
target.style.webkitClipPath = getComputedStyle(target).webkitClipPath;
+ requestAnimationFrame(step1);
+};
+function step1() {
target.offsetTop;
- var result = '';
if (window.internals) {
result = (internals.numberOfActiveAnimations() == 0) ?
'PASS - No transition started.' :
'FAIL - Unexpected transition started.';
}
target.style.webkitClipPath = 'circle(0px, 0px, 200px)';
- target.offsetTop;
+ requestAnimationFrame(step2);
+}
+function step2() {
if (window.internals) {
result += (internals.numberOfActiveAnimations() == 1) ?
'\nPASS - Transition started.' :

Powered by Google App Engine
This is Rietveld 408576698