mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Fix semantic highlighting tests timing issue
This commit is contained in:
parent
8cdcd5289f
commit
41c01a6c38
1 changed files with 3 additions and 2 deletions
|
@ -140,8 +140,9 @@ public class AbstractSemanticHighlightingTest extends TestCase {
|
|||
fCurrentHighlighting= semanticHighlighting;
|
||||
enableSemanticHighlighting(semanticHighlighting);
|
||||
EditorTestHelper.forceReconcile(fSourceViewer);
|
||||
assertTrue(EditorTestHelper.joinReconciler(fSourceViewer, 500, 10000, 100));
|
||||
EditorTestHelper.runEventQueue(100);
|
||||
assertTrue(EditorTestHelper.joinReconciler(fSourceViewer, 500, 10000, 500));
|
||||
// give enough time to finish updating the highlighting positions
|
||||
EditorTestHelper.runEventQueue(500);
|
||||
}
|
||||
|
||||
private void enableSemanticHighlighting(String preferenceKey) {
|
||||
|
|
Loading…
Add table
Reference in a new issue