Daniel Silverstone
c752c85618
Correct some incorrect error case handling and add tests to demonstrate fix
2015-10-21 18:55:39 +02:00
Daniel Silverstone
2f52338328
Fix up Element to return null rather than undefined, add tests
2015-10-21 18:46:43 +02:00
Vincent Sanders
b7eb35ef24
putforwards test on location
2015-10-05 23:09:07 +01:00
Vincent Sanders
fbc3f36fb5
initial js navigator binding
2015-10-05 15:46:22 +01:00
Vincent Sanders
46945f6362
Improve location implementation to be more complete
2015-09-20 10:35:32 +01:00
Michael Drake
4b07aead3f
Add Node::nodeType to test index.
2015-08-11 20:49:32 +01:00
Michael Drake
78c5ab6f9f
Add Node::nodeType test.
2015-08-11 17:21:08 +01:00
Vincent Sanders
e91255b409
add simple javascript test calling operation with too few arguemnts
2015-08-11 14:36:43 +01:00
Daniel Silverstone
0df3439eb2
Fix constructor injection to use new constructor type, add test
2015-08-09 18:54:37 +01:00
Daniel Silverstone
db40a6439a
Disambiguate references
2015-08-09 11:57:13 +01:00
Vincent Sanders
82beca0432
Complete hash table tests and clean up ineterface.
2015-07-12 17:28:03 +01:00
Vincent Sanders
3862549ed9
Add initial tests for hash table.
2015-07-12 11:24:20 +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
2e7b69be0a
Extend bloom filter test to check item count is correct
2015-07-10 11:31:48 +01:00
Vincent Sanders
94b5c95676
Add unit test for bloom filter
...
Adds check based unit test for teh bloom filter implementation. This
is based on Roberts original test code in utils/bloom.c and uses
/usr/share/dict as a source of strings to check bloom creation, no
false negatives and the false positive rate is below 15%.
2015-07-10 10:48:26 +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
6f1ed5979d
remove unused sources from urldb test
2015-07-09 08:05:06 +01:00
Vincent Sanders
be879ad526
add libidn to test pkgconfig
2015-07-09 08:00:08 +01:00
Vincent Sanders
cb3f267d45
Add coverage to the unit test makefile targets
...
The tests now only require that the test name is added to the TESTS
variable and a testname_SRCS is set with a list of required sources to
compile.
2015-07-08 22:17:20 +01:00
Vincent Sanders
8756793079
convert nsurl tests to use check unit test framework
2015-07-08 00:40:42 +01:00
Vincent Sanders
bd802e763e
Restructure test makefile to be called from main makefile
...
This changes the make test to be executed from the main netsurf
makefile instead of being standalone. It also fixes up the urldbtest
to run.
2015-07-07 16:02:54 +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
30909f8ed5
Move FILE_SCHEME_PREFIX to corestrings.
2015-02-26 16:14:23 +00:00
Vincent Sanders
02ff3920ce
remove unused url_init function
2014-10-31 00:50:32 +00:00
Michael Drake
6f09b64c59
Add some nsurl_nice tests.
2014-10-30 22:34:09 +00:00
Vincent Sanders
d06df231bc
Update the core to use the split operations table headers
...
Second in the series to decouple the core API usage from the frontends.
2014-10-16 22:33:43 +01: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
cf8ffa412a
Remove old hotlist, cookies, and history_global_core modules.
...
New versions of expand/collapse node functions for these modules aren't yet implemented.
2013-09-02 22:41:04 +01:00
Michael Drake
68078d7ea7
Fix up for cookies_old rename.
2013-07-22 10:21:37 +01:00
Vincent Sanders
ee6e6eec05
move options include
2013-05-28 14:16:10 +01:00
Vincent Sanders
c1e864656d
add tests for new options API
2013-05-28 14:16:10 +01:00
Vincent Sanders
7f7ff93745
add recusion and infinite loop tests
2013-05-22 19:12:26 +01:00
Michael Drake
d64416774d
Fix up for various core changes.
2013-04-08 17:50:55 +01:00
Michael Drake
0d7d76a6f3
Fix for http_only param change.
2013-04-08 17:25:12 +01:00
Vincent Sanders
9b568abf96
add default property handler for array indexing
2013-01-22 22:54:34 +00:00
Vincent Sanders
04825c62df
implement document.URL and document.documentURI
2012-12-07 15:50:24 +00:00
Vincent Sanders
897acff532
make events work on elements
2012-12-04 18:01:11 +00:00
Vincent Sanders
3052864773
issue click events at dom
2012-12-03 17:09:44 +00:00
Vincent Sanders
c2cd36fda8
improve location interface implementation
2012-11-21 18:51:44 +00:00
Vincent Sanders
7757008433
add window enumeration test
2012-11-19 17:26:23 +00:00
Vincent Sanders
4769698d13
add enumeration test on the document node
2012-11-18 21:49:25 +00:00
Vincent Sanders
fa9046fc97
implement childElementCount
2012-11-18 17:35:52 +00:00
Vincent Sanders
99d3633e03
implement previousElementSibling and nextElementSibling
2012-11-18 12:59:10 +00:00