Bug 1550945 - Disable 7 Mozmill tests. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Wed, 29 May 2019 19:52:02 +0200
changeset 35706 b2e2cb73dfce7ee1ae96ec0f4c42f6ccecf494b8
parent 35705 21ef273cf681ef9a38d3569fb89adeaf750bbdbe
child 35707 ca6c4600f02948da8f6c21d95f8c9c9a9eb266ae
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1550945
Bug 1550945 - Disable 7 Mozmill tests. rs=bustage-fix
mail/test/mozmill/composition/test-image-display.js
mail/test/mozmill/content-policy/test-compose-mailto.js
mail/test/mozmill/message-window/test-vcard-actions.js
--- a/mail/test/mozmill/composition/test-image-display.js
+++ b/mail/test/mozmill/composition/test-image-display.js
@@ -52,17 +52,17 @@ function check_image_size(aController, a
   assert_true(aImage.naturalHeight > 0, "Loaded image " + id + " is of zero size");
   assert_true(aImage.naturalWidth > 0, "Loaded image " + id + " is of zero size");
 }
 
 /**
  * Bug 1352701 and bug 1360443
  * Test that showing an image with cid: URL in a HTML message from file will work.
  */
-function test_cid_image_load() {
+function disabled_test_cid_image_load() {
   let file = os.getFileForPath(os.abspath("./content-utf8-rel-only.eml",
                                os.getFileForPath(__file__)));
 
   // Make sure there is a cid: referenced image in the message.
   let msgSource = IOUtils.loadFileToString(file);
   assert_true(msgSource.includes('<img src="cid:'));
 
   // Our image should be in the loaded eml document.
@@ -83,17 +83,17 @@ function test_cid_image_load() {
   ]);
   close_window(msgc);
 }
 
 /**
  * Bug 1352701 and bug 1360443
  * Test that showing an image with cid: URL in a HTML message in a folder with work.
  */
-function test_cid_image_view() {
+function disabled_test_cid_image_view() {
   // Preview the message in the folder.
   be_in_folder(gImageFolder);
   let msg = select_click_row(0);
   assert_selected_and_displayed(mc, msg);
 
   // Check image in the preview.
   let messageDoc = mc.e("messagepane").contentDocument;
   let image = messageDoc.getElementById("cidImage");
@@ -102,17 +102,17 @@ function test_cid_image_view() {
   check_image_size(mc, image, gImageFolder.server.localStoreType + "://");
 }
 
 /**
  * Bug 1352701 and bug 1360443
  * Test that showing an image with cid: URL in a HTML message will work
  * in a composition.
  */
-function test_cid_image_compose() {
+function disabled_test_cid_image_compose() {
   // Our image should also be in composition when the message is forwarded/replied.
   for (let msgOperation of [open_compose_with_forward, open_compose_with_reply]) {
     let cwc = msgOperation();
     let image = cwc.e("content-frame").contentDocument.getElementById("cidImage");
     check_image_size(cwc, image, "data:");
     image = cwc.e("content-frame").contentDocument.getElementById("cidImageOrigin");
     check_image_size(cwc, image, "data:");
     close_compose_window(cwc);
--- a/mail/test/mozmill/content-policy/test-compose-mailto.js
+++ b/mail/test/mozmill/content-policy/test-compose-mailto.js
@@ -40,26 +40,26 @@ function setupModule(module) {
   composeHelper = collector.getModule("compose-helpers");
   composeHelper.installInto(module);
   windowHelper = collector.getModule("window-helpers");
   windowHelper.installInto(module);
   let cth = collector.getModule("content-tab-helpers");
   cth.installInto(module);
 }
 
-function test_openComposeFromMailToLink() {
+function disabled_test_openComposeFromMailToLink() {
   // Open a content tab with the mailto link in it.
     // To open a tab we're going to have to cheat and use tabmail so we can load
   // in the data of what we want.
   gPreCount = mc.tabmail.tabContainer.childNodes.length;
   gNewTab = open_content_tab_with_url(url + "mailtolink.html");
   gComposeWin = composeHelper.open_compose_with_element_click("mailtolink");
 }
 
-function test_checkInsertImage() {
+function disabled_test_checkInsertImage() {
   // First focus on the editor element
   gComposeWin.e("content-frame").focus();
 
   // Now open the image window
   windowHelper.plan_for_modal_dialog("imageDlg",
   function insert_image(mwc) {
     // Insert the url of the image.
     let srcloc = mwc.window.document.getElementById("srcInput");
@@ -88,17 +88,17 @@ function test_checkInsertImage() {
     throw new Error("Expecting one image in document, actually have " + childImages.length);
 
   // Should be the only image, so just check the first.
   if (childImages[0].QueryInterface(Ci.nsIImageLoadingContent)
                     .imageBlockingStatus != Ci.nsIContentPolicy.ACCEPT)
     throw new Error("Loading of image has been unexpectedly blocked in a mailto compose window");
 }
 
-function test_closeComposeWindowAndTab() {
+function disabled_test_closeComposeWindowAndTab() {
   composeHelper.close_compose_window(gComposeWin);
 
   mc.tabmail.closeTab(gNewTab);
 
   if (mc.tabmail.tabContainer.childNodes.length != gPreCount)
     throw new Error("The content tab didn't close");
 }
 
--- a/mail/test/mozmill/message-window/test-vcard-actions.js
+++ b/mail/test/mozmill/message-window/test-vcard-actions.js
@@ -23,17 +23,17 @@ function setupModule(module) {
     collector.getModule(lib).installInto(module);
   }
 }
 
 /**
  * Bug 1374779
  * Check if clicking attached vcard image opens new card dialog and adds a contact.
  */
-function test_check_vcard_icon() {
+function disabled_test_check_vcard_icon() {
   let file = os.getFileForPath(os.abspath("./test-vcard-icon.eml", os.getFileForPath(__file__)));
   let msgc = open_message_from_file(file);
 
   let newcards = get_cards_in_all_address_books_for_email("meister@example.com");
   assert_equals(newcards.length, 0);
 
   function subtest_check_card(cardc) {
     // Check new card is properly prefilled.