Bug 1588500 - Disable subtests of test-phishing-bar.js on Windows only. rs=bustage-fix DONTBUILD BETA_BASE_20191021
authorJorg K <jorgk@jorgk.com>
Mon, 21 Oct 2019 21:21:39 +0200
changeset 37203 b3cd617ddb367ea4fed779a56fce0152df381737
parent 37202 1edda72532b435446b2a07bcb54f62039ebf506d
child 37204 deec75d364a9f912030cb730f6b3456dbfe21782
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersbustage-fix
bugs1588500
Bug 1588500 - Disable subtests of test-phishing-bar.js on Windows only. rs=bustage-fix DONTBUILD
mail/test/mozmill/message-header/test-phishing-bar.js
--- a/mail/test/mozmill/message-header/test-phishing-bar.js
+++ b/mail/test/mozmill/message-header/test-phishing-bar.js
@@ -190,57 +190,60 @@ function test_ignore_phishing_warning_fr
   close_window(msgc);
 }
 
 /**
  * Test that when viewing a message with an auto-linked ip address, we don't
  * get a warning when clicking the link.
  * We'll have http://130.128.4.1 vs. http://130.128.4.1/
  */
-function disabled_test_no_phishing_warning_for_ip_sameish_text() {
+function test_no_phishing_warning_for_ip_sameish_text() {
   be_in_folder(folder);
   select_click_row(2); // Mail with Public IP address.
   click_link_if_available();
   assert_notification_displayed(mc, kBoxId, kNotificationValue, false); // not shown
 }
+test_no_phishing_warning_for_ip_sameish_text.EXCLUDED_PLATFORMS = ["winnt"];
 
 /**
  * Test that when viewing a message with a link whose base domain matches but
  * has a different subdomain (e.g. http://subdomain.google.com/ vs
  * http://google.com/), we don't get a warning if the link is pressed.
  */
-function disabled_test_no_phishing_warning_for_subdomain() {
+function test_no_phishing_warning_for_subdomain() {
   be_in_folder(folder);
   select_click_row(3);
   click_link_if_available();
   assert_notification_displayed(mc, kBoxId, kNotificationValue, false); // not shown
 
   select_click_row(4);
   click_link_if_available();
   assert_notification_displayed(mc, kBoxId, kNotificationValue, false); // not shown
 }
+test_no_phishing_warning_for_subdomain.EXCLUDED_PLATFORMS = ["winnt"];
 
 /**
  * Test that when clicking a link where the text and/or href
  * has no TLD, we still warn as appropriate.
  */
-function disabled_test_phishing_warning_for_local_domain() {
+function test_phishing_warning_for_local_domain() {
   be_in_folder(folder);
   select_click_row(5);
 
   let dialogAppeared = false;
 
   plan_for_modal_dialog("commonDialog", function(ctrler) {
     dialogAppeared = true;
   });
 
   click_link_if_available();
 
   return dialogAppeared;
 }
+test_phishing_warning_for_local_domain.EXCLUDED_PLATFORMS = ["winnt"];
 
 /**
  * Test that we warn about emails which contain <form>s with action attributes.
  */
 function test_phishing_warning_for_action_form() {
   be_in_folder(folder);
   select_click_row(6);
   assert_notification_displayed(mc, kBoxId, kNotificationValue, true); // shown