Revision 71b44f991df620aa9c06497b4049e720d1bce3aa authored by Raphael Kubo da Costa on 13 March 2018, 09:07:09 UTC, committed by Wanming Lin on 13 March 2018, 09:07:09 UTC
Call it `OrientationSensorLocalCoordinateSystem` per w3c/orientation-sensor#56.
1 parent 8f7d065
idlharness.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Media Capture from DOM Elements IDL test</title>
<link rel="help" href="https://w3c.github.io/mediacapture-fromelement/">
<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>
<media id='media' width=10 height=10/>
<canvas id='canvas' width=10 height=10/>
<pre id="untested_idl" style="display: none">
interface HTMLCanvasElement {};
interface HTMLMediaElement {};
interface MediaStream {};
interface MediaStreamTrack {};
</pre>
<pre id="idl" style="display: none">
// https://w3c.github.io/mediacapture-fromelement/
partial interface HTMLMediaElement {
MediaStream captureStream();
};
partial interface HTMLCanvasElement {
MediaStream captureStream(optional double frameRequestRate);
};
interface CanvasCaptureMediaStreamTrack : MediaStreamTrack {
readonly attribute HTMLCanvasElement canvas;
void requestFrame();
};
</pre>
<script>
var canvas = document.getElementById('canvas');
var media = document.getElementById('media');
var idl_array = new IdlArray();
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
idl_array.add_idls(document.getElementById("idl").textContent);
idl_array.add_objects({
HTMLMediaElement: [media],
HTMLCanvasElement: [canvas],
CanvasCaptureMediaStreamTrack: [canvas.captureStream().getTracks()[0]],
});
idl_array.test();
</script>
<div id="log"></div>
</body>
</html>
Computing file changes ...