зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411806 - Add test for AnimationPlaybackEvent constructor; r=hiro
MozReview-Commit-ID: 846UoXnQ8dn --HG-- extra : rebase_source : a3d67e5e032b27bb7b77e471a3f7ce9321617089
This commit is contained in:
Родитель
0cfaed9e4f
Коммит
69e5bc02d2
|
@ -354440,6 +354440,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"web-animations/interfaces/AnimationPlaybackEvent/constructor.html": [
|
||||
[
|
||||
"/web-animations/interfaces/AnimationPlaybackEvent/constructor.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"web-animations/interfaces/AnimationPlaybackEvent/idlharness.html": [
|
||||
[
|
||||
"/web-animations/interfaces/AnimationPlaybackEvent/idlharness.html",
|
||||
|
@ -585366,7 +585372,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/Animation/idlharness.html": [
|
||||
"4711012e1002ff3c9b71924d52aaaf99b199472f",
|
||||
"b9784215a32d3d00d9a2c17c115ec9048d67c779",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/Animation/oncancel.html": [
|
||||
|
@ -585434,7 +585440,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/AnimationEffectTiming/idlharness.html": [
|
||||
"181eea448df47cc2a2841b2ea19c26a0cc06daa0",
|
||||
"a4e72d3ebf93a0bb6934f887c3da250a2ab67b63",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/AnimationEffectTiming/iterationStart.html": [
|
||||
|
@ -585445,8 +585451,12 @@
|
|||
"9a6eae75862dec36b7839dc68edc31891a651284",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/AnimationPlaybackEvent/constructor.html": [
|
||||
"1bc5f4dda96078a08a4b06ab0f6bf7b10e0acce3",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/AnimationPlaybackEvent/idlharness.html": [
|
||||
"fbcabef92248296bf436a73616ea5b030d074b3f",
|
||||
"37bd201a374913d0cd580b89b07688b5b655776d",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/Document/getAnimations.html": [
|
||||
|
@ -585462,7 +585472,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/DocumentTimeline/idlharness.html": [
|
||||
"658d6841b7a95c6df05822af3fd99173b811156c",
|
||||
"fde7ae3f320a94619c9bb879d77d1de392212846",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/composite.html": [
|
||||
|
@ -585470,11 +585480,11 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/constructor.html": [
|
||||
"dba4269c89152e8f20ce96948b46848b5afa53d1",
|
||||
"54a4185fd23ac4b3afe010157d4b8b766483d8f6",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/copy-constructor.html": [
|
||||
"3d5f631ae605bb2aad00e354d27fbcae57b4b6f9",
|
||||
"65047bfed537a69659851a9fcdd7fb2ba5c4f790",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/getComputedTiming.html": [
|
||||
|
@ -585482,7 +585492,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/idlharness.html": [
|
||||
"c67078c79a75575a1087ddc74fb242a278729905",
|
||||
"d51dfde748bfdf12a1b06452099ea74fe2951a34",
|
||||
"testharness"
|
||||
],
|
||||
"web-animations/interfaces/KeyframeEffect/iterationComposite.html": [
|
||||
|
@ -585598,7 +585608,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"web-animations/timing-model/timelines/timelines.html": [
|
||||
"22964776569f4c01d0632c04fd632a6823d8e877",
|
||||
"6f0a9efcce6d5438996b650c022d6723dbccf58b",
|
||||
"testharness"
|
||||
],
|
||||
"web-nfc/OWNERS": [
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>AnimationPlaybackEvent constructor</title>
|
||||
<link rel="help"
|
||||
href="https://w3c.github.io/web-animations/#dom-animationplaybackevent-animationplaybackevent">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
test(function(t) {
|
||||
const evt = new AnimationPlaybackEvent('finish');
|
||||
assert_equals(evt.type, 'finish');
|
||||
assert_equals(evt.currentTime, null);
|
||||
assert_equals(evt.timelineTime, null);
|
||||
}, 'Event created without an event parameter has null time values');
|
||||
|
||||
test(function(t) {
|
||||
const evt =
|
||||
new AnimationPlaybackEvent('cancel', {
|
||||
currentTime: -100,
|
||||
timelineTime: 100,
|
||||
});
|
||||
assert_equals(evt.type, 'cancel');
|
||||
assert_equals(evt.currentTime, -100);
|
||||
assert_equals(evt.timelineTime, 100);
|
||||
}, 'Created event reflects times specified in constructor');
|
||||
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче