Bug 1507537 - disable failing plugin tests on Linux. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Fri, 16 Nov 2018 23:18:43 +0100
changeset 33725 fa82003e8d33fd5e1759a7b183fc65c18ebb207f
parent 33724 8ca96cbae03df48764aae6ab431b91164f16fd9b
child 33726 062d7a8d50be38a9b05c584051ace406f2cf1fca
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersbustage-fix
bugs1507537
Bug 1507537 - disable failing plugin tests on Linux. rs=bustage-fix
mail/test/mozmill/content-policy/test-plugins-policy.js
mail/test/mozmill/content-tabs/test-plugin-crashing.js
mail/test/mozmill/content-tabs/test-plugin-outdated.js
--- a/mail/test/mozmill/content-policy/test-plugins-policy.js
+++ b/mail/test/mozmill/content-policy/test-plugins-policy.js
@@ -160,16 +160,17 @@ function test_checkPluginsInNonMessageCo
   mozmill.getMail3PaneController().window.GetMessagePaneFrame().location.href =
     url + "plugin.html";
 
   wait_for_message_display_completion();
 
   if (!isPluginLoaded(mozmill.getMail3PaneController().window.content.document))
     throw new Error("Plugin is not turned on in content in message pane - it should be.");
 }
+test_checkPluginsInNonMessageContent.EXCLUDED_PLATFORMS = ["linux"];
 
 function test_3paneWindowDeniedAgain() {
   select_click_row(0);
 
   assert_selected_and_displayed(0);
 
   // Now check that the content hasn't been loaded
   if (isPluginLoaded(mozmill.getMail3PaneController().window
@@ -194,8 +195,10 @@ function test_checkContentTab() {
   if (!isPluginLoaded(mc.tabmail.getBrowserForSelectedTab().contentDocument))
     throw new Error("Plugin has been unexpectedly blocked in content tab");
 
   mc.tabmail.closeTab(newTab);
 
   if (mc.tabmail.tabContainer.childNodes.length != preCount)
     throw new Error("The content tab didn't close");
 }
+test_checkContentTab.EXCLUDED_PLATFORMS = ["linux"];
+
--- a/mail/test/mozmill/content-tabs/test-plugin-crashing.js
+++ b/mail/test/mozmill/content-tabs/test-plugin-crashing.js
@@ -197,30 +197,32 @@ function crash_plugin() {
 }
 
 /* A quick sanity check - let's ensure that we can actually
  * crash the plugin.
  */
 function test_can_crash_plugin() {
   assert_true(crash_plugin());
 }
+test_can_crash_plugin.EXCLUDED_PLATFORMS = ["linux"];
 
 /* Test to check that if a plugin crashes, and the plugin's
  * <object> is too small to display a message, then a
  * notification box appears to tell us about the crash.
  */
 function test_crashed_plugin_notification_bar() {
   let plugin = gTabDoc.getElementById(kPluginId);
   plugin.style.width = '10px';
   plugin.style.height = '10px';
 
   NotificationWatcher.planForNotification(mc);
   assert_true(crash_plugin());
   NotificationWatcher.waitForNotification(mc);
 }
+test_crashed_plugin_notification_bar.EXCLUDED_PLATFORMS = ["linux"];
 
 /* Test that if a plugin crashes, and the plugin's <object>
  * is large enough to display a message, it'll display the
  * appropriate crash message.
  */
 function test_crashed_plugin_notification_inline() {
   let plugin = gTabDoc.getElementById(kPluginId);
 
@@ -273,8 +275,10 @@ function test_crashed_plugin_notificatio
                                                                "class",
                                                                "helpIcon");
   assert_not_equals(null, helpIcon, "Help Icon should have been available");
 
   let helpTab = open_content_tab_with_click(helpIcon, kPluginCrashDocUrl);
   assert_tab_has_title(helpTab, "Plugin Crashed Help");
   mc.tabmail.closeTab(helpTab);
 }
+test_crashed_plugin_notification_inline.EXCLUDED_PLATFORMS = ["linux"];
+
--- a/mail/test/mozmill/content-tabs/test-plugin-outdated.js
+++ b/mail/test/mozmill/content-tabs/test-plugin-outdated.js
@@ -67,16 +67,17 @@ function test_outdated_plugin_notificati
   let finishedReset = false;
 
   resetBlocklist(mc, function() { finishedReset = true; });
 
   mc.waitFor(() => finishedReset, "Reset blocklist took too long");
 
   Services.prefs.clearUserPref("extensions.blocklist.suppressUI");
 }
+test_outdated_plugin_notification.EXCLUDED_PLATFORMS = ["linux"];
 
 function subtest_outdated_plugin_notification() {
   // Prepare to capture the notification bar
   NotificationWatcher.planForNotification(mc);
   let pluginTab = open_content_tab_with_click(mc.menus.helpMenu.whatsNew,
                                               kPluginUrl);
   NotificationWatcher.waitForNotification(mc);