Bug 1480560 [wpt PR 12284] - Update the screen-capture IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Fri, 10 Aug 2018 16:05:28 +0000
changeset 431144 b8f99b99c563
parent 431143 a56d67a01d2d
child 431145 0572f9ed6b15
push id34429
push usercbrindusan@mozilla.com
push dateSun, 12 Aug 2018 21:49:33 +0000
treeherdermozilla-central@83d0673bbca4 [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'],
+    });
+  }
+);