Commit Graph

57 Commits

Author SHA1 Message Date
Daniel Silverstone
fe429e8d2d
test/js/life: Support changing the size of the canvas
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 23:44:40 +01:00
Michael Drake
ac8458e3f2 Tests: NetSurf style for game of life test. 2020-05-23 13:33:15 +01: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
1d5a024a68 Sleepy JS test, handy to alt+f4 during load to check shutdown
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-06-15 21:09:49 +01:00
Daniel Silverstone
8dc7869937 Use console formatting to prove it out
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
19b45fb494 Support script insertion after conversion has begun
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 12:18:21 +01:00
Daniel Silverstone
c17e588b66 Javascript: Support setTimeout and friends
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 11:33:07 +01:00
Michael Drake
35e9b5de6d Tests: Add simple JS test for dynamic layout. 2019-05-03 08:25:24 +01:00
Daniel Silverstone
57fec3504f Add dom change event test 2017-02-05 12:39:50 +00: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
7f7ff93745 add recusion and infinite loop tests 2013-05-22 19:12:26 +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
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