Bug 1281421 - adjust tests a bit to work with the new FindIterator. r?jaws
MozReview-Commit-ID: 2teBOPPHgl
--- a/toolkit/content/tests/chrome/findbar_window.xul
+++ b/toolkit/content/tests/chrome/findbar_window.xul
@@ -546,19 +546,18 @@
function assertMatches(aTest, aMatches) {
is(aMatches[1], String(aTest.current),
"Currently highlighted match should be at " + aTest.current);
is(aMatches[2], String(aTest.total),
"Total amount of matches should be " + aTest.total);
}
for (let test of tests) {
- promise = promiseMatchesCountResult();
- gFindBar.clear();
- yield promise;
+ gFindBar._findField.select();
+ gFindBar._findField.focus();
promise = promiseMatchesCountResult();
yield enterStringIntoFindField(test.text, false);
yield promise;
let matches = foundMatches.value.match(regex);
if (!test.total) {
ok(!matches, "No message should be shown when 0 matches are expected");
} else {