< prev index next >

tests/system/src/test/java/test/javafx/stage/RestoreStagePositionTest.java

Print this page
rev 10376 : 8176818: Disable failing full-screen and maximize tests on Mac
Reviewed-by:

*** 22,31 **** --- 22,32 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package test.javafx.stage; + import com.sun.javafx.PlatformUtil; import javafx.application.Application; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.scene.Scene; import javafx.scene.layout.VBox;
*** 38,47 **** --- 39,49 ---- import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import static org.junit.Assert.fail; + import static org.junit.Assume.assumeTrue; public class RestoreStagePositionTest { static CountDownLatch startupLatch; static Stage stage;
*** 86,95 **** --- 88,100 ---- } @Test public void testUfullscreenPosition() throws Exception { + // Disable on Mac until JDK-8176813 is fixed + assumeTrue(!PlatformUtil.isMac()); + Thread.sleep(200); Assert.assertTrue(stage.isShowing()); Assert.assertFalse(stage.isFullScreen()); double x = stage.getX();
*** 121,130 **** --- 126,138 ---- Assert.assertEquals("Window was moved", y, stage.getY(), 0.1); } @Test public void testDemaximizedPosition() throws Exception { + // Disable on Mac until JDK-8089230 is fixed + assumeTrue(!PlatformUtil.isMac()); + Thread.sleep(200); Assert.assertTrue(stage.isShowing()); Assert.assertFalse(stage.isMaximized()); double x = stage.getX();
< prev index next >