aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/loops.js16
-rw-r--r--test/input/issue-1482/braces.js (renamed from test/input/issue-1482/bracketize.js)0
-rw-r--r--test/mocha/cli.js6
-rw-r--r--test/mocha/comment.js2
-rw-r--r--test/mocha/release.js2
-rw-r--r--test/mozilla-ast.js2
-rw-r--r--test/ufuzz.js2
-rw-r--r--test/ufuzz.json2
8 files changed, 16 insertions, 16 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js
index 625b552d..2dd29256 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -294,10 +294,10 @@ issue_186_beautify_ie8: {
]
}
-issue_186_bracketize: {
+issue_186_braces: {
beautify = {
beautify: false,
- bracketize: true,
+ braces: true,
ie8: false,
}
input: {
@@ -314,10 +314,10 @@ issue_186_bracketize: {
expect_exact: 'var x=3;if(foo()){do{do{alert(x)}while(--x)}while(x)}else{bar()}'
}
-issue_186_bracketize_ie8: {
+issue_186_braces_ie8: {
beautify = {
beautify: false,
- bracketize: true,
+ braces: true,
ie8: true,
}
input: {
@@ -334,10 +334,10 @@ issue_186_bracketize_ie8: {
expect_exact: 'var x=3;if(foo()){do{do{alert(x)}while(--x)}while(x)}else{bar()}'
}
-issue_186_beautify_bracketize: {
+issue_186_beautify_braces: {
beautify = {
beautify: true,
- bracketize: true,
+ braces: true,
ie8: false,
}
input: {
@@ -366,10 +366,10 @@ issue_186_beautify_bracketize: {
]
}
-issue_186_beautify_bracketize_ie8: {
+issue_186_beautify_braces_ie8: {
beautify = {
beautify: true,
- bracketize: true,
+ braces: true,
ie8: true,
}
input: {
diff --git a/test/input/issue-1482/bracketize.js b/test/input/issue-1482/braces.js
index 2c2b103c..2c2b103c 100644
--- a/test/input/issue-1482/bracketize.js
+++ b/test/input/issue-1482/braces.js
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 671d700e..10f0465a 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -164,13 +164,13 @@ describe("bin/uglifyjs", function () {
done();
});
});
- it("Should work with `--beautify bracketize`", function (done) {
- var command = uglifyjscmd + ' test/input/issue-1482/input.js -b bracketize';
+ it("Should work with `--beautify braces`", function (done) {
+ var command = uglifyjscmd + ' test/input/issue-1482/input.js -b braces';
exec(command, function (err, stdout) {
if (err) throw err;
- assert.strictEqual(stdout, read("test/input/issue-1482/bracketize.js"));
+ assert.strictEqual(stdout, read("test/input/issue-1482/braces.js"));
done();
});
});
diff --git a/test/mocha/comment.js b/test/mocha/comment.js
index 74ae962c..9fc50470 100644
--- a/test/mocha/comment.js
+++ b/test/mocha/comment.js
@@ -139,7 +139,7 @@ describe("Comment", function() {
assert.strictEqual(result.code, code);
});
- it("Should retain comments within brackets", function() {
+ it("Should retain comments within braces", function() {
var code = [
"{/* foo */}",
"a({/* foo */});",
diff --git a/test/mocha/release.js b/test/mocha/release.js
index 063d0fc7..f911b009 100644
--- a/test/mocha/release.js
+++ b/test/mocha/release.js
@@ -17,7 +17,7 @@ describe("test/benchmark.js", function() {
this.timeout(10 * 60 * 1000);
[
"-b",
- "-b bracketize",
+ "-b braces",
"-m",
"-mc passes=3",
"-mc passes=3,toplevel",
diff --git a/test/mozilla-ast.js b/test/mozilla-ast.js
index b8026de5..4f17c892 100644
--- a/test/mozilla-ast.js
+++ b/test/mozilla-ast.js
@@ -11,7 +11,7 @@ function try_beautify(code) {
mangle: false,
output: {
beautify: true,
- bracketize: true
+ braces: true
}
});
if (beautified.error) {
diff --git a/test/ufuzz.js b/test/ufuzz.js
index f717f00b..4061e8d7 100644
--- a/test/ufuzz.js
+++ b/test/ufuzz.js
@@ -975,7 +975,7 @@ function try_beautify(code, result, printfn) {
mangle: false,
output: {
beautify: true,
- bracketize: true,
+ braces: true,
},
});
if (beautified.error) {
diff --git a/test/ufuzz.json b/test/ufuzz.json
index 5ccd96e0..969ae43b 100644
--- a/test/ufuzz.json
+++ b/test/ufuzz.json
@@ -4,7 +4,7 @@
"mangle": false,
"output": {
"beautify": true,
- "bracketize": true
+ "braces": true
},
"rename": true
},