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