mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1181883 - Add serializer on MediaDeviceInfo. r=smaug
--HG-- extra : transplant_source : N%F6%0F%9CmJ%B9%90%A6%D8%5Cm%96%C7%02.%80%8BU%08
This commit is contained in:
parent
ee3e5e80ec
commit
e4231f7cf4
@ -34,6 +34,9 @@ runTest(() =>
|
||||
ok(d.label.length !== undefined, "Device label: " + d.label);
|
||||
is(d.groupId, "", "Don't support groupId yet");
|
||||
});
|
||||
var jsoned = JSON.parse(JSON.stringify(devices));
|
||||
is(jsoned[0].kind, devices[0].kind, "kind survived serializer");
|
||||
is(jsoned[0].deviceId, devices[0].deviceId, "deviceId survived serializer");
|
||||
})
|
||||
// Check deviceId failure paths for video.
|
||||
.then(() => mustSucceed("unknown plain deviceId on video",
|
||||
|
@ -19,4 +19,6 @@ interface MediaDeviceInfo {
|
||||
readonly attribute MediaDeviceKind kind;
|
||||
readonly attribute DOMString label;
|
||||
readonly attribute DOMString groupId;
|
||||
|
||||
jsonifier;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user