diff options
author | Xan Lopez <xan@igalia.com> | 2012-02-23 18:56:29 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-02-23 18:57:23 +0800 |
commit | e392e4427ffcdfcffee92549fcf0185cee55b982 (patch) | |
tree | dc39743c7f39018b1f36e65b6bca22cc52aaab1c /tests | |
parent | 6d87cbb12ba7bfe19e19784d2ff04fb369792f89 (diff) | |
download | gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar.gz gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar.bz2 gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar.lz gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar.xz gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.tar.zst gsoc2013-epiphany-e392e4427ffcdfcffee92549fcf0185cee55b982.zip |
ephy-embed-utils: fix loading of <IP address>:<port> URIs
https://bugzilla.gnome.org/show_bug.cgi?id=669461
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ephy-embed-utils-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ephy-embed-utils-test.c b/tests/ephy-embed-utils-test.c index 82731ba62..5d3bb77eb 100644 --- a/tests/ephy-embed-utils-test.c +++ b/tests/ephy-embed-utils-test.c @@ -56,6 +56,8 @@ static const SchemeTest tests_no_scheme[] = { { "mailto", "mailto:rupert@gnome.org" }, { "hostname", "localhost" }, { "hostname_with_port", "localhost:8080" }, + { "ip_address", "192.168.0.1" }, + { "ip_address_with_port", "192.168.0.1:8080" }, { "http_no_double_colon", "http//www.gnome.org/" }, #if 0 { "double_colon_first", ":var a=b;" }, @@ -75,6 +77,8 @@ static const NormalizeTest tests_normalize[] = { #endif { "append_http_to_hostname", "gnome", "http://gnome" }, { "append_http_to_hostname_with_port", "localhost:8080", "http://localhost:8080" }, + { "append_http_to_ip_address", "192.168.0.1", "http://192.168.0.1" }, + { "append_http_to_ip_address_with_port", "192.168.0.1:8080", "http://192.168.0.1:8080" }, { "convert_about_to_ephy_about", "about:epiphany", "ephy-about:epiphany" }, { "untouched_http", "http://gnome.org", "http://gnome.org" }, }; |