Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test cases for comments.

  • Loading branch information...
commit 2a30cb4ecffd246e1cd096059d770775f853c385 1 parent 8e61597
Robert Hafner tedivm authored
6 tests/Resources/jshrink/expect/preserve_license.js
View
@@ -0,0 +1,6 @@
+
+/*!
+ This comment should be preserved.
+ */
+
+var test;var test;var test;
2  tests/Resources/jshrink/expect/remove_multiline_comments.js
View
@@ -0,0 +1,2 @@
+
+var test;var test;var test;var test;var test;var test;
2  tests/Resources/jshrink/expect/remove_oneline_comments.js
View
@@ -0,0 +1,2 @@
+
+var test;var test;var test;var test;var test;var test;
7 tests/Resources/jshrink/test/preserve_license.js
View
@@ -0,0 +1,7 @@
+/*!
+ This comment should be preserved.
+ */
+
+var test;
+var test;
+var test;
25 tests/Resources/jshrink/test/remove_multiline_comments.js
View
@@ -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!
+ *
+ */
13 tests/Resources/jshrink/test/remove_oneline_comments.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.