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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/player-finished-promise.html

Issue 2140013002: Delete player-finished-promise.html (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 | 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/player-finished-promise.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/player-finished-promise.html b/third_party/WebKit/LayoutTests/web-animations-api/player-finished-promise.html
deleted file mode 100644
index 22d806c2eb8eca8fdd20b4a2ce2ace8ba569cf6a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/player-finished-promise.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<script>
-test(function() {
- var player = document.documentElement.animate([], 100000);
- assert_true(player.finished instanceof Promise);
-}, 'The finished attribute should be a Promise');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- var promise = player.finished;
- player.finish();
- promise.then(function(p) {
- t.step(function() {
- assert_equals(promise, player.finished);
- });
- t.done();
- });
-}, 'The finished promise should not be replaced when the player finishes');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- player.finish();
- player.finished.then(function(p) {
- t.step(function() {
- assert_equals(p, player);
- });
- t.done();
- });
-}, 'The finished promise should resolve when the player finishes');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- player.finished.then(function() {}, function(e) {
- t.step(function() {
- assert_equals(e.code, DOMException.ABORT_ERR);
- });
- t.done();
- });
- player.cancel();
-}, 'The finished promise should be rejected if the player is cancelled');
-
-test(function() {
- var player = document.documentElement.animate([], 100000);
- player.finish();
- var promise = player.finished;
- player.play();
- assert_not_equals(player.finished, promise);
-}, 'A new finished promise should be created when a finished player is resumed');
-
-test(function() {
- var player = document.documentElement.animate([], 100000);
- var promise = player.finished;
- player.cancel();
- assert_not_equals(player.finished, promise);
-}, 'A new finished promise should be created when a running player is cancelled');
-
-test(function() {
- var player = document.documentElement.animate([], 100000);
- var promise = player.finished;
- player.finish();
- player.cancel();
- assert_not_equals(player.finished, promise);
-}, 'A new finished promise should be created when a finished player is cancelled');
-</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