Auto-tools/Projects/Robocop/WritingTests: Difference between revisions

Jump to navigation Jump to search
Line 161: Line 161:
   mAsserter.ok(waitForText("Item 2"), ...
   mAsserter.ok(waitForText("Item 2"), ...


** If both Item 1 and Item 2 are visible, this test passes.
* If both Item 1 and Item 2 are visible, this test passes.
** If Item 1 occurs first in the list, with Item 2 later, and Item 2 is off the bottom of the screen, then the first waitForText succeeds immediately, the second waitForText scrolls down, then succeeds, and the test passes.
* If Item 1 occurs first in the list, with Item 2 later, and Item 2 is off the bottom of the screen, then the first waitForText succeeds immediately, the second waitForText scrolls down, then succeeds, and the test passes.
** If Item 2 occurs first in the list, with Item 1 later, and Item 1 is off the bottom of the screen, then the first waitForText scrolls down to find Item 1. If that operation scrolls Item 2 off the top of the screen, then the second waitForText will fail!
* If Item 2 occurs first in the list, with Item 1 later, and Item 1 is off the bottom of the screen, then the first waitForText scrolls down to find Item 1. If that operation scrolls Item 2 off the top of the screen, then the second waitForText will fail!
 
Note that the test is therefore dependent on screen size and orientation, as well as Robotium scrolling behavior.


= More Information =
= More Information =
Confirmed users
1,759

edits

Navigation menu