Bug 1197045 - part4: Test case; r=Felipe

MozReview-Commit-ID: DnoqPxYbbqn

--HG--
extra : rebase_source : 928ea5270685b013a992fda7e904e5587df69c24
This commit is contained in:
Chun-Min Chang 2017-07-21 18:00:21 +08:00
Родитель 2748683eac
Коммит 29ca5e9789
1 изменённых файлов: 152 добавлений и 3 удалений

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

@ -270,9 +270,6 @@ const SNAPSHOT_SCHEMA = {
windowUsingAdvancedLayers: {
type: "boolean",
},
currentAudioBackend: {
type: "string",
},
numAcceleratedWindowsMessage: {
type: "array",
},
@ -395,6 +392,158 @@ const SNAPSHOT_SCHEMA = {
},
},
},
media: {
required: true,
type: "object",
properties: {
currentAudioBackend: {
required: true,
type: "string",
},
currentMaxAudioChannels: {
required: true,
type: "number",
},
currentPreferredChannelLayout: {
required: true,
type: "string",
},
currentPreferredSampleRate: {
required: true,
type: "number",
},
audioOutputDevices: {
required: true,
type: "array",
items: {
type: "object",
properties: {
name: {
required: true,
type: "string",
},
groupId: {
required: true,
type: "string",
},
vendor: {
required: true,
type: "string",
},
type: {
required: true,
type: "number",
},
state: {
required: true,
type: "number",
},
preferred: {
required: true,
type: "number",
},
supportedFormat: {
required: true,
type: "number",
},
defaultFormat: {
required: true,
type: "number",
},
maxChannels: {
required: true,
type: "number",
},
defaultRate: {
required: true,
type: "number",
},
maxRate: {
required: true,
type: "number",
},
minRate: {
required: true,
type: "number",
},
maxLatency: {
required: true,
type: "number",
},
minLatency: {
required: true,
type: "number",
}
},
},
},
audioInputDevices: {
required: true,
type: "array",
items: {
type: "object",
properties: {
name: {
required: true,
type: "string",
},
groupId: {
required: true,
type: "string",
},
vendor: {
required: true,
type: "string",
},
type: {
required: true,
type: "number",
},
state: {
required: true,
type: "number",
},
preferred: {
required: true,
type: "number",
},
supportedFormat: {
required: true,
type: "number",
},
defaultFormat: {
required: true,
type: "number",
},
maxChannels: {
required: true,
type: "number",
},
defaultRate: {
required: true,
type: "number",
},
maxRate: {
required: true,
type: "number",
},
minRate: {
required: true,
type: "number",
},
maxLatency: {
required: true,
type: "number",
},
minLatency: {
required: true,
type: "number",
}
},
},
},
},
},
javaScript: {
required: true,
type: "object",