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

Unified Diff: third_party/WebKit/LayoutTests/animations/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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/animations/svg-composition-ignores-css-composition-flag.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-composition-ignores-css-composition-flag.html b/third_party/WebKit/LayoutTests/animations/svg-composition-ignores-css-composition-flag.html
deleted file mode 100644
index d006c86b6d312d85cb60cba8d2da8dd4198c122f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/svg-composition-ignores-css-composition-flag.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<div id="cssTarget"></div>
-<svg>
- <rect id="svgTarget" color="red"></rect>
-</svg>
-
-<script>
-internals.disableCSSAdditiveAnimations();
-
-test(() => {
- assert_throws('NotSupportedError', () => {
- cssTarget.animate({color: 'red'});
- });
- assert_throws('NotSupportedError', () => {
- cssTarget.animate([
- {color: 'red'},
- {color: 'red', composite: 'add'},
- ]);
- });
-}, 'Precheck that disabling CSS additive animations works.');
-
-test(() => {
- var animation = svgTarget.animate({'svg-color': 'green'}, 1);
- animation.pause();
- animation.currentTime = 0.5;
- assert_equals(getComputedStyle(svgTarget).color, 'rgb(128, 64, 0)');
- animation.cancel();
-}, 'Neutral keyframes supported for SVG presentation attributes.');
-
-test(() => {
- var keyframe = {'svg-color': 'green', composite: 'add'};
- var animation = svgTarget.animate([keyframe, keyframe], {fill: 'forwards'});
- assert_equals(getComputedStyle(svgTarget).color, 'rgb(255, 128, 0)');
- animation.cancel();
-}, 'Additive keyframes supported for SVG presentation attributes.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698