Skip to content

Commit 3794cd7

Browse files
jonahgrahamakurtakov
authored andcommitted
Tag all gtk4-todo tests
1 parent a1a65df commit 3794cd7

File tree

9 files changed

+26
-1
lines changed

9 files changed

+26
-1
lines changed

tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug336238_ShellSetBoundFailTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
import static org.junit.jupiter.api.Assertions.assertEquals;
1818

1919
import org.eclipse.swt.widgets.Shell;
20+
import org.junit.jupiter.api.Tag;
2021
import org.junit.jupiter.api.Test;
2122

2223
public class Bug336238_ShellSetBoundFailTest {
2324

2425
static int cycles = 100;
2526

27+
@Tag("gtk4-todo")
2628
@Test
2729
public void testSetBounds() {
2830

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
@Suite(failIfNoTests = false)
2424
@SelectClasses({
25-
// AllNonBrowserTests.class,
25+
AllNonBrowserTests.class,
2626
AllBrowserTests.class
2727
})
2828
public class AllTests {

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,7 @@ public void test_getLineHeight() {
11661166
assertTrue(text.getLineHeight() > 0);
11671167
}
11681168

1169+
@Tag("gtk4-todo")
11691170
@Test
11701171
public void test_getLineIndex () {
11711172
test_getLineIndex(text);
@@ -1252,6 +1253,7 @@ void test_getLineIndex (StyledText text) {
12521253
assertEquals(0, text.getLineIndex(100));
12531254
}
12541255

1256+
@Tag("gtk4-todo")
12551257
@Test
12561258
public void test_getLinePixel () {
12571259
test_getLinePixel(text);
@@ -5394,6 +5396,7 @@ public void test_insertInBlockSelection() {
53945396
+ System.lineSeparator()));
53955397
}
53965398

5399+
@Tag("gtk4-todo")
53975400
@Test
53985401
public void test_setStyleRanges_render() throws InterruptedException {
53995402
assumeFalse(SwtTestUtil.isCocoa, "Bug 553090 prevents test to work on Mac");
@@ -5424,6 +5427,7 @@ public void test_setStyleRanges_render() throws InterruptedException {
54245427
/**
54255428
* Test LineStyleListener which provides styles but no ranges.
54265429
*/
5430+
@Tag("gtk4-todo")
54275431
@Test
54285432
public void test_lineStyleListener_styles_render() throws InterruptedException {
54295433
assumeFalse(SwtTestUtil.isCocoa, "Bug 536588 prevents test to work on Mac");
@@ -5449,6 +5453,7 @@ public void test_lineStyleListener_styles_render() throws InterruptedException {
54495453
/**
54505454
* Test LineStyleListener which provides styles and ranges.
54515455
*/
5456+
@Tag("gtk4-todo")
54525457
@Test
54535458
public void test_lineStyleListener_stylesAndRanges_render() throws InterruptedException {
54545459
assumeFalse(SwtTestUtil.isCocoa, "Bug 536588 prevents test to work on Mac");
@@ -5475,6 +5480,7 @@ public void test_lineStyleListener_stylesAndRanges_render() throws InterruptedEx
54755480
/**
54765481
* Test LineStyleListener which provides invalid styles with invalid start or length.
54775482
*/
5483+
@Tag("gtk4-todo")
54785484
@Test
54795485
public void test_lineStyleListener_invalidStyles_render() throws InterruptedException {
54805486
assumeFalse(SwtTestUtil.isCocoa, "Bug 536588 prevents test to work on Mac");
@@ -5658,6 +5664,7 @@ public void test_consistency_DragDetect () {
56585664
* Such a problem was once caused with bug 547532 and discovered along bug 549110.
56595665
* </p>
56605666
*/
5667+
@Tag("gtk4-todo")
56615668
@Test
56625669
public void test_GlyphMetricsOnTab_Bug549110() throws InterruptedException {
56635670
assumeFalse(SwtTestUtil.isCocoa, "Bug 536588 prevents test to work on Mac");
@@ -5732,6 +5739,7 @@ public void test_InsertWhenDisabled() {
57325739
* Bug 551335 - [StyledText] setStyleRanges reset less cache than necessary
57335740
* Bug 551336 - [StyledText] resetting styles does not reset rendering
57345741
*/
5742+
@Tag("gtk4-todo")
57355743
@Test
57365744
public void test_bug551335_lostStyles() throws InterruptedException {
57375745
assumeFalse(SwtTestUtil.isCocoa, "Bug 536588 prevents test to work on Mac");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public void test_nativeToJava() throws Exception {
194194
assertMyTypeEquals(test, getContents());
195195
}
196196

197+
@Tag("gtk4-todo")
197198
@Order(1)
198199
@Test
199200
@DisabledOnOs(value = OS.MAC, disabledReason = """

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.eclipse.swt.graphics.Rectangle;
3232
import org.eclipse.swt.printing.Printer;
3333
import org.eclipse.swt.printing.PrinterData;
34+
import org.junit.jupiter.api.Tag;
3435
import org.junit.jupiter.api.Test;
3536

3637
/**
@@ -126,6 +127,7 @@ public void test_getPrinterData() {
126127
printer.dispose();
127128
}
128129

130+
@Tag("gtk4-todo")
129131
@Test
130132
public void test_getPrinterList() {
131133
PrinterData data = Printer.getDefaultPrinterData();

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.eclipse.swt.widgets.Shell;
4646
import org.eclipse.swt.widgets.Synchronizer;
4747
import org.eclipse.test.Screenshots;
48+
import org.junit.jupiter.api.Tag;
4849
import org.junit.jupiter.api.Test;
4950
import org.junit.jupiter.api.TestInfo;
5051
import org.junit.jupiter.api.condition.DisabledOnOs;
@@ -337,6 +338,7 @@ public void test_getCursorControl() {
337338
}
338339
}
339340

341+
@Tag("gtk4-todo")
340342
@Test
341343
public void test_getCursorLocation() {
342344
Display display = new Display();
@@ -1235,6 +1237,7 @@ public void test_setAppNameLjava_lang_String() {
12351237
Display.setAppName("My Application Name");
12361238
}
12371239

1240+
@Tag("gtk4-todo")
12381241
@Test
12391242
public void test_setCursorLocationII(TestInfo info) {
12401243
Display display = new Display();
@@ -1261,6 +1264,7 @@ public void test_setCursorLocationII(TestInfo info) {
12611264
}
12621265
}
12631266

1267+
@Tag("gtk4-todo")
12641268
@Test
12651269
public void test_setCursorLocationLorg_eclipse_swt_graphics_Point(TestInfo info) {
12661270
Display display = new Display();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.eclipse.swt.widgets.Menu;
3030
import org.eclipse.swt.widgets.MenuItem;
3131
import org.junit.jupiter.api.BeforeEach;
32+
import org.junit.jupiter.api.Tag;
3233
import org.junit.jupiter.api.Test;
3334

3435
/**
@@ -194,6 +195,7 @@ public void test_setEnabledZ() {
194195
assertFalse(menuItem.getEnabled());
195196
}
196197

198+
@Tag("gtk4-todo")
197199
@Override
198200
@Test
199201
public void test_setImageLorg_eclipse_swt_graphics_Image() {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.eclipse.swt.widgets.Shell;
4646
import org.eclipse.swt.widgets.Text;
4747
import org.junit.jupiter.api.BeforeEach;
48+
import org.junit.jupiter.api.Tag;
4849
import org.junit.jupiter.api.Test;
4950

5051
/**
@@ -654,6 +655,7 @@ public void test_setBoundsLorg_eclipse_swt_graphics_Rectangle() {
654655
* Regression test for Bug 436841 - [GTK3] FocusOut/In and Activate/Deactivate
655656
* events when opening context menu. Only applicable on GTK x11.
656657
*/
658+
@Tag("gtk4-todo")
657659
@Test
658660
public void test_activateEventSend() throws InterruptedException {
659661
assumeTrue((SwtTestUtil.isGTK && SwtTestUtil.isX11()) || SwtTestUtil.isGTK4(),
@@ -706,6 +708,7 @@ public void test_activateEventSend() throws InterruptedException {
706708
*
707709
* Disabled on Wayland as there is no absolute positioning.
708710
*/
711+
@Tag("gtk4-todo")
709712
@Test
710713
public void test_setBounds() throws Exception {
711714
if (SwtTestUtil.isX11()) {
@@ -957,6 +960,7 @@ public void test_bug558652_scrollBarNPE() {
957960
}
958961
}
959962

963+
@Tag("gtk4-todo")
960964
@Test
961965
public void test_Issue450_NoShellActivateOnSetFocus() {
962966
final String key = "org.eclipse.swt.internal.activateShellOnForceFocus";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ public void test_setEditableZ() {
11021102
assertTrue(text.getEditable());
11031103
}
11041104

1105+
@Tag("gtk4-todo")
11051106
@Override
11061107
@Test
11071108
public void test_setFontLorg_eclipse_swt_graphics_Font() {
@@ -1443,6 +1444,7 @@ public void test_consistency_DragDetect () {
14431444
consistencyEvent(30, 10, 50, 0, ConsistencyUtility.MOUSE_DRAG);
14441445
}
14451446

1447+
@Tag("gtk4-todo")
14461448
@Tag("clipboard")
14471449
@Test
14481450
public void test_consistency_Segments () {

0 commit comments

Comments
 (0)