mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 259015 - Ctrl-click and F3 (Navigate) should have the same semantics
This commit is contained in:
parent
caae636bc1
commit
88e16149d1
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2008 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2009 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -137,8 +137,9 @@ public class HyperlinkTest extends TestCase {
|
|||
// no hyperlinks in macro bodies
|
||||
assertNotHyperlink(CPP_CODE.indexOf("#define") + 1);
|
||||
assertHyperlink(CPP_CODE.indexOf("SOMEMACRO"), CPP_CODE.indexOf("SOMEMACRO"), "SOMEMACRO".length());
|
||||
assertNotHyperlink(CPP_CODE.indexOf("macro_token1") + 1);
|
||||
assertNotHyperlink(CPP_CODE.indexOf("macro_token2") + 1);
|
||||
// see bug 259015
|
||||
// assertNotHyperlink(CPP_CODE.indexOf("macro_token1") + 1);
|
||||
// assertNotHyperlink(CPP_CODE.indexOf("macro_token2") + 1);
|
||||
|
||||
// no hyperlinks for comments
|
||||
assertNotHyperlink(CPP_CODE.indexOf("//") + 1);
|
||||
|
@ -189,7 +190,8 @@ public class HyperlinkTest extends TestCase {
|
|||
assertNotHyperlink(C_CODE_2.indexOf("#else") + 2);
|
||||
assertNotHyperlink(C_CODE_2.indexOf("#endif") + 2);
|
||||
|
||||
assertNotHyperlink(C_CODE_2.indexOf("nothere") + 1);
|
||||
// see bug 259015
|
||||
// assertNotHyperlink(C_CODE_2.indexOf("nothere") + 1);
|
||||
assertHyperlink(C_CODE_2.indexOf("itworks") + 1, C_CODE_2.indexOf("itworks"), "itworks".length());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue