1
0
Fork 0
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:
Anton Leherbauer 2006-12-18 11:15:37 +00:00
parent 8cdcd5289f
commit 41c01a6c38

View file

@ -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) {