Bug 1565075 - Convert textbox type=autocomplete to HTML input, part 5, more tests. r=mkmelin
authorAlessandro Castellani <alessandro@thunderbird.net>
Thu, 19 Sep 2019 12:54:53 -0700
changeset 79035 9e20734574747e92ddb54e634fa3c3c83cdfa4d3
parent 79034 592b0b1a57a97f581a6e198a4cb8e1bff38ebd7b
child 79036 59ea04a195f685bbdd2debd7fbfc87bad5279d95
push id9342
push userkaie@kuix.de
push dateThu, 19 Sep 2019 21:31:29 +0000
treeherdertry-comm-central@514cb59d06af [default view] [failures only]
reviewersmkmelin
bugs1565075
Bug 1565075 - Convert textbox type=autocomplete to HTML input, part 5, more tests. r=mkmelin
calendar/base/themes/common/dialogs/calendar-event-dialog.css
calendar/test/mozmill/eventDialog/testEventDialog.js
calendar/test/mozmill/eventDialog/testEventDialogModificationPrompt.js
calendar/test/mozmill/shared-modules/test-item-editing-helpers.js
--- a/calendar/base/themes/common/dialogs/calendar-event-dialog.css
+++ b/calendar/base/themes/common/dialogs/calendar-event-dialog.css
@@ -721,20 +721,16 @@ calendar-event-freebusy-day > box {
   text-align: center;
 }
 
 #attendees-list hbox:nth-child(3) {
   flex: 1;
   text-align: left;
 }
 
-#attendees-list hbox textbox {
-  width: 100%;
-}
-
 .selection-bar-left {
   width: 3px;
   cursor: w-resize;
 }
 
 .selection-bar-right {
   width: 3px;
   cursor: e-resize;
--- a/calendar/test/mozmill/eventDialog/testEventDialog.js
+++ b/calendar/test/mozmill/eventDialog/testEventDialog.js
@@ -50,17 +50,16 @@ function setupModule(module) {
   ({ EVENT_TABPANELS, ATTENDEES_ROW, helpersForEditUI, setData } = collector.getModule(
     "item-editing-helpers"
   ));
   collector.getModule("item-editing-helpers").setupModule(module);
 
   createCalendar(controller, CALENDARNAME);
 }
 
-testEventDialog.__force_skip__ = true;
 function testEventDialog() {
   let dateFormatter = cal.getDateFormatter();
   let now = new Date();
 
   // Since from other tests we may be elsewhere, make sure we start today.
   switchToView(controller, "day");
   goToDate(controller, now.getFullYear(), now.getMonth() + 1, now.getDate());
   viewBack(controller, 1);
--- a/calendar/test/mozmill/eventDialog/testEventDialogModificationPrompt.js
+++ b/calendar/test/mozmill/eventDialog/testEventDialogModificationPrompt.js
@@ -53,17 +53,16 @@ function setupModule(module) {
   ({ plan_for_modal_dialog, wait_for_modal_dialog } = collector.getModule("window-helpers"));
 
   ({ mark_failure } = collector.getModule("folder-display-helpers"));
 
   createCalendar(controller, CALENDARNAME);
 }
 
 // Test that closing an event dialog with no changes does not prompt for save.
-testEventDialogModificationPrompt.__force_skip__ = true;
 function testEventDialogModificationPrompt() {
   goToDate(controller, 2009, 1, 1);
 
   let createbox = lookupEventBox("day", CANVAS_BOX, null, 1, 8);
   let eventbox = lookupEventBox("day", EVENT_BOX, null, 1, null, EVENTPATH);
 
   // Create new event.
   invokeEventDialog(controller, createbox, (event, iframe) => {
--- a/calendar/test/mozmill/shared-modules/test-item-editing-helpers.js
+++ b/calendar/test/mozmill/shared-modules/test-item-editing-helpers.js
@@ -529,22 +529,22 @@ function addAttendees(dialog, innerFrame
     if (!calAttendee) {
       plan_for_modal_dialog("Calendar:EventDialog:Attendees", attDialog => {
         let { lookup: attlookup, eid: attid } = helpersForController(attDialog);
 
         let input = attid("attendees-list");
         // As starting point is always the last entered Attendee, we have
         // to advance to not overwrite it.
         attDialog.waitFor(
-          () => attDialog.window.document.activeElement.getAttribute("class") == "input-inline"
+          () => attDialog.window.document.activeElement.getAttribute("is") == "autocomplete-input"
         );
         attDialog.keypress(input, "VK_TAB", {});
         attDialog.waitFor(
           () =>
-            attDialog.window.document.activeElement.getAttribute("class") == "input-inline" &&
+            attDialog.window.document.activeElement.getAttribute("is") == "autocomplete-input" &&
             attDialog.window.document.activeElement.getAttribute("value") == null
         );
         attDialog.type(input, attendee);
         attDialog.click(
           attlookup(`
                     /id("calendar-event-dialog-attendees-v2")/shadow/
                     {"class":"dialog-button-box"}/{"dlgtype":"accept"}
                 `)