Bug 406519 - [validation] Valid JavaScript code flagged as error (regexp, infinity, non-breaking space)

JUnit Test Case is added for the issue

Signed-off-by: vrubezhny <vrubezhny@exadel.com>
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 5da47b2..cfcd7fb 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
@@ -329,6 +329,25 @@
 		testName);
 }
 
+/**
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=406519
+ */
+public void testWhitespaces01() {
+	String s = 
+				"var " + '\t' + '\r' + '\n' +
+				'\u000b' + '\u000c' +
+				'\u0020' + '\u00a0' + " x;\r"; 	
+
+	String expectedSyntaxErrorDiagnosis =
+		"";
+
+	String testName = "<test>";
+	checkParse(
+		s.toCharArray(),
+		expectedSyntaxErrorDiagnosis,
+		testName);
+}
+
 public void testWI106610() {
 	String s = "\n<!-- Begin";