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

Unified Diff: third_party/WebKit/LayoutTests/animations/animate-shorthand-var.html

Issue 2974853002: Assorted small animation test moves (Closed)
Patch Set: Also rename test referring to 'players' 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/animate-shorthand-var.html
diff --git a/third_party/WebKit/LayoutTests/animations/animate-shorthand-var.html b/third_party/WebKit/LayoutTests/animations/animate-shorthand-var.html
deleted file mode 100644
index 089ec3be2641718526e2de5e011c52dffaefa03a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/animate-shorthand-var.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<style>
-body {
- --x: green;
- --y: lime;
-}
-@keyframes test {
- from { background: var(--x); }
- to { background: var(--y); }
-}
-#cssAnimations {
- animation: test 1s -0.5s linear paused;
-}
-</style>
-<div id="cssAnimations"></div>
-<div id="webAnimations"></div>
-<script>
-test(() => {
- assert_equals(getComputedStyle(cssAnimations).backgroundColor, 'rgb(0, 192, 0)');
-}, 'CSS Animations should interpolate shorthand properties with variable references in them.');
-
-test(() => {
- var animation = webAnimations.animate({background: ['var(--x)', 'var(--y)']}, 1);
- animation.currentTime = 0.5;
- assert_equals(getComputedStyle(webAnimations).backgroundColor, 'rgb(0, 192, 0)');
-}, 'Web Animations should interpolate shorthand properties with variable references in them.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698