* Checks that the text box contains a number of substrings, in a given order.
* This method is useful for checking key information in the displayed string,
* without being too dependent on the actual wording.
*/
public Assertion textContains(final String... orderedTexts) {
return new Assertion() {
public void check() {
String actual = handler.getText();
int index = 0;
for (String text : orderedTexts) {
index = actual.indexOf(text, index);