Commit Graph

36 Commits

Author SHA1 Message Date
Vincent Sanders 9100fcb409 improve nsurl query handling.
Alter the handling of query values within nsurl to be like fragments.

This ensures callers never have to care about the query punctuation,
e.g. the question mark

This also means the strings generated will no longer have trailing
question marks which now conforms to behaviour in whatwg url spec
on url serializing in section 4.5
2018-09-26 17:21:33 +01:00
Michael Drake f90559d2db Tests: Increase nsurl coverage. 2017-03-27 17:55:48 +01:00
Michael Drake 775687a79b Tests: Add nsurl insensitivity test for HTTPS scheme. 2017-03-27 16:01:47 +01:00
Michael Drake b024c0bcb5 Tests: Add nsurl tests for unnecessary and bad escape values. 2017-03-27 15:41:24 +01:00
Michael Drake 04d74a79ae Tests: Add some more nsurl cases insensitivity tests. 2017-03-27 14:40:12 +01:00
Michael Drake 1cced51440 Tests: Add tests for file: URL credentials and host handling. 2017-03-27 12:24:37 +01:00
Michael Drake 13a2ac7c08 Tests: Add more file scheme URL parsing tests. 2017-03-27 12:15:11 +01:00
Michael Drake 0e62d45006 Tests: Fix file URL component parsing test to match corrected behaviour. 2017-03-27 12:14:04 +01:00
Vincent Sanders 363c32c07a extend nsurl component API test case 2017-03-10 11:36:02 +00:00
Vincent Sanders fc1be0144c extend nsurl parent API tests 2017-03-10 11:06:51 +00:00
Vincent Sanders 510efac384 add nsurl get_utf8 test case 2017-03-10 10:22:17 +00:00
Vincent Sanders b307fa4311 nsurl tests were not exercising unicode 2017-03-10 09:02:42 +00:00
Michael Drake 4b90528d3c Tests: Squash some warnings. 2016-08-08 18:03:57 +01:00
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