Christian Dywan
6bceb5a10a
Merge thread setup, stock items, argv, i18n into MidoriApp
2011-10-28 22:49:10 +02:00
Christian Dywan
77428fe44c
Introduce Midori.URI to unitfy all URI logic
...
sokoke_hostname_from_uri, sokoke_search_uri,
sokoke_hostname_to_ascii and sokoke_unescape_uri_string
are merged into Midori.URI.
midori-core.h is the official API header for Vala now.
2011-10-21 01:00:13 +02:00
Christian Dywan
756830f6e4
Require libSoup 2.27.90 and drop libidn
2011-10-17 02:47:55 +02:00
Paweł Forysiuk
cf4499f54b
Fix sokoke_prefetch_uri arguments in magic URI test
2011-07-21 18:04:21 +02:00
Christian Dywan
9a806a8ca2
Test activation and deactivation of extensions
2011-01-16 14:05:23 +01:00
Christian Dywan
03b146386e
Don't test PrivateBrowsing and AddDesktopShortcut
2011-01-16 14:05:23 +01:00
Christian Dywan
f5927ec5d4
Add a dummy cookie jar for extension unit test
...
In a real environment there is always one and extensions
rely on finding a cookie jar.
2011-01-16 14:05:23 +01:00
Christian Dywan
919b0ab0fd
Expect magic_uri to encode spaces as %20
2011-01-16 14:05:23 +01:00
Christian Dywan
cb52ab4fb4
Remove outdated and unmaintained unit tests
2011-01-16 14:05:23 +01:00
Christian Dywan
7a7f4c6a44
Provide midori.vapi for App, Browser, Extension and WebSettings
...
With this API description extensions can be written in Vala. Mind
it is not complete yet, missing interfaces can be added later.
2010-04-27 23:49:45 +02:00
Christian Dywan
ccb60bb8d4
Only pick up .vala files if Vala is available
2010-04-25 23:39:00 +02:00
Christian Dywan
7e5dd2db32
Minimal support for tests and extensions in Vala
2010-04-25 00:11:57 +02: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
4bf4e5cd63
Look for the history treeview at the second child position
2010-02-10 19:52:12 +01:00
Christian Dywan
4f9d726c55
Merge ident-string setting into user-agent for old and new WebKit
...
Since the existence of two properties causes confusion among users
we merge the two, and actually remove ident-string.
2010-01-31 22:10:24 +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
8039785073
Move up/ down key handling from the entry into MidoriLocationAction
2010-01-01 18:23:15 +01:00
Christian Dywan
15658145b2
Build katze, core and panels as one, and allow non-progressive build
...
This simplifies the build and possibly helps with linking problems
on some platforms. The 'progressive' option allows building
without an intermediate static library except for unit tests.
2010-01-01 18:20:08 +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
b1ee80d55e
Implement katze_utf8_stristr, katze_collfold and use in completion
...
Evidently normalizing any whole string is too slow for completion,
so we need to even out case and composition while iterating through
the strings.
The decompositing version of katze_utf8_stristr is disabled, since
it is too slow, and an ascii only version is used, for now.
A unit test 'compare' is added that solely measures performance of
katze_collfold and katze_utf8_stristr.
2009-12-28 23:59:54 +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
cef6532429
Refactor MidoriPreferences into KatzePreferences base class
...
The goal is to get rid of detailed table setups in favour of
automatic alignment with few hints as well as abstracting away
the exact layout to allow reimplementing it in a different form.
2009-10-19 23:15:44 +02: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
f273b7d08e
Fix variable signedness warning in property unit test
2009-07-20 22:47:55 +02:00
Christian Dywan
f4d19b68bf
Check for duplicate property IDs as part of the property test
2009-07-19 18:27:46 +02:00
Christian Dywan
a7391693b2
Implement support for extension_test() to unit test extensions
...
Any extension can provide an extension_test() function that is
executed after g_test_init. Test functions should make use of
g_test_add_func and friends to integrate with other tests.
2009-07-16 23:49:10 +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
Christian Dywan
2379e7ac75
Implement a list of properties to not test generically
2009-07-12 13:54:03 +02:00
Christian Dywan
4e19617fdc
Use MDATADIR, import os and don't use waf_config_files
2009-06-09 02:02:43 +02:00
Christian Dywan
8fd2713132
Initialize threading in completion test since location uses libsoup
2009-06-01 06:41:57 +02:00
Christian Dywan
5ae53f643a
Skip the AddSpeedDial action in the browser test
2009-05-22 01:35:47 +02:00
Christian Dywan
964bcd0c1c
Adjust completion test after modifying the location entry
2009-05-17 16:55:02 +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
212ed7d80c
Unit test using a string_list setting
2009-04-25 16:03:10 +02:00
Christian Dywan
3fc285222a
Add an attempt at unit testing history
2009-04-20 21:35:33 +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
a324cad92a
Using non-utf8 strlen for titles in completion should suffice
2009-04-13 22:43:07 +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
eed273b35e
Fix memory leaks in a number of places
2009-04-05 23:46:15 +02:00
Christian Dywan
406942594a
Allow opening data URIs from the location entry
2009-04-02 22:48:07 +02:00
Christian Dywan
43feec8b3d
Optimize location completion based on profiling
...
The test was modified slightly because we are not filtering
out trailing slahses anymore. We are not quite there still
when it comes to treating URIs as we should but for all
practical purposes it should be quite a bit faster.
The most annoying shortcoming still is that umlauts or any
special characters won't match at all.
2009-03-31 22:24:18 +02:00
Christian Dywan
5be54230af
Add performance test for magic uri
2009-03-31 03:26:51 +02:00