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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/web-animations/neutral-keyframe-easing.html

Issue 2976613002: Move Web Animations API 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 <script src="../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
3 <div id="target"></div> 3 <div id="target"></div>
4 <script> 4 <script>
5 test(() => { 5 test(() => {
6 target.style.left = '100px'; 6 target.style.left = '100px';
7 var animation = target.animate([{easing: 'steps(2, start)'}, {left: '200px'}], 1000); 7 var animation = target.animate([{easing: 'steps(2, start)'}, {left: '200px'}], 1000);
8 animation.pause(); 8 animation.pause();
9 animation.currentTime = 0; 9 animation.currentTime = 0;
10 assert_equals(getComputedStyle(target).left, '150px'); 10 assert_equals(getComputedStyle(target).left, '150px');
11 }, 'Neutral keyframes should be able to specify their own keyframe timing functi on.'); 11 }, 'Neutral keyframes should be able to specify their own keyframe timing functi on.');
12 </script> 12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698