Skip to content

Commit f0971e1

Browse files
author
Wenjun Che
committed
RUN-1079: added WindowPositionTest.java
1 parent 7cd3e95 commit f0971e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

21 Bytes
Binary file not shown.

src/test/java/com/openfin/desktop/WindowPositionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public static void setup() throws Exception {
4444
defaultLeft = getRandomNumber();
4545
defaultHeight = getRandomNumber() + 38; // chromium enforces 140/38 as min height/width
4646
defaultWidth = getRandomNumber() + 140;
47-
logger.debug(String.format("default bounds %s %d %d %d %d", appUuid, defaultHeight, defaultWidth, defaultTop, defaultLeft));
4847
}
4948

5049
/**
@@ -99,9 +98,10 @@ private void runAndClose() throws Exception {
9998
assertEquals("shown timeout " + options.getUUID(), shownLatch.getCount(), 0);
10099

101100
WindowBounds bounds = TestUtils.getBounds(application.getWindow());
102-
logger.debug(String.format("shown bounds %d %d %d %d", bounds.getHeight(), bounds.getWidth(), bounds.getTop(), bounds.getLeft()));
103101
if (bounds.getHeight() != defaultHeight || bounds.getWidth() != defaultWidth || bounds.getTop() != defaultTop || bounds.getLeft() != defaultLeft) {
104102
successRun = false;
103+
logger.info(String.format("default bounds %s %d %d %d %d", appUuid, defaultHeight, defaultWidth, defaultTop, defaultLeft));
104+
logger.info(String.format("shown bounds %d %d %d %d", bounds.getHeight(), bounds.getWidth(), bounds.getTop(), bounds.getLeft()));
105105
fail("Window bounds do not match saved bounds");
106106
}
107107

0 commit comments

Comments
 (0)