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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/non-animatable-property.html

Issue 2141713003: Clean up non-animatable-property.html test to match W3C (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed dupe test Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/non-animatable-property.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/non-animatable-property.html b/third_party/WebKit/LayoutTests/web-animations-api/non-animatable-property.html
deleted file mode 100644
index 312f100a6a843ba8849d57562d0bf6b2ef592d60..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/non-animatable-property.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<div id='e'></div>
-
-<script>
-var player;
-
-function expectValue(time, property, expectation) {
- player.currentTime = time;
- assert_equals(getComputedStyle(e)[property], expectation);
-}
-
-test(function() {
- player = e.animate(
- [{float: 'left'}, {float: 'right'}],
- {duration: 1, fill: 'both'});
- player.pause();
-
- expectValue(0, 'float', 'left');
- expectValue(0.25, 'float', 'left');
- expectValue(0.49, 'float', 'left');
- expectValue(0.5, 'float', 'right');
- expectValue(0.75, 'float', 'right');
- expectValue(1, 'float', 'right');
-}, 'Non-animatable property float should 50% flip between keyframe values via the element.animate() API.');
-
-test(function() {
- player = e.animate([
- {animationName: 'a', animationDuration: '1s', transitionProperty: 'left', transitionDuration: '1s', display: 'table'},
- {animationName: 'b', animationDuration: '10s', transitionProperty: 'right', transitionDuration: '10s', display: 'none'},
- ], {duration: 1, fill: 'both'});
- player.pause();
-
- expectValue(0, 'animationName', 'none');
- expectValue(0.25, 'animationName', 'none');
- expectValue(0.5, 'animationName', 'none');
- expectValue(0.75, 'animationName', 'none');
- expectValue(1, 'animationName', 'none');
-
- expectValue(0, 'animationDuration', '0s');
- expectValue(0.25, 'animationDuration', '0s');
- expectValue(0.5, 'animationDuration', '0s');
- expectValue(0.75, 'animationDuration', '0s');
- expectValue(1, 'animationDuration', '0s');
-
- expectValue(0, 'transitionProperty', 'all');
- expectValue(0.25, 'transitionProperty', 'all');
- expectValue(0.5, 'transitionProperty', 'all');
- expectValue(0.75, 'transitionProperty', 'all');
- expectValue(1, 'transitionProperty', 'all');
-
- expectValue(0, 'transitionDuration', '0s');
- expectValue(0.25, 'transitionDuration', '0s');
- expectValue(0.5, 'transitionDuration', '0s');
- expectValue(0.75, 'transitionDuration', '0s');
- expectValue(1, 'transitionDuration', '0s');
-
- expectValue(0, 'display', 'block');
- expectValue(0.25, 'display', 'block');
- expectValue(0.5, 'display', 'block');
- expectValue(0.75, 'display', 'block');
- expectValue(1, 'display', 'block');
-}, 'Animation related properties should not be animatable via element.animate().');
-</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698