Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. class SecondTest : JankTestBase() {
  2.  
  3. @JankTest(
  4. beforeTest = "launchApp",
  5. expectedFrames = EXPECTED_FRAMES,
  6. defaultIterationCount = 1
  7. )
  8. @GfxMonitor(processName = PACKAGE_NAME)
  9. fun testSecond() {
  10. for (i in 0 until INNER_LOOP) {
  11. val appViews = UiScrollable(UiSelector().scrollable(true))
  12. appViews.setAsVerticalList()
  13. appViews.scrollTextIntoView("This is item 24")
  14. appViews.scrollTextIntoView("This is item 1")
  15. }
  16. SystemClock.sleep(200)
  17. }
  18.  
  19. companion object {
  20. private const val INNER_LOOP = 2
  21. private const val EXPECTED_FRAMES = 450
  22. private const val PACKAGE_NAME = "com.marcosholgado.performancetest"
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement