Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 168889 Details for
Bug 313080
SpellCheckingTest#test() runs very fast
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
patch.txt (text/plain), 2.83 KB, created by
Dani Megert
on 2010-05-18 06:00:33 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2010-05-18 06:00:33 EDT
Size:
2.83 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.text.tests >Index: src/org/eclipse/jdt/text/tests/performance/PerformanceTestSuite.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/PerformanceTestSuite.java,v >retrieving revision 1.67 >diff -u -r1.67 PerformanceTestSuite.java >--- src/org/eclipse/jdt/text/tests/performance/PerformanceTestSuite.java 8 Jan 2010 12:57:10 -0000 1.67 >+++ src/org/eclipse/jdt/text/tests/performance/PerformanceTestSuite.java 18 May 2010 09:50:55 -0000 >@@ -48,8 +48,10 @@ > addTest(DocumentLineDifferInitializationTest.suite()); > addTest(SynchronizedLineDifferInitializationTest.suite()); > addTest(DocumentLineDifferModificationTest.suite()); >- addTest(new OpenJavaEditorTest.Setup(EmptyTestCase.suite(), false)); // the actual test runs in its own workbench (see test.xml) >- > addTest(SpellCheckingTest.suite()); >+ >+ >+ /* !!! IMPORTANT NOTE: The following test must be the last one !!! */ >+ addTest(new OpenJavaEditorTest.Setup(EmptyTestCase.suite(), false)); // the actual test runs in its own workbench (see test.xml) > } > } >Index: src/org/eclipse/jdt/text/tests/performance/SpellCheckingTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/SpellCheckingTest.java,v >retrieving revision 1.1 >diff -u -r1.1 SpellCheckingTest.java >--- src/org/eclipse/jdt/text/tests/performance/SpellCheckingTest.java 8 Jan 2010 12:57:10 -0000 1.1 >+++ src/org/eclipse/jdt/text/tests/performance/SpellCheckingTest.java 18 May 2010 09:50:55 -0000 >@@ -26,6 +26,8 @@ > import org.eclipse.core.filebuffers.ITextFileBufferManager; > import org.eclipse.core.filebuffers.LocationKind; > >+import org.eclipse.jface.preference.IPreferenceStore; >+ > import org.eclipse.jface.text.IDocument; > > import org.eclipse.ui.texteditor.spelling.ISpellingProblemCollector; >@@ -66,7 +68,9 @@ > super.setUp(); > setWarmUpRuns(WARM_UP_RUNS); > setMeasuredRuns(MEASURED_RUNS); >+ > PreferenceConstants.getPreferenceStore().setValue(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, Integer.MAX_VALUE); >+ EditorsUI.getPreferenceStore().putValue(SpellingService.PREFERENCE_SPELLING_ENABLED, IPreferenceStore.TRUE); > > fSpellingContext= new SpellingContext(); > fSpellingContext.setContentType(Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT)); >@@ -87,6 +91,7 @@ > protected void tearDown() throws Exception { > super.tearDown(); > PreferenceConstants.getPreferenceStore().setToDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD); >+ EditorsUI.getPreferenceStore().setToDefault(SpellingService.PREFERENCE_SPELLING_ENABLED); > } > > public void test() throws Exception {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 313080
: 168889