Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
- suppress spurious `rename` from `commander`
- handle `AST_SymbolCatch` correctly
|
|
- include dead code when `keep_quoted`
- unify `keep_quoted` & `reserved`
- make `test/run-tests.js` consistent with `minify()`
fixes #2256
|
|
|
|
fixes #2095
|
|
|
|
... via semver string on `node_version` label.
|
|
- fix `estree` conversion of getter/setter
- fix non-directive literal in `to_mozilla_ast()`
- revamp `test/mozilla-ast.js`
- reuse `test/ufuzz.js` for code generation
- use `acorn.parse()` for creating `estree`
- extend `test/ufuzz.js` for `acorn` workaround
- catch variable redefinition
- non-trivial literal as directive
- adjust options for tolerance
Miscellaneous
- optional semi-colon when parsing directives
fixes #1914
closes #1915
|
|
fixes #1872
|
|
- `test/run-tests.js` and `test/ufuzz.js` now shares the same `run_code()` and `same_stdout()`
- re-enable fuzzer to generate top-level `NaN`, `Infinity` & `undefined`
- attempt to show beautified output only when `run_code()` output is preserved
|
|
fixes #1719
|
|
`compress()` may modify input ASTs
add tests for #1627 & #1640
|
|
report the following only when `options.warnings = "verbose"`
- unused elements due to inlining
- collpased variables
|
|
That particular version of Node.js has messed up error messages, so provide a version-specific workaround.
Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input.
Apply `expect_stdout` to more applicable tests.
|
|
allow test to pass if both `input` and `expect` throws the same kind of error
|
|
`input` and `expect` are parsed as `AST_BlockStatement` which does not support `AST_Directive` by default.
Emulate that by transforming preceding `AST_SimpleStatement`s of `AST_String` into `AST_Directive`.
|
|
fixes #1588
|
|
`expect_exact` sometimes have multiple lines and `\n` are hard to read.
Use array of strings to emulate line breaks and improve readability.
|
|
previously test cases with the same name would be skipped except for the last one
`test/run-test.js` will now report duplicated names as errors
closes #1461
|
|
Clarify docs, help and tests for --support-ie8 and screw_ie8=false
|
|
|
|
|
|
The option added in fbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5 wasn't
being respected inside object literals, so quoted property names would
still be stripped out with this option.
This is mostly a corner-case, but useful when the output is passed to
something like the Closure compiler, where quoted property names can be
used to prevent mangling.
|
|
* Don't interpret strings with escaped content as directive
* Don't interpret strings after empty statement as directive
* Adapt output to prevent strings being represent as directive
* Introduce UGLIFY_DEBUG to allow internal testing like EXPECT_DIRECTIVE
|
|
|
|
|
|
|
|
Without this reset, char counts bleed to next tests. One test had a bad expect clause.
|
|
Fixes #1034
Also added `expect_warnings` functionality to test framework.
|
|
Fixes #892
Helped-by: kzc
|
|
|
|
|
|
Caught an error in #847 as well - `output` wasn't passed anywhere which led to an exception. `options` was available though.
|
|
|
|
|
|
Fixes #747.
|
|
See d2dda34b2a8de310f26a26e58ed28275ba5ecc7f
|
|
This works almost exactly like `expect`, except that you pass a literal string
of which the result is compared with the generated output.
|
|
|
|
|
|
By adding the exit code 1 (or any other non-zero exit code) `npm test`
will know the tests didn't perform correctly. This way it's easier to
know if pull requests are good or bad.
|
|
|
|
|
|
also add test for "drop_unused" (the last one fails for now)
|
|
|
|
|
|
|
|
|