Bug 1483045 [wpt PR 12444] - Update the Animation Worklet IDL file + test, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Wed, 15 Aug 2018 10:01:08 +0000
changeset 431759 1ab0063ff90ca1573ea5d7d0713519c81c23225d
parent 431758 c12deabac46d90f5ae89964a219461f947da3ff2
child 431760 64dc926dde95b74f12e96c9ffb8c1237e735b785
push id34451
push userebalazs@mozilla.com
push dateThu, 16 Aug 2018 09:25:15 +0000
treeherdermozilla-central@161817e6d127 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1483045, 12444
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483045 [wpt PR 12444] - Update the Animation Worklet IDL file + test, a=testonly Automatic update from web-platform-testsUpdate the Animation Worklet IDL file + test (#12444) Copied from: https://github.com/tidoust/reffy-reports/blob/f14a522/whatwg/idl/animation-worklet.idl -- wpt-commits: b357235120ad041e644e5dbef495807be7394178 wpt-pr: 12444
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/animation-worklet/idlharness.any.js
testing/web-platform/tests/animation-worklet/interfaces.any.js
testing/web-platform/tests/interfaces/animation-worklet.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -322363,23 +322363,23 @@
     ]
    ],
    "ambient-light/idlharness.https.window.js": [
     [
      "/ambient-light/idlharness.https.window.html",
      {}
     ]
    ],
-   "animation-worklet/interfaces.any.js": [
-    [
-     "/animation-worklet/interfaces.any.html",
-     {}
-    ],
-    [
-     "/animation-worklet/interfaces.any.worker.html",
+   "animation-worklet/idlharness.any.js": [
+    [
+     "/animation-worklet/idlharness.any.html",
+     {}
+    ],
+    [
+     "/animation-worklet/idlharness.any.worker.html",
      {}
     ]
    ],
    "apng/supported-in-source-type.html": [
     [
      "/apng/supported-in-source-type.html",
      {}
     ]
@@ -429564,18 +429564,18 @@
   "ambient-light/idlharness.https.window.js": [
    "211e6aa017139104b5efe01fb46e905ca4c90312",
    "testharness"
   ],
   "animation-worklet/META.yml": [
    "c6918965843779e02522af1abf48acda8d0a128b",
    "support"
   ],
-  "animation-worklet/interfaces.any.js": [
-   "9b1d75649a098903f65eff4994b3447ef8cac66b",
+  "animation-worklet/idlharness.any.js": [
+   "e821a2fee8a3ace54e8e7092ab17c490a0ded914",
    "testharness"
   ],
   "annotation-model/.editorconfig": [
    "842ce7b6bf1386ff997f7c2f2baf3c3819a4967f",
    "support"
   ],
   "annotation-model/CONTRIBUTING.md": [
    "45a338f3a45e3774321e5c9f6d3e63b2f00fca2d",
@@ -605297,17 +605297,17 @@
    "8be7d09881d28240bc7c48d897e05a5b8ca234ad",
    "support"
   ],
   "interfaces/ambient-light.idl": [
    "e861cc561823f75d8bfc6526c7766e8716aac179",
    "support"
   ],
   "interfaces/animation-worklet.idl": [
-   "e0f5fc2ec200c5204a6992fbbe4f168fa4fa3f78",
+   "58d0bc51a67be51d1d3fab75096b71feef8dea9b",
    "support"
   ],
   "interfaces/appmanifest.idl": [
    "a55db2795927e3e3b1b45c589a24b4cd424c6de2",
    "support"
   ],
   "interfaces/audio-output.idl": [
    "c8efd4ea05161b06a3995fb29f19941452ec6b10",
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/animation-worklet/idlharness.any.js
@@ -0,0 +1,17 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://wicg.github.io/animation-worklet/
+
+idl_test(
+  ['animation-worklet'],
+  ['worklets', 'web-animations', 'html', 'cssom', 'dom'],
+  idl_array => {
+    idl_array.add_objects({
+      WorkletAnimation: ['new WorkletAnimation("name")'],
+      // TODO: WorkletGroupEffect
+    });
+  }
+);
deleted file mode 100644
--- a/testing/web-platform/tests/animation-worklet/interfaces.any.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// META: script=/resources/WebIDLParser.js
-// META: script=/resources/idlharness.js
-
-'use strict';
-
-// https://wicg.github.io/animation-worklet/
-
-promise_test(async () => {
-  const idl = await (await fetch('/interfaces/animation-worklet.idl')).text();
-  const html = await (await fetch('/interfaces/html.idl')).text();
-  const idlArray = new IdlArray();
-  idlArray.add_idls(idl);
-  idlArray.add_dependency_idls(html);
-  idlArray.test();
-  done();
-}, 'Test driver');
--- a/testing/web-platform/tests/interfaces/animation-worklet.idl
+++ b/testing/web-platform/tests/interfaces/animation-worklet.idl
@@ -1,35 +1,31 @@
 // GENERATED CONTENT - DO NOT EDIT
-// Content of this file was automatically extracted from the
-// "CSS Animation Worklet API" spec.
-// See: https://wicg.github.io/animation-worklet/
+// Content was automatically extracted by Reffy into reffy-reports
+// (https://github.com/tidoust/reffy-reports)
+// Source: CSS Animation Worklet API (https://wicg.github.io/animation-worklet/)
 
-partial interface Window {
+partial namespace CSS {
     [SameObject] readonly attribute Worklet animationWorklet;
 };
 
-callback VoidFunction = void ();
-
 [ Exposed=AnimationWorklet, Global=AnimationWorklet ]
 interface AnimationWorkletGlobalScope : WorkletGlobalScope {
     void registerAnimator(DOMString name, VoidFunction animatorCtor);
 };
 
 [Constructor (DOMString animatorName,
-              optional (AnimationEffectReadOnly or sequence)? effects = null,
+              optional (AnimationEffect or sequence<AnimationEffect>)? effects = null,
               optional AnimationTimeline? timeline,
               optional any options)]
 interface WorkletAnimation : Animation {
         readonly attribute DOMString animatorName;
 };
 
-interface WorkletGroupEffectReadOnly :  GroupEffectReadOnly {};
-
-interface WorkletGroupEffect :  WorkletGroupEffectReadOnly {};
-WorkletGroupEffect implements AnimationEffectMutable;
-WorkletGroupEffect implements GroupEffectMutable;
+interface WorkletGroupEffect {
+  sequence<AnimationEffect> getChildren();
+};
 
 [Exposed=AnimationWorklet]
-partial interface AnimationEffectReadOnly {
+partial interface AnimationEffect {
     // Intended for use inside Animation Worklet scope to drive the effect.
     attribute double localTime;
 };