Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Golovin2013-11-18 15:52:26 +0000
committerChris Jaun2013-11-18 15:52:26 +0000
commit48af55b02eb0745b3de6e4bbc64cd15641fb77a8 (patch)
tree26f12c7a6e62b0ba10afb2b7ee4ceb4a8474c8f1
parentd714bafbe59f5562b2f74df7764aa7013f59d83f (diff)
downloadwebtools.jsdt.tests-48af55b02eb0745b3de6e4bbc64cd15641fb77a8.tar.gz
webtools.jsdt.tests-48af55b02eb0745b3de6e4bbc64cd15641fb77a8.tar.xz
webtools.jsdt.tests-48af55b02eb0745b3de6e4bbc64cd15641fb77a8.zip
[349020] [hotbug] [validation] Eclipse complains about jquery minifiedv201311201746v201311201729
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 = "";

Back to the top