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/player-ready-promise.html

Issue 2143533002: Rename player => animation in ready promise test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Diff should show changes 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 | « third_party/WebKit/LayoutTests/web-animations-api/animation-ready-promise.html ('k') | 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-ready-promise.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/player-ready-promise.html b/third_party/WebKit/LayoutTests/web-animations-api/player-ready-promise.html
deleted file mode 100644
index 004a5b75ac4c37882b2a4d15db1992a552bcea26..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/player-ready-promise.html
+++ /dev/null
@@ -1,89 +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.ready instanceof Promise);
-}, 'The ready attribute should be a Promise');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- player.cancel();
- player.ready.then(function(p) {
- t.step(function() {
- assert_equals(p, player);
- });
- t.done();
- });
-}, 'The ready promise should be resolved when a player is in the idle play state');
-
-test(function() {
- var player = document.documentElement.animate([], 100000);
- var promise = player.ready;
- player.cancel();
- assert_not_equals(player.ready, promise);
-}, 'The ready promise should be replaced when the player is cancelled');
-
-test(function() {
- var player = document.documentElement.animate([], 100000);
- player.cancel();
- var promise = player.ready;
- player.play();
- assert_not_equals(player.ready, promise);
-}, 'The ready promise should be replaced when the player enters the pending state');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- player.ready.then(function() {
- t.step(function() {
- assert_unreached();
- });
- }, function(e) {
- t.step(function() {
- assert_equals(e.code, DOMException.ABORT_ERR);
- });
- t.done();
- });
- player.cancel();
-}, 'A pending ready promise should be rejected when the player is cancelled');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- var promise = player.ready;
- promise.then(function(p) {
- t.step(function() {
- assert_equals(p, player);
- assert_equals(player.ready, promise);
- });
- t.done();
- });
-}, 'A pending ready promise should be resolved and not replaced when the player enters the running state');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- var promise = player.ready;
- player.finish();
- promise.then(function(p) {
- t.step(function() {
- assert_equals(p, player);
- assert_equals(player.ready, promise);
- });
- t.done();
- });
-}, 'A pending ready promise should be resolved and not replaced when the player enters the finished state');
-
-async_test(function(t) {
- var player = document.documentElement.animate([], 100000);
- var promise = player.ready;
- player.pause();
- promise.then(function(p) {
- t.step(function() {
- assert_equals(p, player);
- assert_equals(player.ready, promise);
- });
- t.done();
- });
-}, 'A pending ready promise should be resolved and not replaced when the player enters the paused state');
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/animation-ready-promise.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698