diff options
Diffstat (limited to 'tests/org.eclipse.swt.tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java index b30b837c6a..58579583c6 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java @@ -11,6 +11,7 @@ *******************************************************************************/ package org.eclipse.swt.tests.junit; +import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -73,6 +74,16 @@ public void test_getClientArea() { } @Test +public void test_getZoom() { + int zoom = primary.getZoom(); + assertNotEquals(0, zoom); + for (int i = 0; i < monitors.length; i++) { + zoom = monitors[i].getZoom(); + assertNotEquals(0, zoom); + } +} + +@Test public void test_hashCode() { for (int i = 0; i < monitors.length; i++) { if (primary.equals(monitors[i])) { |