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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/compositor-start-event-timing.html

Issue 2702483002: Paint some content for animated elements in composited animation tests. (Closed)
Patch Set: Don't revise sample-on-last-keyframe.html test. Created 3 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 .start { 5 .start {
6 animation: anim 1ms; 6 animation: anim 1ms;
7 } 7 }
8 8
9 @keyframes anim { 9 @keyframes anim {
10 0% { 10 0% {
11 transform: translate3d(0, 0, 1px); 11 transform: translate3d(0, 0, 1px);
12 } 12 }
13 100% { 13 100% {
14 transform: translate3d(0, 0, 0); 14 transform: translate3d(0, 0, 0);
15 } 15 }
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>x
19 <script> 19 <script>
20 'use strict'; 20 'use strict';
21 async_test(function(t) { 21 async_test(function(t) {
22 22
23 requestAnimationFrame(function() { 23 requestAnimationFrame(function() {
24 document.body.classList.add('start'); 24 document.body.classList.add('start');
25 25
26 // Force a style resolve, to ensure the animation is created. 26 // Force a style resolve, to ensure the animation is created.
27 document.body.offsetTop; 27 document.body.offsetTop;
28 28
(...skipping 15 matching lines...) Expand all
44 44
45 // We missed the opportunity to add a start event listener 45 // We missed the opportunity to add a start event listener
46 // before the animation started. This test might flakily 46 // before the animation started. This test might flakily
47 // pass even if the implementation is incorrect. 47 // pass even if the implementation is incorrect.
48 t.done(); 48 t.done();
49 } 49 }
50 }, 0); 50 }, 0);
51 }); 51 });
52 }); 52 });
53 </script> 53 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698