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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-effect-timing-easing.html

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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/web-animations-api/animation-effect-timing-easing.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-timing-easing.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-timing-easing.html
deleted file mode 100644
index f66af317411d689e0ce4f47d0b512d585895f2b9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-timing-easing.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>AnimationEffectTiming easing tests</title>
-<link rel="help" href="https://w3c.github.io/web-animations/#the-animationeffecttiming-interface">
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script>
-var animate_with_easing = function(inputEasing) {
- return document.documentElement.animate([], { easing : inputEasing });
-};
-
-var assert_animate_with_easing_succeeds = function(inputEasing, expectedEasing) {
- var animation = animate_with_easing(inputEasing);
- assert_equals(animation.effect.timing.easing, expectedEasing);
-};
-
-var assert_animate_with_easing_roundtrips = function(inputEasing) {
- assert_animate_with_easing_succeeds(inputEasing, inputEasing);
-};
-
-var assert_animate_with_easing_throws = function(inputEasing) {
- assert_throws(
- {name: 'TypeError'},
- function() { animate_with_easing(inputEasing); },
- 'with inputEasing=\'' + inputEasing + '\'');
-};
-
-test(function() {
- assert_animate_with_easing_roundtrips('ease');
- assert_animate_with_easing_roundtrips('linear');
- assert_animate_with_easing_roundtrips('ease-in');
- assert_animate_with_easing_roundtrips('ease-out');
- assert_animate_with_easing_roundtrips('ease-in-out');
- assert_animate_with_easing_roundtrips('cubic-bezier(0.1, 5, 0.23, 0)');
-}, 'Valid linear and cubic-bezier easing functions should come out the same as they went in');
-
-test(function() {
- assert_animate_with_easing_succeeds('step-start', 'steps(1, start)');
- assert_animate_with_easing_succeeds('step-middle', 'steps(1, middle)');
- assert_animate_with_easing_succeeds('step-end', 'steps(1)');
- assert_animate_with_easing_succeeds('steps(3, start)', 'steps(3, start)');
- assert_animate_with_easing_succeeds('steps(3, middle)', 'steps(3, middle)');
- assert_animate_with_easing_succeeds('steps(3, end)', 'steps(3)');
- assert_animate_with_easing_succeeds('steps(3)', 'steps(3)');
-}, 'Valid step-function easings serialize as steps(<int>) or steps(<int>, start)');
-
-test(function() {
- assert_animate_with_easing_succeeds('eAse\\2d iN-ouT', 'ease-in-out');
-}, 'Should accept arbitrary casing and escape chararcters');
-
-test(function() {
- assert_animate_with_easing_throws('');
- assert_animate_with_easing_throws('initial');
- assert_animate_with_easing_throws('inherit');
- assert_animate_with_easing_throws('unset');
- assert_animate_with_easing_throws('steps(3, nowhere)');
- assert_animate_with_easing_throws('steps(-3, end)');
- assert_animate_with_easing_throws('cubic-bezier(0.1, 0, 4, 0.4)');
- assert_animate_with_easing_throws('function (a){return a}');
- assert_animate_with_easing_throws('function (x){return x}');
- assert_animate_with_easing_throws('function(x, y){return 0.3}');
- assert_animate_with_easing_throws('7');
-}, 'Invalid easing values should throw a TypeError');
-</script>

Powered by Google App Engine
This is Rietveld 408576698