Bug 1180827 - Get rid of a couple of setTimeouts/flaky test requests. r=MattN

This commit is contained in:
Blake Kaplan 2015-07-16 13:34:40 -07:00
parent e3734b27f4
commit f036df8e47

View File

@ -429,21 +429,28 @@ function runTest() {
// Filter with a letter in the middle of the word.
synthesizeKey("i", {});
synthesizeKey("n", {});
setTimeout(function() {
waitForMenuChange(1);
break;
case 303:
// Continuation of test 302.
doKey("down");
doKey("return");
checkForm("final");
expectPopup();
restoreForm();
doKey("down");
}, 500);
break;
case 303:
case 304:
// Filter is disabled with mozNoFilter.
input.setAttribute('mozNoFilter', 'true');
synthesizeKey("f", {});
setTimeout(function() {
waitForMenuChange(3); // no change
break;
case 305:
// Continuation of test 304.
doKey("down");
doKey("return");
checkForm("Google");
@ -452,7 +459,6 @@ function runTest() {
expectPopup();
restoreForm();
doKey("down");
}, 500);
break;
case 400:
@ -496,7 +502,6 @@ function startTest() {
window.onload = startTest;
SimpleTest.waitForExplicitFinish();
SimpleTest.requestFlakyTimeout("untriaged");
</script>
</pre>
</body>