diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-11 22:03:41 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl> | 2019-05-11 22:06:14 +0800 |
commit | e88c439eacf0715991e50e1cc664e29af88ee7ab (patch) | |
tree | 5abd6a4da91dc3c94137287fcc69a1cb497d25db /test/mocha | |
parent | 9fc8cd40763467d8b256be00380965268b7afcfd (diff) | |
download | tracifyjs-e88c439eacf0715991e50e1cc664e29af88ee7ab.tar.gz tracifyjs-e88c439eacf0715991e50e1cc664e29af88ee7ab.zip |
improve tests (#3405)
Diffstat (limited to 'test/mocha')
-rw-r--r-- | test/mocha/release.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/mocha/release.js b/test/mocha/release.js deleted file mode 100644 index 988ca212..00000000 --- a/test/mocha/release.js +++ /dev/null @@ -1,50 +0,0 @@ -var assert = require("assert"); -var semver = require("semver"); -var spawn = require("child_process").spawn; - -if (!process.env.UGLIFYJS_TEST_ALL) return; -if (semver.satisfies(process.version, "0.12")) return; - -function run(command, args, done) { - spawn(command, args, { - stdio: [ "ignore", 1, 2 ] - }).on("exit", function(code) { - assert.strictEqual(code, 0); - done(); - }); -} - -describe("test/benchmark.js", function() { - this.timeout(10 * 60 * 1000); - [ - "-b", - "-b braces", - "-m", - "-mc passes=3", - "-mc passes=3,toplevel", - "-mc passes=3,unsafe", - "-mc keep_fargs=false,passes=3", - "-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", - ].forEach(function(options) { - it("Should pass with options " + options, function(done) { - var args = options.split(/ /); - args.unshift("test/benchmark.js"); - run(process.argv[0], args, done); - }); - }); -}); - -describe("test/jetstream.js", function() { - this.timeout(20 * 60 * 1000); - [ - "-mc", - "-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", - ].forEach(function(options) { - it("Should pass with options " + options, function(done) { - var args = options.split(/ /); - args.unshift("test/jetstream.js"); - args.push("-b", "beautify=false,webkit"); - run(process.argv[0], args, done); - }); - }); -}); |