mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-17 14:05:23 +02:00
Bug 398706. Adjusted two tests.
This commit is contained in:
parent
4346a7377f
commit
ea08a27209
1 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2000, 2011 IBM Corporation and others.
|
* Copyright (c) 2000, 2013 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -26,7 +26,6 @@ import org.eclipse.cdt.internal.ui.editor.SemanticHighlightings;
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
||||||
|
|
||||||
private static final boolean PRINT_POSITIONS= false;
|
private static final boolean PRINT_POSITIONS= false;
|
||||||
|
|
||||||
private static final Class<?> THIS= SemanticHighlightingTest.class;
|
private static final Class<?> THIS= SemanticHighlightingTest.class;
|
||||||
|
@ -121,7 +120,6 @@ public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
||||||
createPosition(108, 4, 26),
|
createPosition(108, 4, 26),
|
||||||
createPosition(112, 4, 25),
|
createPosition(112, 4, 25),
|
||||||
createPosition(117, 4, 32),
|
createPosition(117, 4, 32),
|
||||||
createPosition(118, 23, 9),
|
|
||||||
createPosition(122, 4, 15),
|
createPosition(122, 4, 15),
|
||||||
createPosition(130, 13, 9),
|
createPosition(130, 13, 9),
|
||||||
};
|
};
|
||||||
|
@ -256,6 +254,7 @@ public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
||||||
createPosition(112, 4, 14),
|
createPosition(112, 4, 14),
|
||||||
createPosition(117, 4, 14),
|
createPosition(117, 4, 14),
|
||||||
createPosition(118, 4, 9),
|
createPosition(118, 4, 9),
|
||||||
|
createPosition(118, 23, 9),
|
||||||
createPosition(120, 4, 8),
|
createPosition(120, 4, 8),
|
||||||
createPosition(129, 4, 8),
|
createPosition(129, 4, 8),
|
||||||
createPosition(147, 42, 7),
|
createPosition(147, 42, 7),
|
||||||
|
@ -297,7 +296,6 @@ public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
||||||
assertEqualPositions(expected, actual);
|
assertEqualPositions(expected, actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void testGlobalVariableHighlighting() throws Exception {
|
public void testGlobalVariableHighlighting() throws Exception {
|
||||||
setUpSemanticHighlighting(SemanticHighlightings.GLOBAL_VARIABLE);
|
setUpSemanticHighlighting(SemanticHighlightings.GLOBAL_VARIABLE);
|
||||||
Position[] actual= getSemanticHighlightingPositions();
|
Position[] actual= getSemanticHighlightingPositions();
|
||||||
|
@ -421,5 +419,4 @@ public class SemanticHighlightingTest extends AbstractSemanticHighlightingTest {
|
||||||
if (PRINT_POSITIONS) System.out.println(toString(actual));
|
if (PRINT_POSITIONS) System.out.println(toString(actual));
|
||||||
assertEqualPositions(expected, actual);
|
assertEqualPositions(expected, actual);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue