| Index: third_party/WebKit/LayoutTests/web-animations-api/player-finish-event.html
|
| diff --git a/third_party/WebKit/LayoutTests/web-animations-api/player-finish-event.html b/third_party/WebKit/LayoutTests/web-animations-api/player-finish-event.html
|
| deleted file mode 100644
|
| index acb20712b89cad3a3294f9b5ec194f69691c5005..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/web-animations-api/player-finish-event.html
|
| +++ /dev/null
|
| @@ -1,92 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| - <head>
|
| - <style type="text/css">
|
| - .anim {
|
| - position: absolute;
|
| - left: 10px;
|
| - height: 90px;
|
| - width: 100px;
|
| - background-color: black;
|
| - }
|
| - </style>
|
| - <script type="text/javascript">
|
| -
|
| -function log(message) {
|
| - var results = document.getElementById('results');
|
| - results.innerHTML += message + '<br>';
|
| -}
|
| -
|
| -function validateFinishEvent(player, event) {
|
| - if (event.target === player) {
|
| - log('PASS: ' + player.name + ' is target');
|
| - } else {
|
| - log('FAIL: expected target named ' + player.name + ', actual target is ' + event.target);
|
| - }
|
| - if (event.currentTime === player.currentTime) {
|
| - log('PASS: event currentTime equals player currentTime');
|
| - } else {
|
| - log('FAIL: event currentTime ' + event.currentTime + ' does not equal player currentTime ' + player.currentTime);
|
| - }
|
| - if (event.timelineTime === document.timeline.currentTime) {
|
| - log('PASS: event timelineTime equals timeline currentTime');
|
| - } else {
|
| - log('FAIL: event timelineTime ' + event.timelineTime +
|
| - ' does not equal timeline currentTime ' + document.timeline.currentTime);
|
| - }
|
| -}
|
| -
|
| -var playerTop, playerMiddle, playerBottom;
|
| -
|
| -function onFinishTop(event) {
|
| - validateFinishEvent(playerTop, event);
|
| - if (window.testRunner) {
|
| - testRunner.notifyDone();
|
| - }
|
| -}
|
| -
|
| -function onFinishMiddle(event) {
|
| - validateFinishEvent(playerMiddle, event);
|
| -}
|
| -
|
| -function onFinishBottom(event) {
|
| - validateFinishEvent(playerBottom, event);
|
| -}
|
| -
|
| -function animate() {
|
| -
|
| - var keyframes = [
|
| - {left: '10px', opacity: '1', offset: 0},
|
| - {left: '100px', opacity: '0', offset: 1}
|
| - ];
|
| -
|
| - playerTop = document.getElementById('top').animate(keyframes, 600);
|
| - playerTop.name = 'playerTop';
|
| - playerTop.onfinish = onFinishTop;
|
| -
|
| - playerMiddle = document.getElementById('middle').animate(keyframes, 100);
|
| - playerMiddle.name = 'playerMiddle';
|
| - playerMiddle.onfinish = onFinishMiddle;
|
| -
|
| - playerBottom = document.getElementById('bottom').animate(keyframes, 100);
|
| - playerBottom.name = 'playerBottom';
|
| - playerBottom.onfinish = onFinishBottom;
|
| -
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| - }
|
| -}
|
| -
|
| -window.onload = animate;
|
| -
|
| - </script>
|
| - </head>
|
| - <body>
|
| - <div class="anim" id="top"></div>
|
| - <div class="anim" id="middle"></div>
|
| - <div class="anim" id="bottom"></div>
|
| - <div id="results"></div>
|
| - </body>
|
| -</html>
|
| -
|
|
|