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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/timing/implicit-keyframe-with-timing-function.html

Issue 2979503002: Move animation timing tests to subdirectory (Closed)
Patch Set: Created 3 years, 5 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 <div id="target">Test target</div> 4 <div id="target">Test target</div>
5 <script> 5 <script>
6 var target = document.getElementById('target'); 6 var target = document.getElementById('target');
7 var test1 = async_test('Timing function should apply even when keyframes are not specified'); 7 var test1 = async_test('Timing function should apply even when keyframes are not specified');
8 target.addEventListener('animationstart', function() { 8 target.addEventListener('animationstart', function() {
9 test1.step(function() { 9 test1.step(function() {
10 assert_equals(getComputedStyle(target).left, '1000px'); 10 assert_equals(getComputedStyle(target).left, '1000px');
11 }); 11 });
12 target.remove(); 12 target.remove();
13 test1.done(); 13 test1.done();
14 }); 14 });
15 </script> 15 </script>
16 <style> 16 <style>
17 #target { 17 #target {
18 animation: anim 1s -0.25s step-start paused; 18 animation: anim 1s -0.25s step-start paused;
19 left: 0px; 19 left: 0px;
20 } 20 }
21 @keyframes anim { 21 @keyframes anim {
22 50% { left: 1000px; } 22 50% { left: 1000px; }
23 } 23 }
24 </style> 24 </style>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698