Matthew Flint
unread,Apr 2, 2011, 5:31:42 PM4/2/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to UISpec
Hey,
I have a tab-bar app, where there is no "Third" tab. If I do this:
[[app.tabBarButton.label text:@"Third"] should].exist;
... then the test fails as expected, so there is a call to
"UILog.onExampleException:". The exception is raised in
"UIQueryExpectation.exist:" (line 18 in SVN revision 82). But if I do
this:
[[app.tabBarButton.label text:@"Third"] touch];
... then the very same exception is raised - but this time it is
dumped to the console and the Xcode debugger halts the thread. If I
choose to run on, then the app is terminated.
What would explain this difference of behaviour?
I wouldn't expect to have to check "exist" explicitly before calling
"touch" each time.
Thanks!
Matthew