< prev index next >

tests/system/src/test/java/test/robot/com/sun/glass/ui/monocle/ParameterizedTestBase.java

Print this page
rev 9504 : need to fix test log and others

*** 23,33 **** * questions. */ package test.robot.com.sun.glass.ui.monocle; ! import com.sun.glass.ui.monocle.TestLog; import test.robot.com.sun.glass.ui.monocle.TestApplication; import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevice; import javafx.application.Platform; import javafx.geometry.Rectangle2D; import org.junit.After; --- 23,33 ---- * questions. */ package test.robot.com.sun.glass.ui.monocle; ! import com.sun.glass.ui.monocle.TestLogShim; import test.robot.com.sun.glass.ui.monocle.TestApplication; import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevice; import javafx.application.Platform; import javafx.geometry.Rectangle2D; import org.junit.After;
*** 76,95 **** } @Before public void createDevice() throws Exception { TestApplication.showScene(stageBounds); ! TestLog.log("Starting " + name.getMethodName() + "[" + device + "]"); Rectangle2D r = TestApplication.getScreenBounds(); width = r.getWidth(); height = r.getHeight(); ! TestLog.reset(); device.create(); TestApplication.addMouseListeners(); TestApplication.addTouchListeners(); TestApplication.addGestureListeners(); ! TestLog.reset(); Platform.runLater( () -> Thread.currentThread().setUncaughtExceptionHandler( (t, e) -> exception = e)); } --- 76,95 ---- } @Before public void createDevice() throws Exception { TestApplication.showScene(stageBounds); ! TestLogShim.log("Starting " + name.getMethodName() + "[" + device + "]"); Rectangle2D r = TestApplication.getScreenBounds(); width = r.getWidth(); height = r.getHeight(); ! TestLogShim.reset(); device.create(); TestApplication.addMouseListeners(); TestApplication.addTouchListeners(); TestApplication.addGestureListeners(); ! TestLogShim.reset(); Platform.runLater( () -> Thread.currentThread().setUncaughtExceptionHandler( (t, e) -> exception = e)); }
< prev index next >