Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test cases for comments.

  • Loading branch information...
commit 2a30cb4ecffd246e1cd096059d770775f853c385 1 parent 8e61597
@tedivm tedivm authored
View
6 tests/Resources/jshrink/expect/preserve_license.js
@@ -0,0 +1,6 @@
+
+/*!
+ This comment should be preserved.
+ */
+
+var test;var test;var test;
View
2  tests/Resources/jshrink/expect/remove_multiline_comments.js
@@ -0,0 +1,2 @@
+
+var test;var test;var test;var test;var test;var test;
View
2  tests/Resources/jshrink/expect/remove_oneline_comments.js
@@ -0,0 +1,2 @@
+
+var test;var test;var test;var test;var test;var test;
View
7 tests/Resources/jshrink/test/preserve_license.js
@@ -0,0 +1,7 @@
+/*!
+ This comment should be preserved.
+ */
+
+var test;
+var test;
+var test;
View
25 tests/Resources/jshrink/test/remove_multiline_comments.js
@@ -0,0 +1,25 @@
+/* This line should not be there later. */
+
+var test;
+var test;
+var test;
+
+/*
+ Neither should this one.
+*/
+
+var test;
+var test;
+
+ /*
+ Or this one.
+ */
+
+var test;
+
+
+/**
+ *
+ * Even if this one is special!
+ *
+ */
View
13 tests/Resources/jshrink/test/remove_oneline_comments.js
@@ -0,0 +1,13 @@
+// This line should not be there later.
+
+var test;
+var test;
+var test;
+
+// Neither should this one.
+var test;
+var test;
+
+ // Or this one.
+
+var test;

0 comments on commit 2a30cb4

Please sign in to comment.
Something went wrong with that request. Please try again.