Bug 1496353 - remove multimessage tooltip test. r=jorgk
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Mon, 05 Nov 2018 13:56:33 +0200
changeset 33660 25adff603af0c4b0817fb34baa80185a76081704
parent 33659 9f8543c1794e18fd07cac56dd5cc3aa99a89494e
child 33661 e327b83756cc7bc509b3bf5ad559de58aff31457
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1496353
Bug 1496353 - remove multimessage tooltip test. r=jorgk Tooltip testing is already done by core, see mozilla/toolkit/components/tooltiptext/tests
mail/test/mozmill/folder-display/test-tooltip-multimessage.js
deleted file mode 100644
--- a/mail/test/mozmill/folder-display/test-tooltip-multimessage.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/**
- * This just tests that tooltips work properly in the multimessage <browser>
- */
-
-"use strict";
-
-var MODULE_NAME = 'test-tooltip-multimessage';
-
-var RELATIVE_ROOT = '../shared-modules';
-var MODULE_REQUIRES = ['folder-display-helpers'];
-
-var folder;
-
-var setupModule = function(module) {
-  let fdh = collector.getModule('folder-display-helpers');
-  fdh.installInto(module);
-
-  folder = create_folder("Test");
-  let thread1 = create_thread(10);
-  add_sets_to_folders([folder], [thread1]);
-};
-
-test_tooltips.__force_skip__ = true;  // See bug 1496353
-function test_tooltips() {
-  // Trigger the message summary. This is needed otherwise we cannot compute the
-  // style of aHTMLTooltip in mailWindow.js
-  be_in_folder(folder);
-  select_click_row(0);
-  make_display_threaded();
-  toggle_thread_row(0);
-
-  // Get the needed elements.
-  let mm = mc.eid("multimessage").node;
-  let mmDoc = mm.contentDocument;
-  let tooltip = mc.eid("aHTMLTooltip").node;
-
-  // Test a XUL element.
-  let trashButton = mmDoc.querySelector(".hdrTrashButton");
-  trashButton.setAttribute("title", "Title1");
-  trashButton.setAttribute("tooltiptext", "TTT1");
-  tooltip.fillInPageTooltip(trashButton);
-  assert_equals(tooltip.getAttribute("label"), "TTT1", "This XUL element had its title taken as the tooltip instead of the tooltiptext attribute.");
-
-  // Test an HTML element.
-  let a = mmDoc.createElement("a");
-  a.setAttribute("href", "#");
-  a.setAttribute("title", "Title2");
-  a.setAttribute("tooltiptext", "TTT2");
-  mm.appendChild(a);
-  tooltip.fillInPageTooltip(a);
-  assert_equals(tooltip.getAttribute("label"), "Title2", "This HTML element had its tooltiptext taken as the tooltip instead of the title attribute.");
-  a.remove();
-}