From 48af55b02eb0745b3de6e4bbc64cd15641fb77a8 Mon Sep 17 00:00:00 2001 From: Denis Golovin Date: Mon, 18 Nov 2013 10:52:26 -0500 Subject: [349020] [hotbug] [validation] Eclipse complains about jquery minified JS files Signed-off-by: Chris Jaun --- .../core/tests/compiler/parser/SyntaxErrorTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 = ""; + checkParse( + s.toCharArray(), + "", + testName); +} + + public void testRegExpression01() { String s = "searchStr.replace( /([!\"#$%&'()*+,./:;<=>?@[\\]^`{|}~])/g, '//' )"; String expectedSyntaxErrorDiagnosis = ""; -- cgit v1.2.3