Commit Graph

30 Commits

Author SHA1 Message Date
Daniel Silverstone
7bcd4fd246
DOMTokenList: Add support and testing for this
We add both DOMTokenList and DOMSettableTokenList and introduce
polyfills for stringifying it until nsgenbind can do that.

We also bring in a test to demonstrate all that we have.

Note: This does not implement the extra methods that exist according
to MDN, we may need a polyfill to bring that up to snuff.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-27 09:40:47 +00:00
Daniel Silverstone
af158650d8
test/js: Game of Life
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 11:49:33 +01:00
Daniel Silverstone
1223cf0786
test/js: Include mandelbrot example
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 19:53:23 +01:00
Daniel Silverstone
57fec3504f Add dom change event test 2017-02-05 12:39:50 +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
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
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
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
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
Vincent Sanders
7f7ff93745 add recusion and infinite loop tests 2013-05-22 19:12:26 +01:00
Vincent Sanders
897acff532 make events work on elements 2012-12-04 18:01:11 +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
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
8f08f820f4 improve tests 2012-11-01 21:12:21 +00: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