Bug 778053 - Test case for wave metadata. r=kinetik

This commit is contained in:
ChangZhuo Chen 2012-10-06 19:32:30 +08:00
parent 2576dd9681
commit a16bcd834a
8 changed files with 42 additions and 1 deletions

View File

@ -237,6 +237,12 @@ MOCHITEST_FILES += \
r16000_u8_c1_list.wav \
wavedata_u8.wav \
wavedata_s16.wav \
wave_metadata_bad_len.wav \
wave_metadata_bad_no_null.wav \
wave_metadata_bad_utf8.wav \
wave_metadata_unknown_tag.wav \
wave_metadata_utf8.wav \
wave_metadata.wav \
audio.wav \
$(NULL)

View File

@ -384,7 +384,42 @@ var gMetadataTests = [
// "not~valid":"this isn't a valid name either",
// "not-utf-8":"invalid sequences: \xff\xfe\xfa\xfb\0eol"
}
}
},
{ name:"wave_metadata.wav", tags: {
name:"Track Title",
artist:"Artist Name",
comments:"Comments",
}
},
{ name:"wave_metadata_utf8.wav", tags: {
name:"歌曲名稱",
artist:"作曲者",
comments:"註解",
}
},
{ name:"wave_metadata_unknown_tag.wav", tags: {
name:"Track Title",
comments:"Comments",
}
},
{ name:"wave_metadata_bad_len.wav", tags: {
name:"Track Title",
artist:"Artist Name",
}
},
{ name:"wave_metadata_bad_no_null.wav", tags: {
name:"Track Title",
artist:"Artist Name",
comments:"Comments!!",
}
},
{ name:"wave_metadata_bad_utf8.wav", tags: {
name:"歌曲名稱",
comments:"註解",
}
},
{ name:"wavedata_u8.wav", tags: { }
},
];
function checkMetadata(msg, e, test) {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.