mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1181883 - Add serializer on MediaDeviceInfo. r=smaug
This commit is contained in:
parent
d898635477
commit
d85835530d
@ -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