Bug 1635869 - Turn on dom.imagecapture.enabled pref in WPT. draft
authorJan-Ivar Bruaroey <jib@mozilla.com>
Tue, 23 Jun 2020 20:11:26 -0400
changeset 3000059 bcf1de95d123e3732548d19ff3af3aaae203e828
parent 2997667 3add3a1747557d9b1e20c41afed20a94952ce5e8
child 3000060 2767fd4265a3d154db70d22805222c7675339d93
push id558609
push userjbruaroey@mozilla.com
push dateWed, 24 Jun 2020 00:15:35 +0000
treeherdertry@2767fd4265a3 [default view] [failures only]
bugs1635869
milestone79.0a1
Bug 1635869 - Turn on dom.imagecapture.enabled pref in WPT. Differential Revision: https://phabricator.services.mozilla.com/D80774
testing/web-platform/meta/mediacapture-image/ImageCapture-creation.https.html.ini
testing/web-platform/meta/mediacapture-image/__dir__.ini
testing/web-platform/meta/mediacapture-image/idlharness.window.js.ini
--- a/testing/web-platform/meta/mediacapture-image/ImageCapture-creation.https.html.ini
+++ b/testing/web-platform/meta/mediacapture-image/ImageCapture-creation.https.html.ini
@@ -1,14 +1,7 @@
 [ImageCapture-creation.https.html]
   expected: OK
   [grabFrame() of a disabled Track]
     expected: FAIL
 
-  [verifies that an ImageCapture cannot be created out of an Audio Track]
-    expected: FAIL
-
   [grabFrame() of an ended Track]
     expected: FAIL
-
-  [throw "TypeError" if parameter is not MediaStreamTrack.]
-    expected: FAIL
-
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/mediacapture-image/__dir__.ini
@@ -0,0 +1,1 @@
+prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, dom.imagecapture.enabled:true]
--- a/testing/web-platform/meta/mediacapture-image/idlharness.window.js.ini
+++ b/testing/web-platform/meta/mediacapture-image/idlharness.window.js.ini
@@ -9,19 +9,16 @@
     expected: FAIL
 
   [MediaSettingsRange interface: attribute step]
     expected: FAIL
 
   [PhotoCapabilities interface: capabilities must inherit property "redEyeReduction" with the proper type]
     expected: FAIL
 
-  [ImageCapture interface object length]
-    expected: FAIL
-
   [PhotoCapabilities interface: capabilities must inherit property "fillLightMode" with the proper type]
     expected: FAIL
 
   [PhotoCapabilities interface: existence and properties of interface prototype object]
     expected: FAIL
 
   [MediaSettingsRange interface: attribute max]
     expected: FAIL
@@ -42,19 +39,16 @@
     expected: FAIL
 
   [PhotoCapabilities interface object name]
     expected: FAIL
 
   [ImageCapture interface: operation getPhotoSettings()]
     expected: FAIL
 
-  [ImageCapture interface: existence and properties of interface prototype object's @@unscopables property]
-    expected: FAIL
-
   [MediaSettingsRange interface: existence and properties of interface prototype object]
     expected: FAIL
 
   [PhotoCapabilities interface object length]
     expected: FAIL
 
   [ImageCapture interface: operation grabFrame()]
     expected: FAIL
@@ -72,65 +66,46 @@
     expected: FAIL
 
   [PhotoCapabilities interface: existence and properties of interface prototype object's "constructor" property]
     expected: FAIL
 
   [PhotoCapabilities must be primary interface of capabilities]
     expected: FAIL
 
-  [Stringification of capture]
-    expected: FAIL
-
   [MediaSettingsRange interface: existence and properties of interface prototype object's "constructor" property]
     expected: FAIL
 
   [ImageCapture interface: attribute track]
     expected: FAIL
 
   [ImageCapture interface: capture must inherit property "getPhotoSettings()" with the proper type]
     expected: FAIL
 
-  [ImageCapture interface: existence and properties of interface prototype object's "constructor" property]
-    expected: FAIL
-
   [PhotoCapabilities interface: capabilities must inherit property "imageHeight" with the proper type]
     expected: FAIL
 
   [PhotoCapabilities interface: attribute imageWidth]
     expected: FAIL
 
   [ImageCapture interface: existence and properties of interface object]
     expected: FAIL
 
   [MediaSettingsRange interface: attribute min]
     expected: FAIL
 
   [ImageCapture interface: existence and properties of interface prototype object]
     expected: FAIL
 
-  [ImageCapture interface object name]
-    expected: FAIL
-
   [MediaSettingsRange interface object length]
     expected: FAIL
 
   [MediaSettingsRange interface: existence and properties of interface object]
     expected: FAIL
 
-  [ImageCapture must be primary interface of capture]
-    expected: FAIL
-
   [PhotoCapabilities interface: attribute imageHeight]
     expected: FAIL
 
   [idl_test setup]
     expected: FAIL
 
-  [ImageCapture interface: capture must inherit property "takePhoto(optional PhotoSettings)" with the proper type]
-    expected: FAIL
-
   [ImageCapture interface: operation takePhoto(optional PhotoSettings)]
     expected: FAIL
-
-  [ImageCapture interface: calling takePhoto(optional PhotoSettings) on capture with too few arguments must throw TypeError]
-    expected: FAIL
-