Bug 618913 follow-up: fix test_notifications.html failure

This commit is contained in:
Philipp von Weitershausen 2011-05-20 13:06:07 -07:00
parent 4d6492b193
commit 9485c21906

View File

@ -32,7 +32,9 @@ function getPopup(aPopupNote, aKind) {
function clickPopupButton(aPopup, aButtonIndex) {
ok(true, "Looking for action at index " + aButtonIndex);
var notifications = aPopup.owner.panel.childNodes;
var panel = aPopup.owner.panel.querySelector(".notification-popup-children")
|| aPopup.owner.panel;
var notifications = panel.childNodes;
ok(notifications.length > 0, "at least one notification displayed");
ok(true, notifications.length + " notifications");
var notification = notifications[0];