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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/responsive/stacked-visibility-animations-responsive.html

Issue 2973013002: Group all responsive animation tests together (Closed)
Patch Set: Rebase 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"></div> 4 <div id="target"></div>
5 <script> 5 <script>
6 test(() => { 6 test(() => {
7 var firstAnimation = target.animate([{visibility: 'hidden'}, {visibility: 'vis ible'}], 1); 7 var firstAnimation = target.animate([{visibility: 'hidden'}, {visibility: 'vis ible'}], 1);
8 var secondAnimation = target.animate({visibility: 'collapse'}, 1); 8 var secondAnimation = target.animate({visibility: 'collapse'}, 1);
9 firstAnimation.pause(); 9 firstAnimation.pause();
10 firstAnimation.currentTime = 0; 10 firstAnimation.currentTime = 0;
11 secondAnimation.pause(); 11 secondAnimation.pause();
12 secondAnimation.currentTime = 0.75; 12 secondAnimation.currentTime = 0.75;
13 assert_equals(getComputedStyle(target).visibility, 'collapse'); 13 assert_equals(getComputedStyle(target).visibility, 'collapse');
14 firstAnimation.currentTime = 0.1; 14 firstAnimation.currentTime = 0.1;
15 assert_equals(getComputedStyle(target).visibility, 'visible'); 15 assert_equals(getComputedStyle(target).visibility, 'visible');
16 }, "Visibility animations with neutral keyframes should be responsive to animati ons they're stacked on top of."); 16 }, "Visibility animations with neutral keyframes should be responsive to animati ons they're stacked on top of.");
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698