[libsoup/wip/soup-uri-removal: 15/21] sniffing-test: do not encode test paths
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/soup-uri-removal: 15/21] sniffing-test: do not encode test paths
- Date: Sun, 25 Oct 2020 19:42:31 +0000 (UTC)
commit 8b0defc7b12cfa35c9f0e4421c9995360095007e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Oct 13 18:07:40 2020 +0200
sniffing-test: do not encode test paths
tests/sniffing-test.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/tests/sniffing-test.c b/tests/sniffing-test.c
index 8d1040f3..c7acc186 100644
--- a/tests/sniffing-test.c
+++ b/tests/sniffing-test.c
@@ -566,55 +566,55 @@ main (int argc, char **argv)
/* Test the XML sniffing path */
g_test_add_data_func ("/sniffing/type/xml",
- "type/text%2Fxml/home.gif => text/xml",
+ "type/text_xml/home.gif => text/xml",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/xml+xml",
- "type/anice%2Ftype+xml/home.gif => anice/type+xml",
+ "type/anice_type+xml/home.gif => anice/type+xml",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/application-xml",
- "type/application%2Fxml/home.gif => application/xml",
+ "type/application_xml/home.gif => application/xml",
do_sniffing_test);
/* Test the feed or html path */
g_test_add_data_func ("/sniffing/type/html/html",
- "type/text%2Fhtml/test.html => text/html",
+ "type/text_html/test.html => text/html",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/html/rss",
- "type/text%2Fhtml/rss20.xml => application/rss+xml",
+ "type/text_html/rss20.xml => application/rss+xml",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/html/atom",
- "type/text%2Fhtml/atom.xml => application/atom+xml",
+ "type/text_html/atom.xml => application/atom+xml",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/html/rdf",
- "type/text%2Fhtml/feed.rdf => application/rss+xml",
+ "type/text_html/feed.rdf => application/rss+xml",
do_sniffing_test);
/* Test the image sniffing path */
g_test_add_data_func ("/sniffing/type/image/gif",
- "type/image%2Fpng/home.gif => image/gif",
+ "type/image_png/home.gif => image/gif",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/image/png",
- "type/image%2Fgif/home.png => image/png",
+ "type/image_gif/home.png => image/png",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/image/jpeg",
- "type/image%2Fpng/home.jpg => image/jpeg",
+ "type/image_png/home.jpg => image/jpeg",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/image/webp",
- "type/image%2Fpng/tux.webp => image/webp",
+ "type/image_png/tux.webp => image/webp",
do_sniffing_test);
/* Test audio and video sniffing path */
g_test_add_data_func ("/sniffing/type/audio/wav",
- "type/audio%2Fmpeg/test.wav => audio/wave",
+ "type/audio_mpeg/test.wav => audio/wave",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/audio/aiff",
- "type/audio%2Fmpeg/test.aiff => audio/aiff",
+ "type/audio_mpeg/test.aiff => audio/aiff",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/audio/ogg",
- "type/audio%2Fmpeg/test.ogg => application/ogg",
+ "type/audio_mpeg/test.ogg => application/ogg",
do_sniffing_test);
g_test_add_data_func ("/sniffing/type/video/webm",
- "type/video%2Ftheora/test.webm => video/webm",
+ "type/video_theora/test.webm => video/webm",
do_sniffing_test);
/* Test the MP4 sniffing path */
@@ -629,7 +629,7 @@ main (int argc, char **argv)
/* Test that we keep the parameters when sniffing */
g_test_add_data_func ("/sniffing/parameters",
- "type/text%2Fhtml%3B%20charset=UTF-8/test.html => text/html; charset=UTF-8",
+ "type/text_html; charset=UTF-8/test.html => text/html; charset=UTF-8",
do_sniffing_test);
/* Test that disabling the sniffer works correctly */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]