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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg/css-animation-overrides-svg-presentation-attribute-animation.html

Issue 2975793004: Move animation svg tests to own 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 3
4 <svg> 4 <svg>
5 <rect id="target"/> 5 <rect id="target"/>
6 </svg> 6 </svg>
7 7
8 <script> 8 <script>
9 test(() => { 9 test(() => {
10 target.animate({color: 'green'}, {fill: 'forwards'}); 10 target.animate({color: 'green'}, {fill: 'forwards'});
11 target.animate({'svg-color': 'red'}, {fill: 'forwards'}); 11 target.animate({'svg-color': 'red'}, {fill: 'forwards'});
12 assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)'); 12 assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
13 }, 'CSS animations always override SVG presentation attribute animations'); 13 }, 'CSS animations always override SVG presentation attribute animations');
14 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698