summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2004-02-10 21:19:32 +0000
committerFelipe Heidrich <fheidric>2004-02-10 21:19:32 +0000
commit5776da4fad8f77648468b191bf401a6dbaa503c7 (patch)
treeb554cf317782b6f676097ddfd3bc85a64bb78571 /tests
parentcafb334312f52d6ad66f6ce068e8f85aafccf77f (diff)
downloadeclipse.platform.swt-5776da4fad8f77648468b191bf401a6dbaa503c7.tar.gz
eclipse.platform.swt-5776da4fad8f77648468b191bf401a6dbaa503c7.tar.xz
eclipse.platform.swt-5776da4fad8f77648468b191bf401a6dbaa503c7.zip
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java2
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
index 0546ba6155..7213b49668 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
@@ -705,7 +705,7 @@ public void test_setItems$Ljava_lang_String() {
public void test_setOrientationI() {
combo.setOrientation(SWT.RIGHT_TO_LEFT);
- if (SWT.getPlatform().equals("win32")) {
+ if ((combo.getStyle() & SWT.MIRRORED) != 0) {
assertTrue(":a:", combo.getOrientation()==SWT.RIGHT_TO_LEFT);
}
combo.setOrientation(SWT.LEFT_TO_RIGHT);
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
index 96017d55e4..9ebdb5f73c 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
@@ -923,7 +923,7 @@ public void test_setFontLorg_eclipse_swt_graphics_Font() {
public void test_setOrientationI() {
text.setOrientation(SWT.RIGHT_TO_LEFT);
- if (SWT.getPlatform().equals("win32")) {
+ if ((text.getStyle() & SWT.MIRRORED) != 0) {
assertTrue(":a:", text.getOrientation()==SWT.RIGHT_TO_LEFT);
}
text.setOrientation(SWT.LEFT_TO_RIGHT);