Bug 596522 - fix breakage from bug 578785 and re-enable test_bug510426.xul. a=testfix

This commit is contained in:
Dão Gottwald 2010-09-16 23:14:16 +02:00
parent f1225a7550
commit deaba47a34
2 changed files with 3 additions and 7 deletions

View File

@ -114,11 +114,11 @@
newitem.priority = aPriority;
if (aPriority >= this.PRIORITY_CRITICAL_LOW)
newitem.type = "critical";
newitem.setAttribute("type", "critical");
else if (aPriority <= this.PRIORITY_INFO_HIGH)
newitem.type = "info";
newitem.setAttribute("type", "info");
else
newitem.type = "warning";
newitem.setAttribute("type", "warning");
if (!insertPos) {
newitem.style.position = "fixed";

View File

@ -26,10 +26,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=510426
SimpleTest.waitForExplicitFinish();
function openNotification() {
SimpleTest.todo(false, "test disabled, see bug 596522");
SimpleTest.finish();
return;
var nb = document.getElementById("nb");
var n = nb.appendNotification("Notification", "", null,
nb.PRIORITY_WARNING_LOW, [{