Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;

@Suite
@Suite(failIfNoTests = false)
@SelectClasses({
Test_org_eclipse_swt_browser_Browser.class,
Test_org_eclipse_swt_browser_Browser_IE.class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Suite for testing all of the graphics test cases.
*/
@Suite
@Suite(failIfNoTests = false)
@SelectClasses({ //
// Sorted list of tests
Test_org_eclipse_swt_graphics_Color.class, //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Suite for running most SWT test cases (all except for browser tests).
*/
@Suite
@Suite(failIfNoTests = false)
@SelectClasses({ //
// Basic tests
Test_org_eclipse_swt_SWT.class, //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Suite for running all SWT test cases.
*/
@Suite
@Suite(failIfNoTests = false)
@SelectClasses({
AllNonBrowserTests.class,
AllBrowserTests.class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

/**
Expand Down Expand Up @@ -75,6 +76,7 @@ public void test_ConstructorLorg_eclipse_swt_widgets_CompositeI() {
assertNotNull(ccombo.getAccessible());
}

@Tag("clipboard")
@Test
public void test_copy() {
if (SwtTestUtil.isCocoa) {
Expand All @@ -93,6 +95,7 @@ public void test_copy() {
assertEquals("23123456", ccombo.getText());
}

@Tag("clipboard")
@Test
public void test_cut() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -130,6 +133,7 @@ public void test_isFocusControl() {
}
}

@Tag("clipboard")
@Test
public void test_paste() {
if (SwtTestUtil.isCocoa) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.widgets.Shell;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

/**
Expand All @@ -40,6 +41,7 @@ public void setUp() {
shell.open();
}

@Tag("clipboard")
@Test
public void test_lineGetBackgroundLorg_eclipse_swt_custom_LineBackgroundEvent() {
LineBackgroundListener listener = event -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Widget;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

/**
Expand Down Expand Up @@ -323,6 +324,7 @@ public void test_removeCaretListener_CaretListenerNotCalled() {
assertFalse(listenerCalled);
}

@Tag("clipboard")
@Test
public void test_addLineBackgroundListenerLorg_eclipse_swt_custom_LineBackgroundListener() {
String line = "Line1";
Expand All @@ -348,6 +350,7 @@ public void test_addLineBackgroundListenerLorg_eclipse_swt_custom_LineBackground
assertFalse(listenerCalled);
}

@Tag("clipboard")
@Test
public void test_addLineStyleListenerLorg_eclipse_swt_custom_LineStyleListener() {
String line = "Line1";
Expand Down Expand Up @@ -687,6 +690,8 @@ public void test_marginsCorrect(){
assertEquals(leftMargin, singleText.getLeftMargin());
singleText.dispose();
}

@Tag("clipboard")
@Test
public void test_copy() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -763,6 +768,7 @@ private static StyleRange getRangeForText(String str, String subStr) {
return null;
}

@Tag("clipboard")
@Test
public void test_clipboardWithHtml() {
String content = "This is red, background yellow, bold, italic, underscore, big, small, super, sub.";
Expand Down Expand Up @@ -814,6 +820,7 @@ public void test_clipboardWithHtml() {
fontArial8.dispose();
}

@Tag("clipboard")
@Test
public void test_cut() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -2239,6 +2246,7 @@ public void test_invokeActionI() {
text.invokeAction(ST.TOGGLE_OVERWRITE);
}

@Tag("clipboard")
@Test
public void test_paste(){
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -5265,6 +5273,7 @@ public void test_selectAllInBlockSelectionMode() {
assertEquals("Test" + System.lineSeparator(), text.getSelectionText());
}

@Tag("clipboard")
@Test
public void test_cutTextInBlockSelection() {
text.setText(blockSelectionTestText());
Expand All @@ -5281,6 +5290,7 @@ public void test_cutTextInBlockSelection() {
+ "Sample Test Selection" + System.lineSeparator()));
}

@Tag("clipboard")
@Test
public void test_pasteInsertsTextInBlockSelectionAsBlock() {
text.setText(blockSelectionTestText());
Expand All @@ -5300,6 +5310,7 @@ public void test_pasteInsertsTextInBlockSelectionAsBlock() {
+ blockSelectionTestTextOneLine()));
}

@Tag("clipboard")
@Test
public void test_cutAndPasteInBlockSelection() {
text.setText(blockSelectionTestText());
Expand Down Expand Up @@ -5811,6 +5822,7 @@ public void test_bug551335_lostStyles() throws InterruptedException {
* from clipboard. It should be still possible to paste text which was copied
* from a now disposed/unavailable StyledText.
*/
@Tag("clipboard")
@Test
public void test_clipboardCarryover() {
assumeFalse(SwtTestUtil.isCocoa, "Disabled on Mac because similar clipboard tests are also disabled.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.eclipse.test.Screenshots;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.AfterTestExecutionCallback;
import org.junit.jupiter.api.extension.RegisterExtension;
Expand Down Expand Up @@ -220,6 +221,7 @@ public void test_MultiCarets_Delete() {
assertArrayEquals(new int[] { 2, 0, 7, 0 }, text.getSelectionRanges());
}

@Tag("clipboard")
@Test
public void test_MultiCarets_CopyPaste() {
text.setText("1\n2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

/**
Expand Down Expand Up @@ -222,6 +223,7 @@ public void test_computeSizeIIZ() {
// super class test is sufficient
}

@Tag("clipboard")
@Test
public void test_copy() {
if (SwtTestUtil.isCocoa) {
Expand All @@ -245,6 +247,7 @@ public void test_copy() {
assertEquals("23123456", combo.getText());
}

@Tag("clipboard")
@Test
public void test_cut() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -492,6 +495,7 @@ public void test_indexOfLjava_lang_StringI() {
assertEquals(i, combo.indexOf("fred" + i, i));
}

@Tag("clipboard")
@Test
public void test_paste() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -1036,6 +1040,7 @@ public void test_consistency_DragDetect () {
consistencyEvent(10, 5, 20, 10, ConsistencyUtility.MOUSE_DRAG);
}

@Tag("clipboard")
@Test
public void test_consistency_Segments () {
if (!SwtTestUtil.isWindows) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Widget;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

/**
Expand Down Expand Up @@ -263,6 +264,7 @@ public void test_computeSizeIIZ() {
// super class test is sufficient
}

@Tag("clipboard")
@Test
public void test_copy() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -928,6 +930,7 @@ public void test_isVisible() {
assertFalse(control.isVisible());
}

@Tag("clipboard")
@Test
public void test_paste() {
if (SwtTestUtil.isCocoa) {
Expand Down Expand Up @@ -1429,6 +1432,7 @@ public void test_consistency_DragDetect () {
consistencyEvent(30, 10, 50, 0, ConsistencyUtility.MOUSE_DRAG);
}

@Tag("clipboard")
@Test
public void test_consistency_Segments () {
if (SwtTestUtil.isCocoa) {
Expand Down
Loading