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");
waitForCondition(condition,part8,"waited too long for plugin to activate");
}
functionpart8(){
ok(!PopupNotifications.getNotification("click-to-play-plugins",gNewWindow.gBrowser.selectedBrowser),"Should not have a click-to-play notification in the tab in the new window now");
ok(PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should have a click-to-play notification in the initial tab");
waitForCondition(condition,part11,"Waited too long for click-to-play notification");
}
functionpart11(){
ok(!PopupNotifications.getNotification("click-to-play-plugins",gBrowser.selectedBrowser),"Should not have a click-to-play notification in the old window now");
waitForCondition(condition,part13,"Waited too long for plugin to activate via center action");
}
functionpart13(){
ok(!PopupNotifications.getNotification("click-to-play-plugins",gNewWindow.gBrowser.selectedBrowser),"Should not have a click-to-play notification in the tab in the new window");