Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2004-10-04 12:42:44 +0000
committerDani Megert2004-10-04 12:42:44 +0000
commita0329ee97adaf0587ecb8fc5504bd12841fd3e45 (patch)
tree6617068e3cf68f8800c6fa86e6c99403a1b1dfd3 /org.eclipse.ui.editors.tests/src
parent77dfb01cd74f6a54b7989e356a0cca1986d69146 (diff)
downloadeclipse.platform.text-a0329ee97adaf0587ecb8fc5504bd12841fd3e45.tar.gz
eclipse.platform.text-a0329ee97adaf0587ecb8fc5504bd12841fd3e45.tar.xz
eclipse.platform.text-a0329ee97adaf0587ecb8fc5504bd12841fd3e45.zip
Register tests
Diffstat (limited to 'org.eclipse.ui.editors.tests/src')
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorsTestSuite.java2
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorsTestSuite.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorsTestSuite.java
index 1577fe96d..f47f06da9 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorsTestSuite.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorsTestSuite.java
@@ -24,6 +24,8 @@ public class EditorsTestSuite extends TestSuite {
TestSuite suite = new TestSuite("Test Suite for org.eclipse.ui.editors"); //$NON-NLS-1$
//$JUnit-BEGIN$
suite.addTest(ChainedPreferenceStoreTest.suite());
+ suite.addTest(EncodingChangeTests.suite());
+ suite.addTest(GotoLineTest.suite());
suite.addTest(SegmentedModeTest.suite());
//$JUnit-END$
return suite;
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
index f9e3535a0..da17057c9 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
@@ -163,8 +163,9 @@ public class EncodingChangeTests extends TestCase {
ITextFileBuffer fileBuffer= FileBuffers.getTextFileBufferManager().getTextFileBuffer(fFile.getFullPath());
DefaultEncodingSupport encodingSupport= (DefaultEncodingSupport)editor.getAdapter(IEncodingSupport.class);
String expected= encodingSupport.getStatusMessage(fileBuffer.getStatus());
- ScrolledComposite composite= (ScrolledComposite)accessor.get("fStatusControl");
- Label statusText= (Label)((Composite)composite.getContent()).getChildren()[5];
+ Composite composite= (Composite)accessor.get("fStatusControl");
+ ScrolledComposite scrolledComposite= (ScrolledComposite)composite.getChildren()[0];
+ Label statusText= (Label)((Composite)scrolledComposite.getContent()).getChildren()[5];
String actual= statusText.getText();
assertEquals(expected, actual);
} else

Back to the top