Paweł Forysiuk
cf4499f54b
Fix sokoke_prefetch_uri arguments in magic URI test
2011-07-21 18:04:21 +02:00
Christian Dywan
919b0ab0fd
Expect magic_uri to encode spaces as %20
2011-01-16 14:05:23 +01:00
André Stösel
555f7a57e4
Implement sokoke_resolve_hostname
...
sokoke_prefetch_uri is extended take a callback and user data.
sokoke_resolve_hostname is implemented for resolving hostnames
based on a maximum timeout.
sokoke_magic_uri resolves localhost and uris with a / to verify
if there is a local domain, otherwise falls back to search.
Thanks to Andy Kittner <andkit@gmx.de> for input on proceeding
the event loop while resolving asynchronously.
2010-03-17 02:20:58 +01:00
Christian Dywan
902f836810
Improve and optimize sokoke_uri_to_ascii to parse about:version
2010-02-12 02:08:05 +01:00
Christian Dywan
ca3e86cbce
Re-implement search engine handling in magic URI test
2010-02-12 02:06:53 +01:00
Christian Dywan
058bb33024
Add 'LT_PREREQ(2.2)', uncommented, to uri search tests
...
The string is obviously not a valid domain name. Yet our
recognition isn't aware of that.
2010-01-11 21:55:12 +01:00
Christian Dywan
578f74a308
Merge compat.h into sokoke and remove gtk_show_uri implementation
2010-01-01 23:24:03 +01:00
Christian Dywan
311a5a8a1b
Store searches with tokens in the completion as a distinct item
...
Currently searches won't be stored persistently in the database.
2010-01-01 22:47:24 +01:00
Christian Dywan
fc7689f906
Move DNS prefetching into the core
...
The feature is going to be included with WebKitGTK+ and
having it in the core allows us to prefetch bookmarks as well.
2010-01-01 18:16:55 +01:00
Christian Dywan
d0e72f5d33
Fix crasher in sokoke_hostname_from_uri and add additional tests
2009-12-21 18:26:50 +01:00
Christian Dywan
b9d4266d27
Refactor IDN handling and related unit tests
...
Most code is shared despite different available libraries now and
can more effeciently be tested.
2009-10-10 11:09:10 +02:00
Christian Dywan
3ed9e482cd
Fix display formatting of URIs and unit test it properly
2009-10-07 01:50:10 +02:00
Christian Dywan
1d634247c7
Only if a preriod follws is a typed number the start of an IP address
2009-09-28 23:01:48 +02:00
Christian Dywan
c17e8a2a9a
Move relative files out of magic URI, IP addresses start with digits
2009-08-14 23:06:55 +02:00
Christian Dywan
ba11ec8acd
Open the search engine even if only the token is typed
...
So "g" opens Google while "g cat" uses Google to search for cats.
2009-07-14 23:41:25 +02:00
Enrico Tröger
90e9ee4af7
Fix crash for URIs with an invalid hostname and without a path
2009-05-15 18:58:57 +02:00
Christian Dywan
d7d6edbff3
Percent encode search terms, so '+' actually ends up as a '+'
2009-04-19 00:47:02 +02:00
Christian Dywan
89698772bb
Try to decide what an @ in a location refers to
...
We assume the usual case is that you intend to search for an
email address, a host with a login isn't recognized.
2009-04-12 14:00:32 +02:00
Jordan Callicoat
52ab540db5
Teach magic_uri that hostnames don't contain spaces
...
New test cases included. Two of them are commented out since
they are not supported but should logcially be.
2009-04-11 12:24:43 +02:00
Christian Dywan
406942594a
Allow opening data URIs from the location entry
2009-04-02 22:48:07 +02:00
Christian Dywan
5be54230af
Add performance test for magic uri
2009-03-31 03:26:51 +02:00
Christian Dywan
2134db5ac2
Use GTest for magic-uri and group cases in proper paths
2009-03-26 23:47:54 +01:00
Christian Dywan
da2e4755e6
Add addtional file:// URI tests
2009-02-27 21:00:24 +01:00
Christian Dywan
d9bdaf0f8c
Restrict IDN conversion to hostname
2009-02-23 23:44:30 +01:00
Christian Dywan
d9cc5a6592
Run tests without requiring a display
2009-02-19 02:28:52 +01:00
Christian Dywan
bbe809cacf
Support IDN by decoding domain names in magic_uri
2009-02-17 00:16:14 +01:00
Christian Dywan
60e81f734b
Tweak magic URI and add a test string
2009-02-09 22:03:04 +01:00
Christian Dywan
ac146cbd78
Append the search term if a search lacks a '%s'
2009-01-02 23:16:38 +01:00
Arnaud Renevier
993fb52644
Allow relative localhost URIs
2008-12-20 00:24:35 +01:00
Christian Dywan
aeb71dd7b4
Add support for javascript: bookmarklets
2008-12-09 00:02:38 +01:00
Christian Dywan
600423de4e
Take special care of spaces in search strings
2008-11-21 02:44:03 +01:00
Christian Dywan
56d26b02e5
Allow "g cache:127.0.0.1" to search from the location
2008-11-18 06:37:11 +01:00
Christian Dywan
b9a183c316
Allow ":" as in "foo:bar" to search from the location
2008-11-16 00:36:32 +01:00
Christian Dywan
59ff9878c9
Actually commit the 'tests' folder
2008-11-16 00:03:34 +01:00