Bug 1469685 [wpt PR 11574] - Auto-update the mediacapture-depth IDL file, a=testonly

Automatic update from web-platform-testsAuto-update the mediacapture-depth IDL file (#11574)

* Add mediacapture-depth idl file
* Add  idlharness.html
--

wpt-commits: 263264f7ee8a09414a0ce8f312febede0dbc8830
wpt-pr: 11574
This commit is contained in:
Luke Bjerring 2018-07-06 21:19:45 +00:00 коммит произвёл James Graham
Родитель a92cd44cb0
Коммит 631dc9c3a5
4 изменённых файлов: 138 добавлений и 0 удалений

Просмотреть файл

@ -288853,6 +288853,11 @@
{}
]
],
"interfaces/mediacapture-depth.idl": [
[
{}
]
],
"interfaces/mediacapture-fromelement.idl": [
[
{}
@ -289863,6 +289868,11 @@
{}
]
],
"mediacapture-depth/META.yml": [
[
{}
]
],
"mediacapture-fromelement/META.yml": [
[
{}
@ -353547,6 +353557,12 @@
{}
]
],
"mediacapture-depth/idlharness.html": [
[
"/mediacapture-depth/idlharness.html",
{}
]
],
"mediacapture-fromelement/capture.html": [
[
"/mediacapture-fromelement/capture.html",
@ -591928,6 +591944,10 @@
"17413896d6281553091cf2c369c29de42d450962",
"support"
],
"interfaces/mediacapture-depth.idl": [
"d14de04445755e1f6bc88023d3bd85b601ed5209",
"support"
],
"interfaces/mediacapture-fromelement.idl": [
"501b9ce0b557e52c122a2bb7f3be1a3e360da512",
"support"
@ -593516,6 +593536,14 @@
"c3f2ab0ca87e837a5ffc6dfc1e757e1357c49d1f",
"support"
],
"mediacapture-depth/META.yml": [
"b01c3f57ae359f08bb0ac0600e5dfde4a9b36571",
"support"
],
"mediacapture-depth/idlharness.html": [
"72bf5f2a0d73828f2b0e60046b978e0a9490e7a5",
"testharness"
],
"mediacapture-fromelement/META.yml": [
"40a8ff568344b2cb7809312603fd2fe82f123719",
"support"

Просмотреть файл

@ -0,0 +1,76 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Media Capture Depth Stream Extensions" spec.
// See: https://w3c.github.io/mediacapture-depth/
partial dictionary MediaTrackSupportedConstraints {
// Apply to both depth stream track and color stream track:
boolean videoKind = true;
boolean focalLengthX = false;
boolean focalLengthY = false;
boolean principalPointX = false;
boolean principalPointY = false;
boolean deprojectionDistortionCoefficients = false;
boolean projectionDistortionCoefficients = false;
// Apply to depth stream track:
boolean depthNear = false;
boolean depthFar = false;
boolean depthToVideoTransform = false;
};
partial dictionary MediaTrackCapabilities {
// Apply to both depth stream track and color stream track:
DOMString videoKind;
(double or DoubleRange) focalLengthX;
(double or DoubleRange) focalLengthY;
(double or DoubleRange) principalPointX;
(double or DoubleRange) principalPointY;
boolean deprojectionDistortionCoefficients;
boolean projectionDistortionCoefficients;
// Apply to depth stream track:
(double or DoubleRange) depthNear;
(double or DoubleRange) depthFar;
boolean depthToVideoTransform;
};
partial dictionary MediaTrackConstraintSet {
// Apply to both depth stream track and color stream track:
ConstrainDOMString videoKind;
ConstrainDouble focalLengthX;
ConstrainDouble focalLengthY;
ConstrainDouble principalPointX;
ConstrainDouble principalPointY;
ConstrainBoolean deprojectionDistortionCoefficients;
ConstrainBoolean projectionDistortionCoefficients;
// Apply to depth stream track:
ConstrainDouble depthNear;
ConstrainDouble depthFar;
ConstrainBoolean depthToVideoTransform;
};
partial dictionary MediaTrackSettings {
// Apply to both depth stream track and color stream track:
DOMString videoKind;
double focalLengthX;
double focalLengthY;
double principalPointX;
double principalPointY;
DistortionCoefficients deprojectionDistortionCoefficients;
DistortionCoefficients projectionDistortionCoefficients;
// Apply to depth stream track:
double depthNear;
double depthFar;
Transformation depthToVideoTransform;
};
dictionary DistortionCoefficients {
double k1;
double k2;
double p1;
double p2;
double k3;
};
dictionary Transformation {
Float32Array transformationMatrix;
DOMString videoDeviceId;
};
enum VideoKindEnum {
"color",
"depth"
};

Просмотреть файл

@ -0,0 +1,3 @@
suggested_reviewers:
- anssiko
- Honry

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Media Capture Depth Stream Extensions IDL test</title>
<link rel="help" href="See https://w3c.github.io/mediacapture-depth/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<script>
'use strict';
promise_test(async () => {
const idl = await fetch('/interfaces/mediacapture-depth.idl').then(r => r.text());
const main = await fetch('/interfaces/mediacapture-main.idl').then(r => r.text());
var idl_array = new IdlArray();
idl_array.add_idls(idl);
idl_array.add_dependency_idls(main);
idl_array.test();
}, 'mediacapture-depth interfaces');
</script>
<div id="log"></div>
</body>
</html>