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,30 +429,36 @@ 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);
doKey("down");
doKey("return");
checkForm("final");
expectPopup();
restoreForm();
doKey("down");
}, 500);
break; break;
case 303: case 303:
// Continuation of test 302.
doKey("down");
doKey("return");
checkForm("final");
expectPopup();
restoreForm();
doKey("down");
break;
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
doKey("down"); break;
doKey("return");
checkForm("Google"); case 305:
input.removeAttribute('mozNoFilter'); // Continuation of test 304.
testNum = 399; doKey("down");
expectPopup(); doKey("return");
restoreForm(); checkForm("Google");
doKey("down"); input.removeAttribute('mozNoFilter');
}, 500); testNum = 399;
expectPopup();
restoreForm();
doKey("down");
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>