Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNick Sandonato2014-07-30 15:08:37 +0000
committerNick Sandonato2014-07-30 15:40:24 +0000
commit437749e1bdceb12512ccb72b05a9f9bc87b9c177 (patch)
treea3a94fec580c494d614e5aa6a986bdf7ccc79f0c /tests
parentb614e38a974e65d83dff4e3c81bf180d7079b5b9 (diff)
downloadwebtools.sourceediting-437749e1bdceb12512ccb72b05a9f9bc87b9c177.tar.gz
webtools.sourceediting-437749e1bdceb12512ccb72b05a9f9bc87b9c177.tar.xz
webtools.sourceediting-437749e1bdceb12512ccb72b05a9f9bc87b9c177.zip
Revert "[440013] JUnit failures in CBI Build R3_6_Maintenance - get more information from test; only fails remotely"
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java
index 20b81176fa..a87df71f10 100644
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java
+++ b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java
@@ -279,7 +279,6 @@ public class TestStructuredTextEditor extends TestCase {
final int finished[] = new int[]{numberOfJobs};
Job changers[] = new Job[numberOfJobs];
- final int numEdits[] = new int[]{0};
for (int i = 0; i < changers.length; i++) {
changers[i] = new Job("Text Changer " + Integer.toString(i)) {
protected IStatus run(IProgressMonitor monitor) {
@@ -287,9 +286,6 @@ public class TestStructuredTextEditor extends TestCase {
char names[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
for (int j = 0; j < names.length; j++) {
document.replace(insertionPoint + 4 * j, 0, "<" + names[j] + "/>");
- synchronized (numEdits) {
- numEdits[0]++;
- }
}
}
catch (Exception e) {
@@ -313,12 +309,12 @@ public class TestStructuredTextEditor extends TestCase {
openedEditor.getSite().getShell().getDisplay().readAndDispatch();
}
assertTrue("Test timed out", runtime - startTime < timeout);
+
int finalLength = document.getLength();
textFileBuffer.commit(new NullProgressMonitor(), true);
textFileBufferManager.disconnect(file.getFullPath(), LocationKind.IFILE, new NullProgressMonitor());
activePage.closeEditor(openedEditor, false);
- assertEquals("Some non-UI changes did not apply\n" + "Edits: " + numEdits[0] + "\n" + document.get(), testLength, finalLength);
- assertEquals("Did not have the proper number of edits", 50*26, numEdits[0]);
+ assertEquals("Some non-UI changes did not apply", testLength, finalLength);
}
/**

Back to the top