You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -342,8 +342,10 @@ public void test_getCursorLocation() {
342
342
try {
343
343
Pointpt = display.getCursorLocation();
344
344
assertNotNull(pt);
345
-
assertTrue(pt.x >= 0);
346
-
assertTrue(pt.y >= 0);
345
+
assertTrue(pt.x >= 0,
346
+
"Display's cursor location x co-ordinate should be positive. But it is: " + pt.x);
347
+
assertTrue(pt.y >= 0,
348
+
"Display's cursor location y co-ordinate should be positive. But it is: " + pt.y);
0 commit comments