Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1181883 - Add serializer on MediaDeviceInfo. r=smaug
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Jul 9, 2015
1 parent 917cf46 commit 077fd82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dom/media/tests/mochitest/test_enumerateDevices.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
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",
Expand Down
2 changes: 2 additions & 0 deletions dom/webidl/MediaDeviceInfo.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ interface MediaDeviceInfo {
readonly attribute MediaDeviceKind kind;
readonly attribute DOMString label;
readonly attribute DOMString groupId;

jsonifier;
};

0 comments on commit 077fd82

Please sign in to comment.