Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalyan Prasad Tatavarthi2021-10-06 06:35:30 +0000
committerKalyan Prasad Tatavarthi2021-10-06 11:07:32 +0000
commita8e3244e6579dcfc19dc4db727589e9ce9b67ee5 (patch)
tree92f8b1ea533dc88eb9fdb22e3b026f4192d68046
parentff2f0501a0e3d615cadafa927eb665f1e06da3a1 (diff)
downloadeclipse.jdt.ui-a8e3244e6579dcfc19dc4db727589e9ce9b67ee5.tar.gz
eclipse.jdt.ui-a8e3244e6579dcfc19dc4db727589e9ce9b67ee5.tar.xz
eclipse.jdt.ui-a8e3244e6579dcfc19dc4db727589e9ce9b67ee5.zip
Bug 575379 - TemplateCompletionTests.testEmptyFile fails on WindowsI20211007-1800I20211007-0350I20211006-1800
Change-Id: If4856843801d9653226012c1ca80fb1b64011fc5 Signed-off-by: Kalyan Prasad Tatavarthi <kalyan_prasad@in.ibm.com> Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/186210 Tested-by: JDT Bot <jdt-bot@eclipse.org>
-rw-r--r--org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/templates/TemplateCompletionTests.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/templates/TemplateCompletionTests.java b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/templates/TemplateCompletionTests.java
index 08a3f70e59..6c6eb5a767 100644
--- a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/templates/TemplateCompletionTests.java
+++ b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/templates/TemplateCompletionTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2019, 2020 Red Hat Inc. and others.
+ * Copyright (c) 2019, 2021 Red Hat Inc. and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
@@ -80,12 +80,12 @@ public class TemplateCompletionTests {
ITextViewer viewer= initializeViewer(cu);
applyProposal(viewer, proposals, "new_class", completionIndex);
-
+ String lineSeparator= System.lineSeparator();
StringBuffer expected= new StringBuffer();
- expected.append(" package test;\n" +
- "\n" +
- "public class EmptyFile {\n" +
- "\n" +
+ expected.append(" package test;" + lineSeparator +
+ lineSeparator +
+ "public class EmptyFile {" + lineSeparator +
+ lineSeparator +
"}");
assertEquals(expected.toString(), viewer.getDocument().get());

Back to the top