mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
minor fixes to tests
This commit is contained in:
parent
3fea475657
commit
e250ee6a33
2 changed files with 11 additions and 5 deletions
|
@ -161,7 +161,7 @@ public class CallHierarchyBugs extends CallHierarchyBaseTest {
|
||||||
// public:
|
// public:
|
||||||
// void vmethod();
|
// void vmethod();
|
||||||
// void method();
|
// void method();
|
||||||
// }
|
// };
|
||||||
// void vrefs() {
|
// void vrefs() {
|
||||||
// Base* b= 0;
|
// Base* b= 0;
|
||||||
// b->vmethod(); b->method();
|
// b->vmethod(); b->method();
|
||||||
|
@ -221,7 +221,7 @@ public class CallHierarchyBugs extends CallHierarchyBaseTest {
|
||||||
// class Derived : public Base {
|
// class Derived : public Base {
|
||||||
// public:
|
// public:
|
||||||
// void vmethod();
|
// void vmethod();
|
||||||
// }
|
// };
|
||||||
// void vrefs() {
|
// void vrefs() {
|
||||||
// Base* b= 0;
|
// Base* b= 0;
|
||||||
// b->vmethod();
|
// b->vmethod();
|
||||||
|
|
|
@ -28,7 +28,13 @@ import org.eclipse.cdt.core.testplugin.CProjectHelper;
|
||||||
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
||||||
import org.eclipse.cdt.internal.ui.editor.CElementHyperlinkDetector;
|
import org.eclipse.cdt.internal.ui.editor.CElementHyperlinkDetector;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This test just checks that hyperlinks are created in the right
|
||||||
|
* places. It does not test that the hyperlinks actually take you
|
||||||
|
* to the right place.
|
||||||
|
*
|
||||||
|
* @author Mike Kucera
|
||||||
|
*/
|
||||||
public class HyperlinkTest extends TestCase {
|
public class HyperlinkTest extends TestCase {
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,9 +52,9 @@ public class HyperlinkTest extends TestCase {
|
||||||
" int getY(); \n" +
|
" int getY(); \n" +
|
||||||
" private: \n" +
|
" private: \n" +
|
||||||
" int x, y; \n" +
|
" int x, y; \n" +
|
||||||
"} \n" +
|
"}; \n" +
|
||||||
"int main() { \n" +
|
"int main() { \n" +
|
||||||
" char[] str = \"STRING LITERAL\"; \n" +
|
" char* str = \"STRING LITERAL\"; \n" +
|
||||||
"} \n";
|
"} \n";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue