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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg/svg-composition-ignores-css-composition-flag.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 <div id="cssTarget"></div> 4 <div id="cssTarget"></div>
5 <svg> 5 <svg>
6 <rect id="svgTarget" color="red"></rect> 6 <rect id="svgTarget" color="red"></rect>
7 </svg> 7 </svg>
8 8
9 <script> 9 <script>
10 internals.disableCSSAdditiveAnimations(); 10 internals.disableCSSAdditiveAnimations();
11 11
12 test(() => { 12 test(() => {
(...skipping 16 matching lines...) Expand all
29 animation.cancel(); 29 animation.cancel();
30 }, 'Neutral keyframes supported for SVG presentation attributes.'); 30 }, 'Neutral keyframes supported for SVG presentation attributes.');
31 31
32 test(() => { 32 test(() => {
33 var keyframe = {'svg-color': 'green', composite: 'add'}; 33 var keyframe = {'svg-color': 'green', composite: 'add'};
34 var animation = svgTarget.animate([keyframe, keyframe], {fill: 'forwards'}); 34 var animation = svgTarget.animate([keyframe, keyframe], {fill: 'forwards'});
35 assert_equals(getComputedStyle(svgTarget).color, 'rgb(255, 128, 0)'); 35 assert_equals(getComputedStyle(svgTarget).color, 'rgb(255, 128, 0)');
36 animation.cancel(); 36 animation.cancel();
37 }, 'Additive keyframes supported for SVG presentation attributes.'); 37 }, 'Additive keyframes supported for SVG presentation attributes.');
38 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698