Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java
index ba1afbcf70..6d438ecba3 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java
@@ -47,8 +47,8 @@ public void test_ConstructorLorg_eclipse_swt_widgets_CompositeI() {
}
int[] cases = {0, SWT.HORIZONTAL, SWT.VERTICAL};
- for (int i = 0; i < cases.length; i++)
- sash = new Sash(shell, cases[i]);
+ for (int style : cases)
+ sash = new Sash(shell, style);
}
@Override
@@ -67,30 +67,30 @@ public void test_setFontLorg_eclipse_swt_graphics_Font() {
Sash sash;
private void createSash() {
- tearDown();
- super.setUp();
- new Button(shell, SWT.PUSH);
- Sash sash = new Sash(shell, SWT.VERTICAL);
- new Button(shell, SWT.PUSH);
- setWidget(sash);
+ tearDown();
+ super.setUp();
+ new Button(shell, SWT.PUSH);
+ Sash sash = new Sash(shell, SWT.VERTICAL);
+ new Button(shell, SWT.PUSH);
+ setWidget(sash);
}
@Test
public void test_consistency_MenuDetect () {
- createSash();
- consistencyEvent(0, 5, 3, 0, ConsistencyUtility.MOUSE_CLICK);
+ createSash();
+ consistencyEvent(0, 5, 3, 0, ConsistencyUtility.MOUSE_CLICK);
}
@Test
public void test_consistency_DragDetect () {
- createSash();
- consistencyEvent(0, 5, 20, 10, ConsistencyUtility.MOUSE_DRAG);
+ createSash();
+ consistencyEvent(0, 5, 20, 10, ConsistencyUtility.MOUSE_DRAG);
}
@Test
public void test_consistency_MouseSelection() {
- createSash();
- consistencyEvent(0, 5, 1, 0, ConsistencyUtility.MOUSE_CLICK);
+ createSash();
+ consistencyEvent(0, 5, 1, 0, ConsistencyUtility.MOUSE_CLICK);
}
}

Back to the top