diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-17 12:53:52 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-17 12:53:52 +0300 |
commit | 45a3970ca35e0c640a761601d0854a4c7c5a5cf0 (patch) | |
tree | e384002dfb098c4925d1e8eafb3fbcb7a2447932 /test | |
parent | 92e22c460d689008055f4f3f9b850989e4359f4d (diff) | |
download | tracifyjs-45a3970ca35e0c640a761601d0854a4c7c5a5cf0.tar.gz tracifyjs-45a3970ca35e0c640a761601d0854a4c7c5a5cf0.zip |
one more test for sequences
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/sequences.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js index ec0f4c97..06c2b989 100644 --- 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) {} + } +} |