Vincent Sanders
6a36d4ec2b
remove all core usage of warn_user API
2016-04-26 12:50:16 +01:00
Vincent Sanders
d2dd574106
fix urldb test build
2016-04-17 22:27:53 +01:00
Vincent Sanders
7b78985983
make check library probe faliure silent
2016-04-16 23:50:21 +01:00
Michael Drake
356615573a
Test: Remove duplicate noscript element.
2016-02-06 12:51:44 +00:00
Vincent Sanders
f06ec6390a
add noscript warning to all tests so it is obvious when js is disabled
2016-02-04 15:11:19 +00:00
Michael Drake
3cc80b6a7d
Add test for document.write() adding a STYLE element.
2016-02-02 12:19:00 +00:00
John-Mark Bell
25b88e42e6
Test for [TreatNullAs=EmptyString]
2016-02-01 20:50:42 +00:00
Michael Drake
b1dbc046f1
Add paragraph proto test.
2016-02-01 15:36:12 +00:00
Michael Drake
9c57ddf0b2
1 isn't prime.
2016-01-23 17:44:42 +00:00
Michael Drake
4b0ebae56a
Add a couple of general JS tests.
...
The primes one prints its execution time:
NetSurf without -v: 1300ish
with -v: 5000ish
Firefox 38.5.0: 300ish
2016-01-23 10:32:26 +00:00
Daniel Silverstone
4137739b8a
Tests for body onload behaviour
2015-11-22 16:53:22 +00:00
Michael Drake
396b445599
Add failing test.
...
1. Add "id" attribute.
2. Remove "ID" attribute.
3. Check id value.
In NetSurf it isn't removed, in Firefox it is.
There's a case sensitivity/conversion issue somewhere.
It the test works when we add/remove with the same case.
2015-10-29 16:55:42 +00:00
Michael Drake
218839d05a
Fix title.
2015-10-29 16:50:36 +00:00
Michael Drake
6098646e72
Add binding for DIV element's align getter/setter, and test.
...
Currently the second part of the test fails.
2015-10-29 11:47:53 +00:00
Daniel Silverstone
36bf691cee
Add .id and .className support to Element along with a test
2015-10-25 21:47:35 +01:00
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