mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778053 - Test case for wave metadata. r=kinetik
This commit is contained in:
parent
2576dd9681
commit
a16bcd834a
@ -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)
|
||||
|
||||
|
@ -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) {
|
||||
|
BIN
content/media/test/wave_metadata.wav
Normal file
BIN
content/media/test/wave_metadata.wav
Normal file
Binary file not shown.
BIN
content/media/test/wave_metadata_bad_len.wav
Normal file
BIN
content/media/test/wave_metadata_bad_len.wav
Normal file
Binary file not shown.
BIN
content/media/test/wave_metadata_bad_no_null.wav
Normal file
BIN
content/media/test/wave_metadata_bad_no_null.wav
Normal file
Binary file not shown.
BIN
content/media/test/wave_metadata_bad_utf8.wav
Normal file
BIN
content/media/test/wave_metadata_bad_utf8.wav
Normal file
Binary file not shown.
BIN
content/media/test/wave_metadata_unknown_tag.wav
Normal file
BIN
content/media/test/wave_metadata_unknown_tag.wav
Normal file
Binary file not shown.
BIN
content/media/test/wave_metadata_utf8.wav
Normal file
BIN
content/media/test/wave_metadata_utf8.wav
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user