Commit graph

100 commits

Author SHA1 Message Date
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
Christian Dywan
2134db5ac2 Use GTest for magic-uri and group cases in proper paths 2009-03-26 23:47:54 +01:00
Christian Dywan
331537201a Use a valid app when testing extension activation 2009-03-25 02:11:16 +01:00
Christian Dywan
bbaa0fb9e6 Implement source view with GIO and drop internal source view
We use GIO to choose a text editor unless a text editor was
specified in the Preferences. We drop our internal source view
now which used to serve as a fallback.
2009-03-17 21:35:05 +01:00
Christian Dywan
5eab5f5bda Drop Glib version guards from unit tests 2009-03-16 01:30:40 +01:00
Christian Dywan
b91b8c5c4b Add unit test for the browser, it tests actions at this point 2009-03-05 23:10:05 +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
35ae81c90a Test boolean properties as well 2009-02-22 19:29:42 +01:00
Christian Dywan
ba9d7d48e5 Fix browser properties along with enabling the property test 2009-02-22 14:38:28 +01:00
Christian Dywan
3f75dc69e6 Revise bookmark panel, along with a unit test 2009-02-20 22:43:08 +01:00
Christian Dywan
2cd86150e4 Add boolean and integer settings to MidoriExtension, with tests 2009-02-20 20:24:13 +01:00
Christian Dywan
787dec54a8 Add property test case, currently testing strings and enumerations 2009-02-19 23:42:50 +01:00
Christian Dywan
d9cc5a6592 Run tests without requiring a display 2009-02-19 02:28:52 +01:00
Christian Dywan
95e629679b Decrease the completion test items slightly 2009-02-19 02:10:02 +01:00
Christian Dywan
bbe809cacf Support IDN by decoding domain names in magic_uri 2009-02-17 00:16:14 +01:00
Christian Dywan
1c029e8948 Build 'panels' as a static library to enable their use in tests 2009-02-15 22:09:32 +01:00
Christian Dywan
60e81f734b Tweak magic URI and add a test string 2009-02-09 22:03:04 +01:00
Christian Dywan
c0c4d6f1cb Tweak the completion test and add a 'match' test case 2009-02-09 21:43:08 +01:00
Christian Dywan
cd2700ff0d Add a completion test 2009-02-06 03:00:14 +01:00
Christian Dywan
f78a047275 Add an extension test 2009-02-05 00:12:26 +01:00
Christian Dywan
1829780e62 Adapt extension and test build scripts, test files are picked up dynamically now 2009-01-23 21:36:04 +01:00
Christian Dywan
97c80d0190 Build Midori core as library, for easier use in tests 2009-01-17 23:52:09 +01:00
Christian Dywan
ee9e8d77e5 Update Waf to 1.5.1 and update build scripts accordingly 2009-01-04 21:38:06 +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