Skip to content
Browse files

Merge branch 'master' of git@github.com:Stray/RobotEyes

  • Loading branch information...
2 parents 0231a96 + cc0be80 commit 19f8f3b01cfdebdafc686100e0a2b30bd3add86b @Stray committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -66,6 +66,10 @@ List of helpers for the InteractiveObjectDriver:
var loginScreen:DisplayObject = loginScreenDriver.view;
assertTrue('LoginPanel is off screen', (loginScreen.y < (-loginScreen.height)));
+### Count instances of a specific type - for example to check that the correct number of instances have been added to a list
+
+ var listHolderDriver:DisplayObjectDriver = inViewOf(SomeApp).getA(ListHolder);
+ assertEquals('Correct number of items added to the list', 8, listHolderDriver.countInstancesOf(ListItem));
### TestCase Examples:

0 comments on commit 19f8f3b

Please sign in to comment.
Something went wrong with that request. Please try again.