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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html

Issue 2427293003: Fix calls to element.animate() with positive delays not being composited (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html b/third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html
new file mode 100644
index 0000000000000000000000000000000000000000..43503086f33d4be647f204ec6c89c42da64d11dd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/animations/element-animate-positive-delay.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="target"></div>
+<script>
+promise_test(function() {
+ var animation = target.animate({
+ transform: ['rotate(0deg)', 'rotate(180deg)'],
+ }, {
+ duration: 100000,
+ delay: 1,
+ });
+ return animation.ready.then(() => {
+ assert_true(internals.isCompositedAnimation(animation));
+ });
+}, 'element.animate() with a positive delay should run compositor animations');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698