Avoid timing issue when executing case and doTraversal

The testcase was executed too fast, causing the dispatchOnGlobalLayout() of the second WidgetTestUtils.runOnMainAndLayoutSync() to not be triggered.

Bug:194875202

Test: run cts-on-gsi -m CtsWidgetTestCases -t android.widget.cts.MagnifierTest#testSourcePosition_respectsMaxInSurfaceBounds_forSurfaceView

Signed-off-by: duanyangqi <duanyangqi@xiaomi.com>
Change-Id: Ia066c66a7b42a4211a76477ac6c42e63ea7d1ae7
1 file changed