Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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 @@ public void test05h() {
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";

Back to the top