summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/test-common-tests.js
AgeCommit message (Collapse)Author
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2020-11-12LibJS/Tests: Use canParseSource() for toEval()Linus Groh
We can now enable the "new.target is syntax error outside of function" test :^)
2020-10-28LibJS: Restrict toEval() failures to SyntaxErrorLinus Groh
We only use expect(...).toEval() / not.toEval() for checking syntax errors, where we obviously can't put the code in a regular function. For runtime errors we do exactly that, so toEval() should not fail - this allows us to use undefined identifiers in syntax tests.
2020-10-25LibJS: Parse line continuations in string literals properlyMarcin Gasperowicz
Newlines after line continuation were inserted into the string literals. This patch makes the parser ignore the newlines after \ and also makes it so that "use strict" containing a line continuation is not a valid "use strict".
2020-07-06LibJS: Indent tests with 4 spaces instead of 2Matthew Olsson
2020-07-06test-js: Use prettier and format all filesMatthew Olsson
2020-07-06LibJS: Convert most builtin tests to new systemMatthew Olsson
2020-07-06LibJS: Add more test matchersMatthew Olsson
2020-07-06LibJS: Add test-common.js tests, remove unused matchersMatthew Olsson
Now that test-common.js is quite a bit more complicated, we need tests for test-common to make sure all of the matchers behave correctly