public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e22c4
)
one more test for sequences
author
Mihai Bazon
<mihai@bazon.net>
Mon, 17 Sep 2012 09:53:52 +0000
(12:53 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Mon, 17 Sep 2012 09:53:52 +0000
(12:53 +0300)
test/compress/sequences.js
patch
|
blob
|
history
diff --git
a/test/compress/sequences.js
b/test/compress/sequences.js
index
ec0f4c9
..
06c2b98
100644
(file)
--- a/
test/compress/sequences.js
+++ b/
test/compress/sequences.js
@@
-58,3
+58,32
@@
make_sequences_3: {
}
}
}
+
+make_sequences_4: {
+ options = {
+ sequences: true
+ };
+ input: {
+ x = 5;
+ if (y) z();
+
+ x = 5;
+ for (i = 0; i < 5; i++) console.log(i);
+
+ x = 5;
+ for (; i < 5; i++) console.log(i);
+
+ x = 5;
+ switch (y) {}
+
+ x = 5;
+ with (obj) {}
+ }
+ expect: {
+ if (x = 5, y) z();
+ for (x = 5, i = 0; i < 5; i++) console.log(i);
+ for (x = 5; i < 5; i++) console.log(i);
+ switch (x = 5, y) {}
+ with (x = 5, obj) {}
+ }
+}