Backout 273173a592dc (bug 483992) for causing bug 739927

This commit is contained in:
Ed Morley 2012-03-28 22:52:17 +01:00
Родитель 199f9cf277
Коммит 890bd03f44
3 изменённых файлов: 69 добавлений и 0 удалений

Просмотреть файл

@ -644,6 +644,29 @@ function getImplementation() {
return builder.getImplementation();
}
//sayrer override the SimpleTest logger
SimpleTest._logResult = function(test, passString, failString) {
var msg = test.result ? passString : failString;
msg += " | " + test.name;
if (test.result) {
if (test.todo)
parentRunner.logger.error(msg)
else
parentRunner.logger.log(msg);
} else {
msg += " | " + test.diag;
if (test.todo) {
parentRunner.logger.log(msg)
} else {
if (todoTests[docName]) {
parentRunner.logger.log("expected error in todo testcase | " + test.name);
} else {
parentRunner.logger.error(msg);
}
}
}
}
function testFails (test) {
if (!test.result) {
test.todo = true;

Просмотреть файл

@ -648,6 +648,29 @@ function getImplementation() {
return builder.getImplementation();
}
//sayrer override the SimpleTest logger
SimpleTest._logResult = function(test, passString, failString) {
var msg = test.result ? passString : failString;
msg += " | " + test.name;
if (test.result) {
if (test.todo)
parentRunner.logger.error(msg)
else
parentRunner.logger.log(msg);
} else {
msg += " | " + test.diag;
if (test.todo) {
parentRunner.logger.log(msg)
} else {
if (todoTests[docName]) {
parentRunner.logger.log("expected error in todo testcase | " + test.name);
} else {
parentRunner.logger.error(msg);
}
}
}
}
window.doc = window;
SimpleTest.waitForExplicitFinish();
addLoadEvent(function(){ setUpPage(); });

Просмотреть файл

@ -648,6 +648,29 @@ function getImplementation() {
return builder.getImplementation();
}
//sayrer override the SimpleTest logger
SimpleTest._logResult = function(test, passString, failString) {
var msg = test.result ? passString : failString;
msg += " | " + test.name;
if (test.result) {
if (test.todo)
parentRunner.logger.error(msg)
else
parentRunner.logger.log(msg);
} else {
msg += " | " + test.diag;
if (test.todo) {
parentRunner.logger.log(msg)
} else {
// if (todoTests[docName]) {
// parentRunner.logger.log("expected error in todo testcase | " + test.name);
//} else {
parentRunner.logger.error(msg);
//}
}
}
}
window.doc = window;
SimpleTest.waitForExplicitFinish();
addLoadEvent(function(){ setUpPage(); });