Sebastian McKenzie
9e204a7fee
add playground
2014-11-25 23:48:48 +11:00
Ingvar Stepanyan
96ccdb05fa
Web-driver support for loose parser + small fixes.
...
* Added support for acorn_loose and grouped log to web-driver.
* Removed unused copy-pasted `parseTemplate` from loose parser.
* Throw non-SyntaxError errors immediately (as those are generic).
2014-11-12 16:19:16 +01:00
Ingvar Stepanyan
80f8d527ff
Loose: Skip ES7 tests as we are targeting ES6 now.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
143066184c
Emit full stack trace for unknown exceptions.
2014-11-12 16:19:15 +01:00
Ingvar Stepanyan
ac8bdc608d
Allow specifying expected comments/tokens arrays with onComment/onToken.
...
Allows to avoid both custom `testAssert` and adding extra arguments in `test`.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
6d64834352
Removed manual onComment test in favor of new argument.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
0abe4b64a8
Collect test stats separately for each mode.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
c26fd33826
Clone test options object since calling parse is destructive for it.
2014-11-12 16:19:14 +01:00
Ingvar Stepanyan
7db211d56a
Added loose parser support to test runner (currently failing for 208/1680).
2014-11-12 16:19:13 +01:00
Ingvar Stepanyan
074db16fb7
Indentation fix.
2014-11-12 16:19:13 +01:00
Ingvar Stepanyan
d745bd7e32
Make test runner more generic.
2014-11-12 16:19:13 +01:00
Marijn Haverbeke
3603f7d0b1
Adjust start positions of parenthesized expressions to not include parentheses
...
Issue #136
2014-10-08 11:52:49 +02:00
Max Schaefer
7da3b6f1fd
Fix start position for HTML comments and add tests.
2014-09-05 15:53:36 +02:00
keeyipchan
44f7aff2b7
Add testAssert() for arbitrary tests; fix skinLineComments() passing off-by-1 character to onComment(slice(.., end))
2013-01-27 10:09:06 +01:00
Marijn Haverbeke
5db60dcac9
Conform to Moz spec with regards to loc properties
2012-10-02 18:01:32 +02:00
Marijn Haverbeke
03d95cda2c
Make tests runnable under node
2012-09-24 11:50:03 +02:00
Marijn Haverbeke
587c790f7b
Add esprima-derived tests, trivial benchmark
2012-09-24 11:42:01 +02:00