Bug 1480560 [wpt PR 12284] - Update the screen-capture IDL file, a=testonly
☠☠ backed out by de68b0419464 ☠ ☠
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Fri, 10 Aug 2018 16:05:28 +0000
changeset 486215 63a59e79c1dd39c832754b6fb243e703cec0c8c3
parent 486214 d7389a33caeaf904fed36f106a18b778aed8791f
child 486216 509f61d497cd3a97c2f1700ca344722d05dc9737
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1480560, 12284
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 1480560 [wpt PR 12284] - Update the screen-capture IDL file, a=testonly Automatic update from web-platform-testsAdd the screen-capture IDL file + test (#12284) -- wpt-commits: ae2f8dd7e531d6da7a651021dd00af9f3082d58d wpt-pr: 12284
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/screen-capture.idl
testing/web-platform/tests/screen-capture/META.yml
testing/web-platform/tests/screen-capture/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -289227,16 +289227,21 @@
      {}
     ]
    ],
    "interfaces/resource-timing.idl": [
     [
      {}
     ]
    ],
+   "interfaces/screen-capture.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/screen-orientation.idl": [
     [
      {}
     ]
    ],
    "interfaces/scroll-animations.idl": [
     [
      {}
@@ -296797,16 +296802,21 @@
      {}
     ]
    ],
    "resources/webidl2/test/writer.js": [
     [
      {}
     ]
    ],
+   "screen-capture/META.yml": [
+    [
+     {}
+    ]
+   ],
    "screen-orientation/META.yml": [
     [
      {}
     ]
    ],
    "screen-orientation/resources/iframe-listen-orientation-change.html": [
     [
      {}
@@ -386934,16 +386944,22 @@
     ]
    ],
    "resource-timing/test_resource_timing.html": [
     [
      "/resource-timing/test_resource_timing.html",
      {}
     ]
    ],
+   "screen-capture/idlharness.window.js": [
+    [
+     "/screen-capture/idlharness.window.html",
+     {}
+    ]
+   ],
    "screen-orientation/idlharness.window.js": [
     [
      "/screen-orientation/idlharness.window.html",
      {}
     ]
    ],
    "screen-orientation/lock-bad-argument.html": [
     [
@@ -604721,16 +604737,20 @@
   "interfaces/requestidlecallback.idl": [
    "614478155fa3949723e8d5b04ad358a5327587f1",
    "support"
   ],
   "interfaces/resource-timing.idl": [
    "2668f912301c15a5893309f2c49e3c185a2f50df",
    "support"
   ],
+  "interfaces/screen-capture.idl": [
+   "ae96a3c2ba525b88560b386b4b4f1d7eef1f6b27",
+   "support"
+  ],
   "interfaces/screen-orientation.idl": [
    "742024845614ad07ddecb6062bc007d0ab9f9cd3",
    "support"
   ],
   "interfaces/scroll-animations.idl": [
    "5529cfa4665a5aad4e84ccfff61a992fc1fd2374",
    "support"
   ],
@@ -626725,16 +626745,24 @@
   "resources/webidl2/test/widlproc/test/valid/xml/variadic-operations.widlprocxml": [
    "0bc9f7844137853a4df9996e33087c9db184682d",
    "support"
   ],
   "resources/webidl2/test/writer.js": [
    "e84076b4f28ce38cbb41e47681ac97843df0e427",
    "support"
   ],
+  "screen-capture/META.yml": [
+   "6e5b23cd9672274d43c8d8bebe9bed66f7e651ee",
+   "support"
+  ],
+  "screen-capture/idlharness.window.js": [
+   "076e89f275c9e5c583780e83bd96f1f79ed80fdd",
+   "testharness"
+  ],
   "screen-orientation/META.yml": [
    "dc3f290196fabe6e4594a498282fc0091134bdad",
    "support"
   ],
   "screen-orientation/idlharness.window.js": [
    "d4b80de3b2d74a29779432a5496d767fcd46fc5e",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/screen-capture.idl
@@ -0,0 +1,27 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the
+// "Screen Capture" spec.
+// See: https://w3c.github.io/mediacapture-screen-share/
+
+partial interface Navigator {
+    Promise<MediaStream> getDisplayMedia(optional MediaStreamConstraints constraints);
+};
+
+partial dictionary MediaTrackConstraintSet {
+             ConstrainDOMString displaySurface;
+             ConstrainBoolean logicalSurface;
+             ConstrainDOMString cursor;
+};
+
+enum DisplayCaptureSurfaceType {
+    "monitor",
+    "window",
+    "application",
+    "browser"
+};
+
+enum CursorCaptureConstraint {
+    "never",
+    "always",
+    "motion"
+};
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/screen-capture/META.yml
@@ -0,0 +1,5 @@
+spec: https://w3c.github.io/mediacapture-screen-share/
+suggested_reviewers:
+  - alvestrand
+  - martinthomson
+  - uysalere
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/screen-capture/idlharness.window.js
@@ -0,0 +1,16 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://w3c.github.io/mediacapture-screen-share/
+
+idl_test(
+  ['screen-capture'],
+  ['mediacapture-streams', 'html'],
+  idl_array => {
+    idl_array.add_objects({
+      Navigator: ['navigator'],
+    });
+  }
+);