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
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
Vincent Sanders
bec8711528
implement lastElementChild
2012-11-18 12:38:07 +00:00
Vincent Sanders
82cae10284
more enumeration tests and update test index
2012-11-16 21:52:27 +00:00
Vincent Sanders
e36b8f6579
safely deal with NULL strings
2012-11-16 15:31:14 +00:00
Vincent Sanders
9acba6cbcc
add node enumeration test
2012-11-13 23:22:10 +00:00
John-Mark Bell
617d655c7b
Remove libxml
2012-11-10 00:11:57 +00:00
Vincent Sanders
2810fe764d
make javascript tests acessible from index and tidy them up a little
2012-11-09 18:03:02 +00:00
Vincent Sanders
16c1059723
add another javascript test
2012-11-06 18:20:41 +00:00
Vincent Sanders
478b57c5d7
working docuemnt.cookie
2012-11-04 16:37:51 +00:00
Vincent Sanders
3f1b683845
implement dom-getElementsByTagName and nodelist and htmlcollection
2012-11-03 21:37:06 +00:00
Vincent Sanders
85c973f986
add jsstring to jsval conversion macro that copes with null jsstrings
2012-11-03 17:37:59 +00:00
Daniel Silverstone
180f7ff42c
Merge Vincent's Javascript work onto master
2012-11-03 15:13:43 +00:00
Michael Drake
9ab851a5a9
Fix join with rel part of " ". Add a few tests.
2012-11-02 10:54:34 +00:00
Vincent Sanders
8f08f820f4
improve tests
2012-11-01 21:12:21 +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
5a5eab9a1e
Add a test for file scheme.
2012-10-10 18:00:47 +01:00
Michael Drake
e9b207c658
Port urldb to nsurl. Won't build since rest of NS needs ported to new urldb API.
...
+ urldb API now takes URLs as nsurl, rather than string.
+ urldb internally stores full URLs with nsurl ref.
+ urldb internally stores schemes as lwc_string.
+ Load and save of cookies and URL file may be slower since
we now need to create a nsurl.
+ Everything else should be faster, and there should be much
less allocating/freeing and much less parsing of the same
url over and over again.
+ Updated urldbtest for new urldb API.
+ urldbtest now cleans up at the end
+ Added lwc_string itterator to end of urldbtest
+ Adding some broken URLs (such as http:domain/) will now
work, since nsurl fixes (http://domain/ ) them.
2012-10-08 20:22:04 +01:00
Michael Drake
120798b933
Fix urldbtest.
2012-10-05 19:30:13 +01:00
Vincent Sanders
2f1ca751d6
make the "none" javascript implmentation specifically disable the scripting option
2012-10-02 13:34:03 +01:00
Vincent Sanders
a3ef5c2c3c
fixup jsapi dom interface to include correct html/dom acessor hierachy
2012-08-15 18:48:46 +01:00
Vincent Sanders
6bbae1f228
add document IDL and test for geteleemntbyid
2012-08-01 19:25:45 +01:00
Vincent Sanders
84152cd72b
add another script test
2012-07-31 21:44:03 +01:00
Vincent Sanders
f207f14be1
simple script tests
2012-07-30 22:54:14 +01:00
John Mark Bell
eb122c52d2
Fix cookie expiration
...
svn path=/trunk/netsurf/; revision=13161
2011-11-22 00:34:06 +00: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
40f9143f7e
Apparently, we need zlib
...
svn path=/trunk/netsurf/; revision=13056
2011-10-15 13:00:16 +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
John Mark Bell
27924aa38c
Minor fix for path defaulting: retain rightmost / iff it's the first character in the path
...
svn path=/trunk/netsurf/; revision=11524
2011-01-29 15:17:42 +00:00
John Mark Bell
f9d10d83bd
Add test for purely numeric subdomains (currently fails)
...
svn path=/trunk/netsurf/; revision=11289
2011-01-12 08:40:48 +00:00
John Mark Bell
4cd21d9934
Fix testsuite
...
svn path=/trunk/netsurf/; revision=11288
2011-01-12 08:40:08 +00:00
Vincent Sanders
4b329697f7
move url database test to test directory
...
svn path=/trunk/netsurf/; revision=10589
2010-06-29 07:20:12 +00:00
John Mark Bell
6ab058fb46
Make test compile
...
svn path=/trunk/netsurf/; revision=10587
2010-06-29 06:05:29 +00:00
Daniel Silverstone
270ef59a98
Merge jmb/new-cache; r=dsilvers,rs=vince
...
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00