diff options
author | Nick Sandonato | 2014-07-30 15:08:37 +0000 |
---|---|---|
committer | Nick Sandonato | 2014-07-30 15:40:24 +0000 |
commit | 437749e1bdceb12512ccb72b05a9f9bc87b9c177 (patch) | |
tree | a3a94fec580c494d614e5aa6a986bdf7ccc79f0c /tests | |
parent | b614e38a974e65d83dff4e3c81bf180d7079b5b9 (diff) | |
download | webtools.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"
This reverts commit b614e38a974e65d83dff4e3c81bf180d7079b5b9.
This reverts commit 144375a8fa43eef790c1d20d2aa22ba1172e9670.
This reverts commit 9a30bc5055aae29c8fc30d0dbf1da2b2b45e8df1.
This reverts commit 5bb3abdd96ffe6a71b8d969ef3c0b87860b5ae4e.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestStructuredTextEditor.java | 8 |
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); } /** |