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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html

Issue 2148733005: Remove test coverage of document.timeline.getAnimations() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html
deleted file mode 100644
index 8e340e801059ddb16ab10738cbc5698f4a651e8c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<div id='container'>
- <div id='element'></div>
-</div>
-
-<script>
-
-var container = document.getElementById('container');
-var element = document.getElementById('element');
-
-test(function() {
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
- var animation = element.animate([], 1000);
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation);
-
- var animation2 = container.animate([], 1000);
- assert_equals(document.timeline.getAnimations().length, 2);
- assert_equals(document.timeline.getAnimations()[0], animation);
- assert_equals(document.timeline.getAnimations()[1], animation2);
-
- animation.finish();
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation2);
-
- animation2.finish();
- assert_equals(document.timeline.getAnimations().length, 0);
-}, 'Timeline getAnimations()');
-
-test(function() {
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
- var animation = element.animate([], 1000);
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 1);
- assert_equals(element.getAnimations()[0], animation);
-
- var animation2 = container.animate([], 1000);
- assert_equals(document.timeline.getAnimations().length, 2);
- assert_equals(document.timeline.getAnimations()[0], animation);
- assert_equals(document.timeline.getAnimations()[1], animation2);
- assert_equals(container.getAnimations().length, 1);
- assert_equals(container.getAnimations()[0], animation2);
- assert_equals(element.getAnimations().length, 1);
- assert_equals(element.getAnimations()[0], animation);
-
- animation.finish();
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation2);
- assert_equals(container.getAnimations().length, 1);
- assert_equals(container.getAnimations()[0], animation2);
- assert_equals(element.getAnimations().length, 0);
-
- animation2.finish();
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
-}, 'Animatable getAnimations()');
-
-test(function() {
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
- var animation = element.animate([], {duration: 1000, delay: 500});
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 1);
- assert_equals(element.getAnimations()[0], animation);
-
- animation.finish();
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
-}, 'getAnimations() with delays');
-
-test(function() {
- assert_equals(document.timeline.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
- var animation = element.animate([], {duration: 1000, delay: 500, fill: 'both'});
- assert_equals(document.timeline.getAnimations().length, 1);
- assert_equals(document.timeline.getAnimations()[0], animation);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 1);
- assert_equals(element.getAnimations()[0], animation);
-
- animation.finish();
- assert_equals(document.timeline.getAnimations().length, 1);
- // assert_equals(container.getAnimations().length, 1);
- // assert_equals(element.getAnimations().length, 1);
-
-}, 'getAnimations() - in effect animations');
-
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698