View | Details | Raw Unified | Return to bug 313080
Collapse All | Expand All

(-)src/org/eclipse/jdt/text/tests/performance/PerformanceTestSuite.java (-2 / +4 lines)
Lines 48-55 Link Here
48
		addTest(DocumentLineDifferInitializationTest.suite());
48
		addTest(DocumentLineDifferInitializationTest.suite());
49
		addTest(SynchronizedLineDifferInitializationTest.suite());
49
		addTest(SynchronizedLineDifferInitializationTest.suite());
50
		addTest(DocumentLineDifferModificationTest.suite());
50
		addTest(DocumentLineDifferModificationTest.suite());
51
		addTest(new OpenJavaEditorTest.Setup(EmptyTestCase.suite(), false)); // the actual test runs in its own workbench (see test.xml)
52
		
53
		addTest(SpellCheckingTest.suite());
51
		addTest(SpellCheckingTest.suite());
52
53
54
		/* !!! IMPORTANT NOTE: The following test must be the last one !!! */
55
		addTest(new OpenJavaEditorTest.Setup(EmptyTestCase.suite(), false)); // the actual test runs in its own workbench (see test.xml)
54
	}
56
	}
55
}
57
}
(-)src/org/eclipse/jdt/text/tests/performance/SpellCheckingTest.java (+5 lines)
Lines 26-31 Link Here
26
import org.eclipse.core.filebuffers.ITextFileBufferManager;
26
import org.eclipse.core.filebuffers.ITextFileBufferManager;
27
import org.eclipse.core.filebuffers.LocationKind;
27
import org.eclipse.core.filebuffers.LocationKind;
28
28
29
import org.eclipse.jface.preference.IPreferenceStore;
30
29
import org.eclipse.jface.text.IDocument;
31
import org.eclipse.jface.text.IDocument;
30
32
31
import org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector;
33
import org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector;
Lines 66-72 Link Here
66
		super.setUp();
68
		super.setUp();
67
		setWarmUpRuns(WARM_UP_RUNS);
69
		setWarmUpRuns(WARM_UP_RUNS);
68
		setMeasuredRuns(MEASURED_RUNS);
70
		setMeasuredRuns(MEASURED_RUNS);
71
69
		PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, Integer.MAX_VALUE);
72
		PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, Integer.MAX_VALUE);
73
		EditorsUI.getPreferenceStore().putValue(SpellingService.PREFERENCE_SPELLING_ENABLED, IPreferenceStore.TRUE);
70
74
71
		fSpellingContext= new SpellingContext();
75
		fSpellingContext= new SpellingContext();
72
		fSpellingContext.setContentType(Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT));
76
		fSpellingContext.setContentType(Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT));
Lines 87-92 Link Here
87
	protected void tearDown() throws Exception {
91
	protected void tearDown() throws Exception {
88
		super.tearDown();
92
		super.tearDown();
89
		PreferenceConstants.getPreferenceStore().setToDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD);
93
		PreferenceConstants.getPreferenceStore().setToDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD);
94
		EditorsUI.getPreferenceStore().setToDefault(SpellingService.PREFERENCE_SPELLING_ENABLED);
90
	}
95
	}
91
96
92
	public void test() throws Exception {
97
	public void test() throws Exception {

Return to bug 313080