aboutsummaryrefslogtreecommitdiff
path: root/test/run-tests.js
AgeCommit message (Collapse)Author
2017-02-21fix duplicated test namesalexlamsl
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
2017-01-19Have minify() and tests use figure_out_scope() as uglifyjs CLI doeskzc
Clarify docs, help and tests for --support-ie8 and screw_ie8=false
2016-10-27Pass mangle options to figure_out_scope before mangling in testsAnthony Van de Gejuchte
2016-08-14Test reparsing test/compress/*.js outputkzc
2016-06-19Respect quote style in object literalsShrey Banga
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.
2016-06-19Don't mix strings with directives in outputAnthony Van de Gejuchte
* 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
2016-06-09Catch errors when compression test fails to parseAnthony Van de Gejuchte
2016-05-04Fix regression causing tests to fail on windowsAnthony Van de Gejuchte
2016-04-19Add `passes` compress option. Fix duplicate compress warnings.kzc
2016-04-12Add base54.reset() to compress testsRichard van Velzen
Without this reset, char counts bleed to next tests. One test had a bad expect clause.
2016-04-11Fix warnings for referenced non-hoisted functions.kzc
Fixes #1034 Also added `expect_warnings` functionality to test framework.
2016-01-14Never mangle arguments and keep them in their scopeAnthony Van de Gejuchte
Fixes #892 Helped-by: kzc
2015-12-27Add mocha testsAnthony Van de Gejuchte
2015-11-12Replace util.error with console.logMihai Bazon
2015-10-28Allow specification beautify options in testsRichard van Velzen
Caught an error in #847 as well - `output` wasn't passed anywhere which led to an exception. `options` was available though.
2015-10-20Fix #836Fábio Santos
2015-10-12Fix testsMihai Bazon
2015-08-05Fix mangling of property names which overwrite unmangleable propertiesRichard van Velzen
Fixes #747.
2015-07-29Replace util.puts in run-tests with console.logRichard van Velzen
See d2dda34b2a8de310f26a26e58ed28275ba5ecc7f
2015-04-14Added expect_exact for testing the OutputStreamFábio Santos
This works almost exactly like `expect`, except that you pass a literal string of which the result is compared with the generated output.
2014-08-03Added generative testing for AST conversions.Ingvar Stepanyan
2013-10-27Display number of failed tests and corresponding filesMihai Bazon
2013-10-23Add an exit code to the test suiteRichard van Velzen
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.
2012-10-18more optimizations for some break/continue casesMihai Bazon
2012-10-13disable warnings in the test suiteMihai Bazon
2012-10-13drop unused function argumentsMihai Bazon
also add test for "drop_unused" (the last one fails for now)
2012-10-03AST cleanup (dropped AST_StatementBase)Mihai Bazon
2012-09-26removed the "squeeze" method (it's now effectively "transform")Mihai Bazon
2012-09-24minor tests fixMihai Bazon
2012-09-12fixed run-tests and an issue about reversing the condition in AST_IfMihai Bazon
2012-09-07checkpointMihai Bazon
2012-09-07always keep declarations found in unreachable codeMihai Bazon
a few more tests and some cleanups.
2012-09-07fixed tests (need to drop the toplevel block in "expected" if it's a single ↵Mihai Bazon
statement)
2012-09-03a LabeledStatement should be in fact a StatementWithBodyMihai Bazon
This fixes output for: if (foo) { moo: if (bar) { break moo; } } else { baz(); } (the labeled statement must be outputted inside brackets)
2012-08-27minorMihai Bazon
2012-08-22wrote more of the compressor and added some testsMihai Bazon