diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2012-03-11 03:52:04 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2012-03-14 23:28:26 +0800 |
commit | 398e670b1dd80cd0427a1db8a21dfc892bbe5eaf (patch) | |
tree | 27d409b421f85736d88fe27f6b05853e3fb12054 /tests | |
parent | 0ea81088cf97aee3d5bbb1f0ec470b8c805a746d (diff) | |
download | gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.gz gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.bz2 gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.lz gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.xz gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.zst gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.zip |
Automatically prefix existing absolute paths with file://
https://bugzilla.gnome.org/show_bug.cgi?id=671792
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ephy-embed-utils-test.c | 1 | ||||
-rw-r--r-- | tests/ephy-web-view-test.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/ephy-embed-utils-test.c b/tests/ephy-embed-utils-test.c index 446cd8014..669013c2c 100644 --- a/tests/ephy-embed-utils-test.c +++ b/tests/ephy-embed-utils-test.c @@ -70,6 +70,7 @@ static const SchemeTest tests_no_scheme[] = { }; static const NormalizeTest tests_normalize[] = { + { "append_file_to_path", "/etc/passwd", "file:///etc/passwd" }, { "append_http_to_domain", "gnome.org", "http://gnome.org" }, { "append_http_to_www", "www.gnome.org", "http://www.gnome.org" }, { "append_http_to_hostname", "gnome", "http://gnome" }, diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c index 65a03eb16..6afd0a5e5 100644 --- a/tests/ephy-web-view-test.c +++ b/tests/ephy-web-view-test.c @@ -174,6 +174,8 @@ static const RegexTest test_non_search_regex[] = { /* Searches */ { "localhost localdomain:8080/home/", FALSE }, + /* Relative paths should be searched */ + { "./", FALSE }, { "localhost", TRUE }, { "localhost.localdomain", TRUE }, |