| Index: third_party/WebKit/LayoutTests/web-animations-api/animation-cancel-event.html
|
| diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-cancel-event.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-cancel-event.html
|
| deleted file mode 100644
|
| index 57260498f94005af5d51e658f020849c637fc8b3..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/web-animations-api/animation-cancel-event.html
|
| +++ /dev/null
|
| @@ -1,33 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<meta charset=utf-8>
|
| -<title>Canceling an animation: cancel event</title>
|
| -<link rel="help" href="https://w3c.github.io/web-animations/#canceling-an-animation-section">
|
| -<script src="../resources/testharness.js"></script>
|
| -<script src="../resources/testharnessreport.js"></script>
|
| -<body>
|
| -<script>
|
| -var anim1 = document.body.animate([], 100000);
|
| -var anim2 = document.body.animate([], 100000);
|
| -
|
| -var cancelTest = async_test('Cancelling animation should fire a cancel event.');
|
| -var fired = false;
|
| -
|
| -anim1.oncancel = function(event) {
|
| - cancelTest.step(function() {
|
| - assert_equals(event.target, anim1, 'Target of cancel event should be anim1.');
|
| - assert_equals(event.currentTime, null, 'currentTime of cancel event should be null.');
|
| - assert_equals(event.timelineTime, document.timeline.currentTime, 'Event timelineTime should be same as document.timeline.currentTime.');
|
| - });
|
| - fired = true;
|
| -};
|
| -
|
| -anim2.onfinish = function() {
|
| - cancelTest.step(function() {
|
| - assert_true(fired, 'anim1.oncancel should be called.');
|
| - });
|
| - cancelTest.done();
|
| -};
|
| -
|
| -anim1.cancel();
|
| -anim2.finish();
|
| -</script>
|
|
|