summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Golovin2013-11-18 11:47:42 (EST)
committerChris Jaun2013-11-18 11:47:42 (EST)
commita43e86c0921eae0ed572b6b5f6f3fcfa5788f0f0 (patch)
tree26f12c7a6e62b0ba10afb2b7ee4ceb4a8474c8f1
parentd714bafbe59f5562b2f74df7764aa7013f59d83f (diff)
downloadwebtools.jsdt.tests-a43e86c0921eae0ed572b6b5f6f3fcfa5788f0f0.zip
webtools.jsdt.tests-a43e86c0921eae0ed572b6b5f6f3fcfa5788f0f0.tar.gz
webtools.jsdt.tests-a43e86c0921eae0ed572b6b5f6f3fcfa5788f0f0.tar.bz2
[349020] [hotbug] [validation] Eclipse complains about jquery minified
JS files Signed-off-by: Chris Jaun <cmjaun@us.ibm.com>
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
index 586f0d9..5da47b2 100644
--- a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
+++ b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
@@ -347,6 +347,25 @@ public void testWI106610() {
testName);
}
+/**
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=417387
+ */
+public void testCommaExpression01() {
+ String s = "!function(){\n" +
+ " window.alert(\"passed 1\");\n" +
+ "}(),\n" +
+ " function(){\n" +
+ " window.alert(\"passed 2\");\n" +
+ "}();\n" +
+ "window.alert(\"passed 3\");";
+ String testName = "<test>";
+ checkParse(
+ s.toCharArray(),
+ "",
+ testName);
+}
+
+
public void testRegExpression01() {
String s = "searchStr.replace( /([!\"#$%&'()*+,./:;<=>?@[\\]^`{|}~])/g, '//' )";
String expectedSyntaxErrorDiagnosis = "";