mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
removed mandatory sleeps to speed-up tests
Change-Id: Id55eb28cc5f98ccfaff9ab88eb6fff87352519d2
This commit is contained in:
parent
b2f459e075
commit
10cb69009a
2 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ public class SemanticHighlightingTest extends TestCase {
|
|||
BaseTestCase.waitForIndexer(fCProject);
|
||||
fEditor= (CEditor) EditorTestHelper.openInEditor(ResourceTestHelper.findFile("/SHTest/" + sourceFileName), true);
|
||||
fSourceViewer= EditorTestHelper.getSourceViewer(fEditor);
|
||||
assertTrue(EditorTestHelper.joinReconciler(fSourceViewer, 500, 10000, 100));
|
||||
assertTrue(EditorTestHelper.joinReconciler(fSourceViewer, 0, 10000, 100));
|
||||
EditorTestHelper.joinBackgroundActivities();
|
||||
|
||||
fIndex = CCorePlugin.getIndexManager().getIndex(fCProject);
|
||||
|
|
|
@ -205,7 +205,7 @@ public class BaseSelectionTestsIndexer extends BaseUITestCase {
|
|||
|
||||
if (part instanceof CEditor) {
|
||||
CEditor editor= (CEditor) part;
|
||||
EditorTestHelper.joinReconciler(EditorTestHelper.getSourceViewer(editor), 100, 5000, 10);
|
||||
EditorTestHelper.joinReconciler(EditorTestHelper.getSourceViewer(editor), 0, 5000, 10);
|
||||
((AbstractTextEditor)part).getSelectionProvider().setSelection(new TextSelection(offset,length));
|
||||
|
||||
final OpenDeclarationsAction action = (OpenDeclarationsAction) editor.getAction("OpenDeclarations"); //$NON-NLS-1$
|
||||
|
@ -215,7 +215,7 @@ public class BaseSelectionTestsIndexer extends BaseUITestCase {
|
|||
part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
|
||||
assertTrue (part instanceof CEditor);
|
||||
editor= (CEditor) part;
|
||||
EditorTestHelper.joinReconciler(EditorTestHelper.getSourceViewer(editor), 100, 5000, 10);
|
||||
EditorTestHelper.joinReconciler(EditorTestHelper.getSourceViewer(editor), 0, 5000, 10);
|
||||
|
||||
// the action above should highlight the declaration, so now retrieve it and use that selection to get the IASTName selected on the TU
|
||||
ISelection sel= editor.getSelectionProvider().getSelection();
|
||||
|
|
Loading…
Add table
Reference in a new issue