Bug 760082 - Move the last checkForm test so it comes before SimpleTest.finish(). Use info() for log messages that aren't tests. r=mounir

This commit is contained in:
Mats Palmgren 2012-06-01 20:52:37 +02:00
parent 2c294337da
commit 1d71d122a3

View File

@ -91,7 +91,7 @@ function nextTest(aTestNum) {
function runTest(testNum) {
// Seems we need to enable this again, or sendKeyEvent() complaints.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
ok(true, "Starting test #" + testNum);
info("Starting test #" + testNum);
switch(testNum) {
case 1:
@ -400,13 +400,13 @@ function runTest(testNum) {
ok(true, "oninput should have been received");
ok(event.bubbles, "input event should bubble");
ok(event.cancelable, "input event should be cancelable");
checkForm("Google");
SimpleTest.finish();
}, false);
doKey("down");
checkForm("");
doKey("return");
checkForm("Google");
return;
default: