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

Unified Diff: LayoutTests/animations/animation-paused-hardware.html

Issue 159733003: Don't run paused animations on the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add automated test. 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
« no previous file with comments | « no previous file | LayoutTests/animations/animation-paused-hardware-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/animation-paused-hardware.html
diff --git a/LayoutTests/animations/animation-paused-hardware.html b/LayoutTests/animations/animation-paused-hardware.html
new file mode 100644
index 0000000000000000000000000000000000000000..db49dd44cf12797d875748de4b200521f9033f14
--- /dev/null
+++ b/LayoutTests/animations/animation-paused-hardware.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<html>
+<head>
+ <title>Test that paused composited animations do not animate</title>
+ <style>
+ #box {
+ background-color: coral;
+ height: 100px;
+ width: 100px;
+ opacity: 1.0;
+ -webkit-animation-play-state: paused;
+ -webkit-animation-duration: 0.2s;
+ -webkit-animation-timing-function: linear;
+ -webkit-animation-name: fade;
+ -webkit-animation-fill-mode: forwards;
+ }
+
+ @-webkit-keyframes fade {
+ to { opacity: 0.3; }
+ }
+ </style>
+ <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ const expectedValues = [
+ // [time, element-id, property, expected-value, tolerance]
+ [0.2, "box", "opacity", 1, 0.002],
+ ];
+
+ const doPixelTest = true;
+ const disablePauseAnimationAPI = true;
+ runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
+ </script>
+</head>
+<body>
+ <div id="box"></div>
+ <div id="result"></div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/animations/animation-paused-hardware-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698