From 1c13ce92c033f142e965141522bad019dd902bee Mon Sep 17 00:00:00 2001 From: Bogdan Gheorghe Date: Tue, 12 Jul 2005 14:42:42 +0000 Subject: [PATCH] Fix for failing UI JUnits --- .../text/selectiontests/CPPSelectionTestsCTagsIndexer.java | 6 +++--- .../text/selectiontests/CSelectionTestsCTagsIndexer.java | 4 ++-- .../text/selectiontests/CSelectionTestsDOMIndexer.java | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java index 43e8b02193e..102b7ea31d7 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java @@ -155,9 +155,9 @@ public class CPPSelectionTestsCTagsIndexer extends BaseSelectionTestsIndexer public void testSimpleOpenDeclaration2() throws Exception { String header = "int x;\r\n // comment \r\nint y;\r\n /* comment */ \r\n int z;\r\n"; //$NON-NLS-1$ - importFile("test.h", header); //$NON-NLS-1$ - String code = "#include \"test.h\"\r\nint foo() { \r\n return y;\r\n}\r\n"; //$NON-NLS-1$ - IFile file = importFile("test.cpp", code); //$NON-NLS-1$ + importFile("testSimpleOpenDeclaration2.h", header); //$NON-NLS-1$ + String code = "#include \"testSimpleOpenDeclaration2.h\"\r\nint foo() { \r\n return y;\r\n}\r\n"; //$NON-NLS-1$ + IFile file = importFile("testSimpleOpenDeclaration2.cpp", code); //$NON-NLS-1$ int offset = code.indexOf("y;"); //$NON-NLS-1$ IASTNode def = testCtrl_F3(file, offset); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsCTagsIndexer.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsCTagsIndexer.java index d73217744c5..c208f23339b 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsCTagsIndexer.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsCTagsIndexer.java @@ -150,9 +150,9 @@ public class CSelectionTestsCTagsIndexer extends BaseSelectionTestsIndexer public void testSimpleOpenDeclaration2() throws Exception { String header = "int x;\r\n // comment \r\nint y() { return 1; }\r\n /* comment */ \r\n int z;\r\n"; //$NON-NLS-1$ - importFile("test.h", header); //$NON-NLS-1$ + importFile("testSimpleOpenDeclaration2.h", header); //$NON-NLS-1$ String code = "int foo() { \n return y();\n}\n"; //$NON-NLS-1$ - IFile file = importFile("test.c", code); //$NON-NLS-1$ + IFile file = importFile("testSimpleOpenDeclaration2.c", code); //$NON-NLS-1$ int offset = code.indexOf("y();\n}\n"); //$NON-NLS-1$ ISelection def = testCtrl_F3Selection(file, offset); diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java index 056e57a3606..0a686d810b2 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsDOMIndexer.java @@ -144,9 +144,9 @@ public class CSelectionTestsDOMIndexer extends BaseSelectionTestsIndexer impleme public void testSimpleOpenDeclaration2() throws Exception { String header = "int x;\r\n // comment \r\n int y() { return 1; } /* comment */ \r\n int z; \r\n"; //$NON-NLS-1$ - importFile("test.h", header); //$NON-NLS-1$ + importFile("testSimpleOpenDeclaration2.h", header); //$NON-NLS-1$ String code = "int foo() { \n return y();\n}\n"; //$NON-NLS-1$ - IFile file = importFile("test.c", code); + IFile file = importFile("testSimpleOpenDeclaration2.c", code); int offset = code.indexOf("y();\n}\n"); IASTNode def = testCtrl_F3(file, offset);