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

Unified Diff: LayoutTests/transitions/opacity-transition-zindex.html

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 years 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/opacity-transition-zindex.html
diff --git a/LayoutTests/transitions/opacity-transition-zindex.html b/LayoutTests/transitions/opacity-transition-zindex.html
index 4ce9fc2d4da6db53723c08372fdb1e99ddf99da8..97882f03255c16513d133f31b48a49339cf1842d 100644
--- a/LayoutTests/transitions/opacity-transition-zindex.html
+++ b/LayoutTests/transitions/opacity-transition-zindex.html
@@ -47,12 +47,13 @@
container.style.opacity = 1;
// dump the tree in the middle of the transition
- if (window.testRunner)
- window.setTimeout(function() {
- var firstElement = document.getElementById('first');
- internals.pauseAnimations(2.5);
+ if (window.internals) {
+ window.internals.forceCompositingUpdate(document);
+ window.internals.pauseAnimations(2.5);
+ }
+ if (window.testRunner) {
testRunner.notifyDone();
- }, 0);
+ }
}
// FIXME: this should use runTransitionTest().
window.addEventListener('load', runTest, false);

Powered by Google App Engine
This is Rietveld 408576698