aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html')
-rw-r--r--tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html b/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html
index b8d9ced61ec..3e918a40d0d 100644
--- a/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html
+++ b/tests/wpt/web-platform-tests/web-animations/interfaces/Animation/oncancel.html
@@ -1,24 +1,24 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Animation.oncancel</title>
-<link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-oncancel">
+<link rel="help" href="https://drafts.csswg.org/web-animations/#dom-animation-oncancel">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../../testcommon.js"></script>
<body>
<div id="log"></div>
<script>
-"use strict";
+'use strict';
-async_test(function(t) {
- var div = createDiv(t);
- var animation = div.animate({}, 100 * MS_PER_SEC);
- var finishedTimelineTime;
- animation.finished.then().catch(function() {
+async_test(t => {
+ const div = createDiv(t);
+ const animation = div.animate({}, 100 * MS_PER_SEC);
+ let finishedTimelineTime;
+ animation.finished.then().catch(() => {
finishedTimelineTime = animation.timeline.currentTime;
});
- animation.oncancel = t.step_func_done(function(event) {
+ animation.oncancel = t.step_func_done(event => {
assert_equals(event.currentTime, null,
'event.currentTime should be null');
assert_equals(event.timelineTime, finishedTimelineTime,