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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/additive-transform-animations.html

Issue 1768043002: Rewrite the additive-transform-animations test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/additive-transform-animations-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style>
3 .box {
4 height: 100px;
5 width: 100px;
6 background-color: blue;
7 }
2 8
3 <html> 9 #box {
4 <head> 10 animation-name: anim;
5 <style type="text/css"> 11 animation-duration: 1s;
6 .box { 12 animation-delay: -0.5s;
7 height: 100px; 13 animation-play-state: paused;
8 width: 100px; 14 animation-timing-function: linear;
9 background-color: blue; 15 }
10 }
11
12 #box {
13 -webkit-animation: anim 2s linear both;
14 }
15
16 @-webkit-keyframes anim {
17 from { transform: rotate(0deg) translate(-100px, 0); }
18 to { transform: rotate(180deg) translate(300px, 0); }
19 }
20 </style>
21 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt>
22 <script type="text/javascript">
23 const expectedValues = [
24 // [time, element-id, property, expected-value, tolerance]
25 [1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002],
26 ];
27
28 const doPixelTest = true;
29 const disablePauseAnimationAPI = false;
30 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest);
31 </script>
32 </head>
33 <body>
34 16
17 @-webkit-keyframes anim {
18 from { transform: rotate(0deg) translate(-100px, 0); }
19 to { transform: rotate(180deg) translate(300px, 0); }
20 }
21 </style>
35 <div class="box" id="box"></div> 22 <div class="box" id="box"></div>
36 <div id="result"></div>
37
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/additive-transform-animations-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698