Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/f90559d2db0132e877adff474895600d9c8fe65f
...commit
http://git.netsurf-browser.org/netsurf.git/commit/f90559d2db0132e877adff474895600d9c8fe65f
...tree
http://git.netsurf-browser.org/netsurf.git/tree/f90559d2db0132e877adff474895600d9c8fe65f
The branch, master has been updated
via f90559d2db0132e877adff474895600d9c8fe65f (commit)
via 775687a79bee65faece0986665b55ab6276b33a3 (commit)
from b024c0bcb5c8406e000bbc68e01f986833a09166 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=f90559d2db0132e877adff474895600d9c8fe65f
commit f90559d2db0132e877adff474895600d9c8fe65f
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Tests: Increase nsurl coverage.
diff --git a/test/nsurl.c b/test/nsurl.c
index 6c40fa6..ba02429 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -116,6 +116,8 @@ static const struct test_pairs create_tests[] = {
{ "http://www.ns-b.org:/",
"http://www.ns-b.org/" },
+ { "http://///////////www.ns-b.org:/",
+ "http://www.ns-b.org/" },
{ "http://[email protected]:/hello",
"http://[email protected]/hello" },
{ "http://u:[email protected]:/hello",
@@ -160,6 +162,12 @@ static const struct test_pairs create_tests[] = {
/* bad escape */
{ "http://%1g%G0/", "http://%1g%g0/" },
+
+ { " http://www.ns-b.org/", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org/ ", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org ", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org/?q ", "http://www.ns-b.org/?q" },
+ { "http://www.ns-b.org/#f ", "http://www.ns-b.org/#f" },
};
/**
@@ -422,6 +430,9 @@ static const struct test_pairs join_tests[] = {
{ " / ", "http://a/" },
{ " ? ", "http://a/b/c/d;p?" },
{ " h ", "http://a/b/c/h" },
+ { "//foo?", "http://foo/?" },
+ { "//foo#bar", "http://foo/#bar" },
+ { "//foo/", "http://foo/" },
{ "http://<!--#echo var=", "http://<!--/#echo%20var="},
/* [1] Extra slash beyond rfc3986 5.4.1 example, since we're
* testing normalisation in addition to joining */
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=775687a79bee65faece0986665b55ab6276b33a3
commit 775687a79bee65faece0986665b55ab6276b33a3
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Tests: Add nsurl insensitivity test for HTTPS scheme.
diff --git a/test/nsurl.c b/test/nsurl.c
index a96ea34..6c40fa6 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -144,6 +144,7 @@ static const struct test_pairs create_tests[] = {
/* test case insensitivity */
{ "HTTP://a/b", "http://a/b" },
+ { "HTTPS://a/b", "https://a/b" },
{ "ftp://a/b", "ftp://a/b" },
{ "FTP://a/b", "ftp://a/b" },
{ "MAILTO:foo@bar", "mailto:foo@bar" },
-----------------------------------------------------------------------
Summary of changes:
test/nsurl.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/nsurl.c b/test/nsurl.c
index a96ea34..ba02429 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -116,6 +116,8 @@ static const struct test_pairs create_tests[] = {
{ "http://www.ns-b.org:/",
"http://www.ns-b.org/" },
+ { "http://///////////www.ns-b.org:/",
+ "http://www.ns-b.org/" },
{ "http://[email protected]:/hello",
"http://[email protected]/hello" },
{ "http://u:[email protected]:/hello",
@@ -144,6 +146,7 @@ static const struct test_pairs create_tests[] = {
/* test case insensitivity */
{ "HTTP://a/b", "http://a/b" },
+ { "HTTPS://a/b", "https://a/b" },
{ "ftp://a/b", "ftp://a/b" },
{ "FTP://a/b", "ftp://a/b" },
{ "MAILTO:foo@bar", "mailto:foo@bar" },
@@ -159,6 +162,12 @@ static const struct test_pairs create_tests[] = {
/* bad escape */
{ "http://%1g%G0/", "http://%1g%g0/" },
+
+ { " http://www.ns-b.org/", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org/ ", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org ", "http://www.ns-b.org/" },
+ { "http://www.ns-b.org/?q ", "http://www.ns-b.org/?q" },
+ { "http://www.ns-b.org/#f ", "http://www.ns-b.org/#f" },
};
/**
@@ -421,6 +430,9 @@ static const struct test_pairs join_tests[] = {
{ " / ", "http://a/" },
{ " ? ", "http://a/b/c/d;p?" },
{ " h ", "http://a/b/c/h" },
+ { "//foo?", "http://foo/?" },
+ { "//foo#bar", "http://foo/#bar" },
+ { "//foo/", "http://foo/" },
{ "http://<!--#echo var=", "http://<!--/#echo%20var="},
/* [1] Extra slash beyond rfc3986 5.4.1 example, since we're
* testing normalisation in addition to joining */
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org