[totem-pl-parser/wip/hadess/remote-mp3: 2/2] tests: Add test for remote MP3 file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/remote-mp3: 2/2] tests: Add test for remote MP3 file
- Date: Fri, 28 Feb 2020 10:58:51 +0000 (UTC)
commit 59ac3bbbec61270c0aa03eef289781d2584db223
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 28 11:57:41 2020 +0100
tests: Add test for remote MP3 file
plparse/tests/parser.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 0b8e7ed..64109ad 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -1011,6 +1011,14 @@ test_parsing_not_really_php (void)
g_free (uri);
}
+static void
+test_parsing_remote_mp3 (void)
+{
+ g_test_bug ("19");
+ /* URL from https://gitlab.gnome.org/GNOME/totem-pl-parser/issues/19 */
+ g_assert_cmpint (simple_parser_test
("http://feeds.soundcloud.com/stream/303432626-opensourcesecuritypodcast-episode-28-rsa-conference-2017.mp3"),
==, TOTEM_PL_PARSER_RESULT_UNHANDLED);
+}
+
static void
test_parsing_not_really_php_but_html_instead (void)
{
@@ -1450,6 +1458,7 @@ main (int argc, char *argv[])
g_test_add_func ("/parser/parsing/dir_recurse", test_directory_recurse);
g_test_add_func ("/parser/parsing/async_signal_order", test_async_parsing_signal_order);
g_test_add_func ("/parser/parsing/wma_asf", test_parsing_wma_asf);
+ g_test_add_func ("/parser/parsing/remote_mp3", test_parsing_remote_mp3);
g_test_add_func ("/parser/saving/sync", test_saving_sync);
g_test_add_func ("/parser/saving/async", test_saving_async);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]