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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/getAnimations.html

Issue 1883663003: Revert of Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wpt-sync
Patch Set: Created 4 years, 8 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/imported/web-platform-tests/web-animations/animation-effect-timing/getAnimations.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/getAnimations.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/getAnimations.html
deleted file mode 100644
index fb47ae8b29f67f341b55516dfc184b9a79b6b746..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/getAnimations.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Element.getAnimations tests</title>
-<link rel="help" href="http://w3c.github.io/web-animations/#animationeffecttiming">
-<link rel="author" title="Ryo Motozawa" href="mailto:motozawa@mozilla-japan.org">
-<script src="../../../../resources/testharness.js"></script>
-<script src="../../../../resources/testharnessreport.js"></script>
-<script src="../testcommon.js"></script>
-<body>
-<div id="log"></div>
-<script>
-'use strict';
-
-test(function(t) {
- var div = createDiv(t);
- var anim = div.animate({ opacity: [ 0, 1 ] }, 2000);
- anim.finish();
- assert_equals(div.getAnimations().length, 0, 'animation finished');
- anim.effect.timing.duration += 100000;
- assert_equals(div.getAnimations()[0], anim, 'set duration 102000');
- anim.effect.timing.duration = 0;
- assert_equals(div.getAnimations().length, 0, 'set duration 0');
- anim.effect.timing.duration = 'auto';
- assert_equals(div.getAnimations().length, 0, 'set duration \'auto\'');
-}, 'when duration is changed');
-
-test(function(t) {
- var div = createDiv(t);
- var anim = div.animate({ opacity: [ 0, 1 ] }, 2000);
-
- anim.effect.timing.endDelay = -3000;
- assert_equals(div.getAnimations().length, 0,
- 'set negative endDelay so as endTime is less than currentTime');
- anim.effect.timing.endDelay = 1000;
- assert_equals(div.getAnimations()[0], anim,
- 'set positive endDelay so as endTime is more than currentTime');
-
- anim.effect.timing.duration = 1000;
- anim.currentTime = 1500;
- assert_equals(div.getAnimations().length, 0,
- 'set currentTime less than endTime');
- anim.effect.timing.endDelay = -500;
- anim.currentTime = 400;
- assert_equals(div.getAnimations()[0], anim,
- 'set currentTime less than endTime when endDelay is negative value');
- anim.currentTime = 500;
- assert_equals(div.getAnimations().length, 0,
- 'set currentTime same as endTime when endDelay is negative value');
- anim.currentTime = 1000;
- assert_equals(div.getAnimations().length, 0,
- 'set currentTime same as duration when endDelay is negative value');
-}, 'when endDelay is changed');
-
-test(function(t) {
- var div = createDiv(t);
- var anim = div.animate({ opacity: [ 0, 1 ] },
- { duration: 1000, delay: 500, endDelay: -500 });
- assert_equals(div.getAnimations()[0], anim, 'when currentTime 0');
- anim.currentTime = 500;
- assert_equals(div.getAnimations()[0], anim, 'set currentTime 500');
- anim.currentTime = 1000;
- assert_equals(div.getAnimations().length, 0, 'set currentTime 1000');
-}, 'when currentTime changed in duration:1000, delay: 500, endDelay: -500');
-
-test(function(t) {
- var div = createDiv(t);
- var anim = div.animate({ opacity: [ 0, 1 ] },
- { duration: 1000, delay: -500, endDelay: -500 });
- assert_equals(div.getAnimations().length, 0, 'when currentTime 0');
- anim.currentTime = 500;
- assert_equals(div.getAnimations().length, 0, 'set currentTime 500');
- anim.currentTime = 1000;
- assert_equals(div.getAnimations().length, 0, 'set currentTime 1000');
-}, 'when currentTime changed in duration:1000, delay: -500, endDelay: -500');
-
-
-</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698