< prev index next >

tests/system/src/test/java/test/robot/com/sun/glass/ui/monocle/TouchPipelineTest.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 com.sun.glass.ui.monocle.TouchFilterShim.FlushingFilter; import com.sun.glass.ui.monocle.TouchFilterShim.LoggingFilter; import com.sun.glass.ui.monocle.TouchFilterShim.NoMultiplesOfTenOnXFilter; import com.sun.glass.ui.monocle.TouchFilterShim.OverrideIDFilter; --- 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 com.sun.glass.ui.monocle.TouchFilterShim.FlushingFilter; import com.sun.glass.ui.monocle.TouchFilterShim.LoggingFilter; import com.sun.glass.ui.monocle.TouchFilterShim.NoMultiplesOfTenOnXFilter; import com.sun.glass.ui.monocle.TouchFilterShim.OverrideIDFilter;
*** 49,59 **** Assume.assumeTrue(TestApplication.isMonocle()); ui = new UInput(); TestApplication.showFullScreenScene(); TestApplication.addMouseListeners(); TestApplication.addTouchListeners(); ! TestLog.reset(); System.setProperty("monocle.input.ca/fe/ba/be.touchFilters", TranslateFilter.class.getName() + "," + OverrideIDFilter.class.getName() + "," + FlushingFilter.class.getName() + "," + LoggingFilter.class.getName() + "," --- 49,59 ---- Assume.assumeTrue(TestApplication.isMonocle()); ui = new UInput(); TestApplication.showFullScreenScene(); TestApplication.addMouseListeners(); TestApplication.addTouchListeners(); ! TestLogShim.reset(); System.setProperty("monocle.input.ca/fe/ba/be.touchFilters", TranslateFilter.class.getName() + "," + OverrideIDFilter.class.getName() + "," + FlushingFilter.class.getName() + "," + LoggingFilter.class.getName() + ","
*** 88,107 **** ui.processLine("EV_ABS ABS_Y 200"); ui.processLine("EV_SYN"); ui.processLine("EV_ABS ABS_X 200"); ui.processLine("EV_ABS ABS_Y 200"); ui.processLine("EV_SYN"); ! TestLog.waitForLog("Touch pressed: 203, 195"); ! TestLog.waitForLog("Touch point id=5 at 203,195"); // Check for events send by the flushing filter ! TestLog.waitForLog("Touch moved: 413, 95"); ! TestLog.waitForLog("Touch moved: 313, 95"); ! TestLog.waitForLog("Touch moved: 213, 95"); // This one should have been filtered out ! Assert.assertEquals(0, TestLog.countLog("Touch Pressed: 208, 195")); ui.processLine("EV_KEY BTN_TOUCH 0"); ui.processLine("EV_SYN"); ! TestLog.waitForLog("Touch released: 213, 95"); } } --- 88,107 ---- ui.processLine("EV_ABS ABS_Y 200"); ui.processLine("EV_SYN"); ui.processLine("EV_ABS ABS_X 200"); ui.processLine("EV_ABS ABS_Y 200"); ui.processLine("EV_SYN"); ! TestLogShim.waitForLog("Touch pressed: 203, 195"); ! TestLogShim.waitForLog("Touch point id=5 at 203,195"); // Check for events send by the flushing filter ! TestLogShim.waitForLog("Touch moved: 413, 95"); ! TestLogShim.waitForLog("Touch moved: 313, 95"); ! TestLogShim.waitForLog("Touch moved: 213, 95"); // This one should have been filtered out ! Assert.assertEquals(0, TestLogShim.countLog("Touch Pressed: 208, 195")); ui.processLine("EV_KEY BTN_TOUCH 0"); ui.processLine("EV_SYN"); ! TestLogShim.waitForLog("Touch released: 213, 95"); } }
< prev index next >