[Pkg-javascript-commits] [uglifyjs] 75/190: Add tests

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 5cd26c005b3b171f4da8b6732de224089e55ae8a
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Fri Dec 18 14:39:48 2015 +0100

    Add tests
---
 test/compress/loops.js | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/test/compress/loops.js b/test/compress/loops.js
index cdf1f04..b7194fe 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -121,3 +121,25 @@ drop_if_else_break_4: {
         for (; bar() && (x(), y(), foo());) baz(), z(), k();
     }
 }
+
+parse_do_while_with_semicolon: {
+    input: {
+        do {
+            x();
+        } while (false);y()
+    }
+    expect: {
+        do x(); while (false);y();
+    }
+}
+
+parse_do_while_without_semicolon: {
+    input: {
+        do {
+            x();
+        } while (false)y()
+    }
+    expect: {
+        do x(); while (false);y();
+    }
+}
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list