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
@@ -343,8 +343,10 @@ public void test_getCursorLocation() {
343
343
try {
344
344
Pointpt = display.getCursorLocation();
345
345
assertNotNull(pt);
346
-
assertTrue(pt.x >= 0);
347
-
assertTrue(pt.y >= 0);
346
+
assertTrue(pt.x >= 0,
347
+
"Display's cursor location x co-ordinate should be positive. But it is: " + pt.x);
348
+
assertTrue(pt.y >= 0,
349
+
"Display's cursor location y co-ordinate should be positive. But it is: " + pt.y);
0 commit comments