Skip to content

Commit 8826ca1

Browse files
committed
Clear Clipboard AfterEach in tests
This is a workaround for the issue described in #2675 Part of #2126
1 parent 4a5b9e1 commit 8826ca1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/ClipboardBase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public void tearDown() throws Exception {
168168
}
169169
} finally {
170170
if (clipboard != null) {
171+
supportedClipboardIds().forEach(clipboard::clearContents);
171172
clipboard.dispose();
172173
}
173174
if (shell != null) {

0 commit comments

Comments
 (0)