ok(PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should have a click-to-play notification in the initial tab");
waitForCondition(condition,part3,"Waited too long for click-to-play notification");
}
functionpart3(){
ok(PopupNotifications.getNotification("click-to-play-plugins",gNewWindow.gBrowser.selectedBrowser),"Should have a click-to-play notification in the tab in the new window");
ok(!PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should not have a click-to-play notification in the old window now");
waitForCondition(condition,part4,"Waited too long for click-to-play notification");
}
functionpart4(){
ok(PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should have a click-to-play notification in the initial tab again");
ok(PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should have a click-to-play notification in the initial tab");
waitForCondition(condition,part7,"Waited too long for click-to-play notification");
}
functionpart7(){
ok(PopupNotifications.getNotification("click-to-play-plugins",gNewWindow.gBrowser.selectedBrowser),"Should have a click-to-play notification in the tab in the new window");
ok(!PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should not have a click-to-play notification in the old window now");