Commit Graph

23 Commits

Author SHA1 Message Date
Vincent Sanders
3f3ac6e909 add some more nsurl compare unit tests to improve coverage 2015-07-10 23:05:02 +01:00
Vincent Sanders
956283366b Complete API coverage in nsurl unit test 2015-07-10 22:50:24 +01:00
Vincent Sanders
22023d616a Add nsurl unit tests for the component handling parts of the API 2015-07-10 16:25:35 +01:00
Vincent Sanders
e5ff82ff52 Improve nsurl unit test to exercise the compare API 2015-07-10 11:53:31 +01:00
Vincent Sanders
7b2d15a036 Add tests for all asserts in nsurl API and for access and access_leaf 2015-07-09 23:29:44 +01:00
Vincent Sanders
eb962f94c3 Add some basic API assert check tests to ensure bad parameters are caught 2015-07-09 17:12:12 +01:00
Vincent Sanders
8756793079 convert nsurl tests to use check unit test framework 2015-07-08 00:40:42 +01:00
Vincent Sanders
ccfc2aeefa make nsurl unit test work again 2015-07-07 00:05:30 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Michael Drake
6f09b64c59 Add some nsurl_nice tests. 2014-10-30 22:34:09 +00:00
Vincent Sanders
02bbaa3e88 split version info into its own header and remove unnecessary nesurf.h includes
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.

Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +01:00
Vincent Sanders
4488c8a2e4 fallback to old url creation behaviour if the IDNA host parse fails 2014-06-09 18:05:36 +01:00
Michael Drake
ef6b20fe83 Update test suite for corestrings and log module changes. Update test data for rejection of hostless http(s) urls. 2014-02-11 11:34:42 +00:00
Michael Drake
9ab851a5a9 Fix join with rel part of " ". Add a few tests. 2012-11-02 10:54:34 +00:00
Michael Drake
d84e3fd773 Add nsurl_replace_query. Add tests. Make tester itterate remaining lwc_strings. 2012-10-11 19:23:22 +01:00
Michael Drake
4ad1557d27 Add some tests.
svn path=/trunk/netsurf/; revision=13114
2011-11-03 12:16:01 +00:00
Michael Drake
30ff09bd83 More test cases.
svn path=/trunk/netsurf/; revision=13109
2011-10-31 22:24:05 +00:00
Michael Drake
2db149d527 Add a couple of tests and tidy up.
svn path=/trunk/netsurf/; revision=13063
2011-10-15 14:17:09 +00:00
John Mark Bell
f933d70661 Remove unnecessary stub functions
svn path=/trunk/netsurf/; revision=13060
2011-10-15 13:12:34 +00:00
John Mark Bell
f39e150065 Stub messages_get, instead
svn path=/trunk/netsurf/; revision=13057
2011-10-15 13:06:36 +00:00
John Mark Bell
ee930d97e4 Fix handling of no scheme
svn path=/trunk/netsurf/; revision=13055
2011-10-15 11:51:54 +00:00
John Mark Bell
cf12dca846 A bunch more tests for trivial inputs
svn path=/trunk/netsurf/; revision=13052
2011-10-14 21:31:53 +00:00
John Mark Bell
ca4dfc7f1e Move nsurl test suite into test/
Fix up llcache tester to reflect nsurl changes
Make handling of http:,http:/,http:// consistent
Fix buffer overflow when presented with an input string: "http://"

svn path=/trunk/netsurf/; revision=13051
2011-10-14 21:29:13 +00:00