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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.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/w3c/get-animations.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.html b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.html
deleted file mode 100644
index 761e7a55c1c45bc7c15cf623d95efdb4f90b185f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animations.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Get Animations</title>
-<link rel="help" ­href="https://w3c.github.io/web-animations/#dom-document-getanimations">
-<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.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
- var animation = element.animate([], 1000);
- assert_equals(document.getAnimations().length, 1);
- assert_equals(document.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.getAnimations().length, 2);
- assert_equals(document.getAnimations()[0], animation);
- assert_equals(document.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.getAnimations().length, 1);
- assert_equals(document.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.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
-}, 'getAnimations() normal behaviour (without delays)');
-
-test(function() {
- assert_equals(document.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.getAnimations().length, 1);
- assert_equals(document.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.getAnimations().length, 0);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 0);
-
-}, 'getAnimations() with animation delays');
-
-test(function() {
- assert_equals(document.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.getAnimations().length, 1);
- assert_equals(document.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.getAnimations().length, 1);
- assert_equals(container.getAnimations().length, 0);
- assert_equals(element.getAnimations().length, 1);
-
-}, 'getAnimations() with in effect animations');
-
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698