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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg/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 'use strict'; 9 'use strict';
10 10
11 var testCases = [ 11 var testCases = [
12 ['alignment-baseline', 'middle'], 12 ['alignment-baseline', 'middle'],
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 for (var [property, value] of testCases) { 77 for (var [property, value] of testCases) {
78 target.animate({[svgPrefix(property)]: value}, {fill: 'forwards'}); 78 target.animate({[svgPrefix(property)]: value}, {fill: 'forwards'});
79 } 79 }
80 80
81 for (var [property, value] of testCases) { 81 for (var [property, value] of testCases) {
82 test(() => { 82 test(() => {
83 assert_equals(getComputedStyle(target)[property], value); 83 assert_equals(getComputedStyle(target)[property], value);
84 }, 'Web Animations can target ' + svgPrefix(property)); 84 }, 'Web Animations can target ' + svgPrefix(property));
85 } 85 }
86 </script> 86 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698