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

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

Issue 2139163002: Animations: Remove player.html test (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/player-expected.txt » ('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/player.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/player.html b/third_party/WebKit/LayoutTests/web-animations-api/player.html
deleted file mode 100644
index ce94dd659855e1a19ff4b5aa0eead490b72bc37d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/player.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<div id='element'></div>
-
-<script>
-var element = document.getElementById('element');
-test(function() {
- var player = element.animate([{left: '0px', offset: 0}, {left: '100px', offset: 1}], 10000);
- var animation = player.source;
- assert_equals(animation.player, player);
- assert_equals(player.currentTime, 0);
- player.currentTime = 5000;
- assert_equals(player.currentTime, 5000);
- assert_equals(player.timeLag, -5000);
-
- player.startTime += 1000;
-
- assert_equals(player.currentTime, 4000);
-
- player.pause();
- assert_true(player.paused);
- player.play();
- assert_false(player.paused);
-
- player.finish();
- assert_equals(player.currentTime, 10000);
- assert_true(player.finished);
-
- player.reverse();
- assert_equals(player.playbackRate, -1);
-
- player.playbackRate = -2;
- assert_equals(player.playbackRate, -2);
-
- player.cancel();
- assert_equals(animation.player, null);
-}, 'Player sanity tests');
-
-test(function() {
- var player = element.animate([{left: '0px', offset: 0}, {left: '100px', offset: 1}], {iterations: Infinity, duration: 10});
- assert_throws('INVALID_STATE_ERR', function() { player.finish(); });
-}, 'Player.finish() raises exception if source content end is infinity');
-
-test(function() {
- var player = element.animate([{left: '0px', offset: 0}, {left: '100px', offset: 1}], 10000);
- for (var attr of ['startTime', 'currentTime', 'playbackRate']) {
- assert_throws(new TypeError, function() { player[attr] = NaN; }, attr);
- assert_throws(new TypeError, function() { player[attr] = Infinity; }, attr);
- }
-}, 'Player.startTime/currentTime/playbackRate throw if passed non-finite numbers.');
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/player-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698