Skip to content

Commit

Permalink
Adjust bounds checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dsand47 committed May 25, 2020
1 parent 90a6a31 commit 36c1524
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions java/test/jmri/jmrit/display/layoutEditor/LayoutEditorTest.java
Expand Up @@ -1033,13 +1033,12 @@ public void testScrollViewPort() {
int y = (int) scrollBounds.getY();
int w = (int) scrollBounds.getWidth();
int h = (int) scrollBounds.getHeight();
log.warn("scrollBounds: {} :: {} :: {} :: {}", x, y, w, h);
// scrollBounds values are platform dependent
Assert.assertTrue("scroll bound x", x < 3);
Assert.assertTrue("scroll bound y", y < 3);
Assert.assertEquals("scroll bound w", 1436, w);
Assert.assertEquals("scroll bound h", 874, h);
// scrollBounds values are platform and OS dependent so specific values cannot be determined.
Assert.assertTrue("scroll bound x", x > 0);
Assert.assertTrue("scroll bound y", y > 0);
Assert.assertTrue("scroll bound w", w > 0);
Assert.assertTrue("scroll bound h", h > 0);
}

private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LayoutEditorTest.class.getName());
// private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LayoutEditorTest.class.getName());
}

0 comments on commit 36c1524

Please sign in to comment.