Граф коммитов

958 Коммитов

Автор SHA1 Сообщение Дата
Alessandro Castellani 89e10aa6d7 Bug 1674912 - Add icons to represent the state of recurring events and update the category indicator. r=henry,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D138232
2022-02-15 22:36:03 +00:00
Magnus Melin 2f0c16c32b Backed out changeset 1c5b1fe5a052 (bug 1674912) for test failures. rs=backout 2022-02-15 11:24:05 +02:00
Alessandro Castellani 5aeaed05b3 Bug 1674912 - Add icons to represent the state of recurring events and update the category indicator. r=henry,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D138232
2022-02-11 19:11:31 +00:00
Lasana Murray 06e6133d73 Bug 1747923 - Clean up CalTransactionManager promise usage. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D134887

--HG--
extra : amend_source : 17951c498ee24da63595d47091494430dcf1e79a
2022-02-09 19:42:50 +02:00
Lasana Murray 02ca7bd37a Bug 1738443 - Do not treat 404 current-user-privilege-set responses as an empty list. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D134975

--HG--
extra : amend_source : 61aa6abc61e9e2204d4c4a53e0aa857b85bce415
2022-02-09 19:42:22 +02:00
Geoff Lankow 50d06c67e9 Bug 1729443 - Request longer timeout in all calendar recurrence tests. r=mkmelin a=me
Differential Revision: https://phabricator.services.mozilla.com/D137824

--HG--
extra : rebase_source : 6788032c38e1d9a943e83485f71feb2bcd6a2ab1
extra : amend_source : 1d5818f6c9c0de5478b0f0fa40ce97fef3990d42
2022-02-04 15:58:56 +13:00
Geoff Lankow 07a790d08a Bug 1746973 - Disable browser_timezones.js on debug builds. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D137823

--HG--
extra : amend_source : 1fabdd25175282e1b3676c105aea0fa3707c47cd
2022-02-04 11:57:31 +02:00
Lasana Murray 84bc229a28 Bug 1752389 - Use CalendarTestUtils.createCalendar to create calendars in tests. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D137188
2022-01-27 23:26:34 +00:00
Lasana Murray 7570d7a916 Bug 1693873 - Part 7: Remove calAsyncUtils.jsm. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D136832

--HG--
extra : amend_source : 70366524b6647400f1e41a34e2ff2d1c03e262da
2022-02-01 12:24:45 +02:00
Geoff Lankow 662ba5f87f Bug 1752043 - Fix test_alarmservice.js by increasing a timing threshold. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D137243

--HG--
extra : rebase_source : 0175f43565fe7a3bb6d1616125998089c4e0f069
extra : histedit_source : 88fe6ebfb56eb8d4424702ae0993dc352edc02ed
2022-01-27 11:40:04 +13:00
Geoff Lankow 7935e3d12f Bug 1752230 - Fix browser_propertyChanges.js by waiting for changes instead of expecting them instantly. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D137242

--HG--
extra : rebase_source : 5c1b90df53075ddd4761feb5b011e3298b164b88
extra : histedit_source : 0c801941bd812ebd769ee8ed1a264ebd6be5972b
2022-01-27 11:39:29 +13:00
Magnus Melin 9dd08c4b9d Bug 1742101 - show the iMIP details expanded by default. r=lasana
This expands the details if any of these conditions are met:
* there is no html part, all we have is the event
* the pref calendar.itip.imipDetailsOpen true is set, to always show expanded

Differential Revision: https://phabricator.services.mozilla.com/D136328

--HG--
extra : rebase_source : 6eec6efc40682d09a02bcc689c6c8bb034a97848
2022-01-25 22:40:02 +02:00
Lasana Murray 746643c2bd Bug 1693873 - Part 5: Convert getItems() to return a ReadableStream. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D133787

--HG--
extra : amend_source : e530d9121c9be457c7abd79cb5dca23ccb4c3bdf
2022-01-25 12:54:31 +02:00
Alessandro Castellani 6dd923b2ec Bug 1665511 - Implement tests for the Spaces Toolbar.r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D135946

--HG--
extra : amend_source : 7aa6cff80fdc5dbb1e80f65d0229727f45f4e682
2022-01-20 12:18:59 +02:00
Geoff Lankow d0471be45b Bug 1749848 follow-up - Fix a broken test. rs=bustage-fix 2022-01-17 10:49:12 +13:00
Geoff Lankow 1bae4ed0d1 Bug 1744699 - Avoid recursion error in browser_weeklyWithException.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D135936

--HG--
extra : amend_source : f116dc2bb27eb5d3ec4af2a98de7cfa91cef6d01
2022-01-15 12:32:26 +02:00
aleca 870ce78b07 Bug 1665511 - Hide spaces toolbar in calendar test to not interefere with the drag and drop. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D135814

--HG--
extra : histedit_source : 936b34872bd23ad27135348c0c8e8ac45242134b
2022-01-13 04:00:49 +00:00
Henry Wilkes 6a30a70672 Bug 1713130 - Allow a greater pixel error bound in calendar browser_viewSwitch. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D135600
2022-01-11 12:22:06 +00:00
Alessandro Castellani 17e0879246 Bug 1665511 - Fix busted tests due to the changed toolbar buttons.r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D135659
2022-01-12 03:31:34 +00:00
John Bieling caa2bcea68 Bug 1643729 - Add download limit, expiry date and option to indicate password protection to the cloud file link. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D133113

--HG--
extra : moz-landing-system : lando
2022-01-07 23:12:21 +00:00
Magnus Melin e162bda0c7 Backed out changeset 70a392298b42 for test failures in comm/mail/test/browser/cloudfile/browser_attachmentUrls.js. rs=backout DONTBUILD
--HG--
extra : amend_source : f15a1951b6dccf2ee6aee2f96e6290e9d3c0bda8
2022-01-06 14:32:56 +02:00
John Bieling 43c7253570 Bug 1643729 - Add download limit, expiry date and option to indicate password protection to the cloud file link. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D133113

--HG--
extra : amend_source : 1c3f30126248d1efa0e9d1e84de34084ebed57e4
2022-01-06 11:17:17 +02:00
Nicolai Kasper 12abe6d9ce Bug 1676114 - Part 4: Getting rid of `asyncTestUtils.js` in FolderDisplayHelpers.jsm by using MessageInjection.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D133651

--HG--
extra : amend_source : 85efef6b1c88890ca7cc9a3927e80848978aba72
2021-12-21 12:16:33 +02:00
Alessandro Castellani b9d23ad95a Bug 1736437 - Rebuild the titlebar HTML structure.r=mkmelin,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D133812
2021-12-20 17:58:32 +00:00
Henry Wilkes bb81ef0fb2 Bug 1713130 - Remove calendar-event-gripbar. r=darktrojan
A full custom element with attributes is no longer necessary.

This also fixes rotating the gripbars when rotating the view.

Differential Revision: https://phabricator.services.mozilla.com/D133652

--HG--
extra : amend_source : 98c801e446bbc1d1a8914ed6a2998bc7a21baf09
2021-12-17 12:51:58 +02:00
Henry Wilkes 09161d693b Bug 1713130 - Move the timebar into the multiday view class. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D133368

--HG--
extra : amend_source : ab0d0a38eb52060e990b2a29a4970fb2ca7b89c2
2021-12-13 12:35:17 +02:00
Henry Wilkes 0e087f84d4 Bug 1713130 - Make pixels per minute more accurate for the multiday view. r=darktrojan
We no longer floor the pixels per minute to the next 0.001, which could accumulate ~1px errors over the full day.

We also use a flex display to accurately distribute this available space between the multiday hour boxes in the timebar and event columns.

Differential Revision: https://phabricator.services.mozilla.com/D133367

--HG--
extra : amend_source : 090d556f3e1957f34bf6a5a7586ead1185220d73
2021-12-13 12:35:05 +02:00
Magnus Melin b7dbc93c3f Bug 1744113 - don't ask for invitee identity if not an invite. r=lasana,darktrojan!
Differential Revision: https://phabricator.services.mozilla.com/D132725

--HG--
rename : calendar/test/browser/invitations/browser_testIdentityPrompt.js => calendar/test/browser/invitations/browser_identityPrompt.js
extra : rebase_source : 31e1874b54dabae004a009e8233046b9c0f3f4af
2021-12-08 18:51:17 +02:00
Henry Wilkes b86325f10b Bug 1739364 - Support bi-directional auto-scroll in the calendar multiday views. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D132803

Depends on D132802
2021-12-08 10:32:10 +00:00
Geoff Lankow b72a7cb096 Bug 1744634 follow-up - Unbreak browser_calendarList.js on Windows. rs=me
--HG--
extra : rebase_source : 0648b1b4450fcd869675fb6808f3d8631196d6bc
extra : amend_source : 24c0be3b5fe3d85df1310b762aff1cef71c27820
2021-12-08 12:06:06 +13:00
Geoff Lankow 7931382298 Bug 1744634 - Fix some problems with menus and pop-ups in tests. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D133020

--HG--
extra : amend_source : 5a1f698ce9befea3becfa28390b4749c13a16121
2021-12-07 12:22:24 +02:00
Lasana Murray 993122c547 Bug 1693873 - Part 4: Convert modifyItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D132423

--HG--
extra : amend_source : 998e67d590a25ead3033dbdcfdc95df5650ce7b7
2021-12-04 12:18:07 +02:00
Lasana Murray 75f93f22b2 Bug 1693873 - Part 3: Convert addItem() adoptItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131864

--HG--
extra : amend_source : 687f9a4852874592e691a2951190bb2a05ce620e
2021-12-04 12:17:51 +02:00
Henry Wilkes 2838b8ae59 Bug 1713130 - Restructure calendar day and week views into a readable order. r=darktrojan
The UI should remain the same, with the exception of:
+ Day headings are always bold (the same as in the multiweek views). Before, only 'today' was bold.
+ Allday headers now have individual scrolling. Before, any overflow scrolling needed for one header would be shared by all headers.
+ Allday headers now have a max height in the rotated view. Moreover, the 'rows' are no longer strictly 'equalsize', which means we save some vertical space if only one day has a long header.
+ If the view is rotated, and the view overflows vertically, we can see and control both scrollbars. Before, the horizontal scrollbar would only be visible if the vertical scrollbar was at the bottom. Similarly when non-rotated.
+ Using a mixture of scrolling by dragging scrollbars and using a mouse wheel is now properly supported. Before, switching from the former method to the latter would cause the view to jump to the last wheel scroll position. Moreover, scrolling with the wheel will always snap to an exact hour.
+ There is no longer a 1px margin between the timebar and the event list. Instead, we have a 2px border.
+ The new changes work for right-to-left. This inadvertently fixes bug 1712942, plus more.

Differential Revision: https://phabricator.services.mozilla.com/D132244
2021-11-11 18:12:22 +00:00
Henry Wilkes f33100c6e7 Bug 1713130 - Fix browser_eventDialogSize.js to work in isolation. r=darktrojan
The test was relying on the calendar tab being still open from the previous test.

Differential Revision: https://phabricator.services.mozilla.com/D132242
2021-11-25 11:12:25 +00:00
Geoff Lankow 12ac079ba1 Bug 1736140 - Update timezones to 2021e. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D132419

--HG--
extra : rebase_source : 601ef8670848f75a45512daeadf9e4b308c7abbd
2021-11-30 12:38:13 +13:00
Lasana Murray 45b42472e4 Bug 1693873 - Part 2: Convert deleteItem(), getItemOfflineFlag() and deleteOfflineItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131437

--HG--
extra : amend_source : 65324db990de6e66f2fe1e30e567a492c6001c03
2021-11-26 12:36:31 +02:00
Henry Wilkes ae4edf7c35 Bug 1713130 - Use the event target instead of mouse position for finding calendar columns. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131134

--HG--
extra : amend_source : bdf916e108a38d9fd766c002398386cc7a7035b4
2021-11-24 12:47:17 +02:00
Geoff Lankow ffbd7a56c4 Bug 1731216 - In browser_calendarList.js, ensure the main window has focus. rs=bustage-fix
--HG--
extra : rebase_source : 90976dda7230ea5b315abb137b752fe85865a4dc
extra : amend_source : deddfbdc6c7f2c6c0d22e2ed9e7a97b1e13dcbe1
2021-11-23 10:54:00 +13:00
Lasana Murray 100fd6d131 Bug 1693873 - Part 1: Have calICalendar.getItem return a Promise. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131015

--HG--
extra : amend_source : 32a4bc88ef286552b80603ba8ba9d5fb75248834
2021-11-23 12:28:58 +02:00
John Bieling 08bdcbccad Bug 1627497 - Extend onFileUpload event to optionally return values for the CloudFile template. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D130851

--HG--
extra : amend_source : eaa3c164c1688d621e2305f2b0cba1c7926d0184
2021-11-18 11:58:22 +02:00
Lasana Murray dc17a1edf1 Bug 1722752 - Part 5: Move item caching to own model class. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D128507

Depends on D126147

--HG--
extra : rebase_source : a3350f9f87819843e7654c1cef363f38c2c2b007
2021-11-02 15:07:28 +00:00
Henry Wilkes fc496b5fd9 Bug 1713130 - Convert multiday-column-top-box into an <ol> element. r=darktrojan
This simplifies the structure of the calendar-event-column, and is a step towards making the calendar views more semantic and accessible.

Differential Revision: https://phabricator.services.mozilla.com/D129945

--HG--
extra : amend_source : 0d9b2f9111ef6743f11b5654553bd8d7d7c78eff
2021-11-02 12:30:18 +02:00
Riya 7cf6f0cdbc Bug 1738583 - Handle Thunderbird related "ESLint rule no-loss-of-precision". r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D130004

--HG--
extra : amend_source : 0024ccee17aa61c5f1bee93f588b9aae17ad4d95
2021-11-01 12:20:19 +02:00
Geoff Lankow 5e94c611d1 Bug 1738376 - Make the agenda ignore changes in hidden calendars. r=mkmelin
When a calendar is hidden but not disabled, synchronisation could cause items to be added or modified. These changes should be ignored by the agenda.

Differential Revision: https://phabricator.services.mozilla.com/D129884

--HG--
extra : moz-landing-system : lando
2021-10-31 21:55:47 +00:00
Geoff Lankow 43a71a7a6b Bug 1736273 - In the agenda, display when events start relative to the current time. r=aleca,mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D128703

--HG--
extra : rebase_source : 7a90429cae90addb4861ba43dbebc2bd5e945d8e
extra : histedit_source : 588f9f125e04df0e5b9d012529c122834afe1b78
2021-10-11 12:24:35 +13:00
Geoff Lankow 625a29cc8a Bug 1667962 - Avoid comparing calendar objects in a way that causes them to be printed to a log. r=mkmelin
The log printer follows a cyclical reference until it dies of "too much recursion".

Differential Revision: https://phabricator.services.mozilla.com/D128976

--HG--
extra : rebase_source : c1909693412deb639017163ef22632b32773abf8
2021-10-17 14:53:34 +13:00
Geoff Lankow c8d025f872 Bug 1736261 - Fix test for new agenda when run with libical. r=mkmelin
Libical is more picky when defining durations, it needs a "T" to specify a time. I forgot about this.

Differential Revision: https://phabricator.services.mozilla.com/D128699

--HG--
extra : rebase_source : caa6b9758b496584031ff25eec70b85139e815e7
2021-10-12 22:26:32 +13:00
Geoff Lankow 83630fb05d Bug 1629492 - Re-enable calendar tests that now pass. r=mschroeder
All of these tests appear to be passing again. If they play up again, we can turn them off again.

Differential Revision: https://phabricator.services.mozilla.com/D128321

--HG--
extra : rebase_source : a033e6d68cc9a3d057b670148fe0d6a657306b49
2021-10-13 15:23:00 +13:00
Geoff Lankow 780f009ce3 Bug 1728743 - Refresh the Today Pane agenda. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126079

--HG--
extra : rebase_source : eff2e12ac79d2520bd7b194ae87d99ca8def349d
2021-09-24 17:09:07 +12:00
Geoff Lankow 383d1f1a69 Bug 1732505 - Update timezones to 2021c. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D127227

--HG--
extra : amend_source : d1979825305f47ed55163742703eb27c161402e2
2021-10-04 13:02:13 +03:00
Lasana Murray 0537a86fb6 Bug 1612170 - Add CalExtractParserService to allow parsing and extract event info using alternative locales. r=darktrojan
This is still early days, only rules for parsing the included tests have been added so far. The CalExtractParserService
can be used instead of Extractor via a pref for experimentation.

Differential Revision: https://phabricator.services.mozilla.com/D125291

--HG--
extra : amend_source : 3061f336f165a4a4857fc94bee4342c15fdf04fc
2021-09-29 12:29:42 +03:00
Lasana Murray e84c2dfab7 Bug 1612170 - Add customisable parser for calendar item extraction. r=darktrojan
This adds CalExtractParser that can be configured to use lexical and parse rules
for the desired locale.

Differential Revision: https://phabricator.services.mozilla.com/D123287

--HG--
extra : amend_source : 355ef7a0796224da8912f8b3ea44940de5138f20
2021-09-29 12:29:18 +03:00
Geoff Lankow 0742529b59 Bug 1732420 - Port bug 1728180 - Unify js::intl_GetCalendarInfo. rs=bustage-fix
--HG--
extra : histedit_source : 7f55aec2a5732062add2e8943eea779c71e53803%2C3c47ebe7fdf85b77f1aee7b2ee4a05dacd881884
2021-09-24 15:08:03 +12:00
Geoff Lankow 00b094866f Bug 1731751 - Select the clicked-on calendar in the list before opening the context menu. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126209

--HG--
extra : rebase_source : 7976b640614ca0c1c017ae7eb1b7ed32c3fef83c
extra : histedit_source : 924af6a6775d384d67dfa5f281a1c0071f9a1aab%2C3f6e6f9a02f923803b43032cf3b801900f92dee8
2021-09-21 21:55:02 +12:00
Geoff Lankow 076cca0ece Bug 1719235 - Use CalendarTestUtils to create and remove calendars in tests. r=lasana
... and remove the last remaining traces of Mozmill from calendar tests, except where necessary to do things with mail.

Differential Revision: https://phabricator.services.mozilla.com/D122710

--HG--
extra : rebase_source : 02a23bcf0e1761a12795b52110d3d01edf833051
2021-08-16 16:18:18 +12:00
Geoff Lankow 2814310697 Bug 1731229 - Wait longer for calendar discovery in a test. r=mkmelin
It's just taking too long. Wait longer.

Differential Revision: https://phabricator.services.mozilla.com/D126170

--HG--
extra : amend_source : be2e203be725c7ff8e07f4eabdda3ee838e58fd6
2021-09-21 13:47:24 +03:00
Martin Schröder d7cbee906b Bug 1628815 - Removed obsolete workaround in test_caldav_client xpcshell test. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D126036

--HG--
extra : amend_source : ebaadc10eb5109f9e4971a764f94479582fb8e45
2021-09-20 12:55:50 +03:00
Geoff Lankow c95ebf4f2b Bug 1730635 - Add tests of CalDAV/CardDAV discovery using DNS. r=mkmelin
These tests hijack the DNS module's functions to return the intended result.

We can't use the mock servers for the tests because we only do discovery for HTTPS, and the mock servers can't speak HTTPS. Instead, we direct the code to some files on the Mochitest server.

Differential Revision: https://phabricator.services.mozilla.com/D125501

--HG--
extra : rebase_source : 3ea40a9b8e8456991f01dc087a4b4b3d480ab62a
2021-09-13 16:14:56 +12:00
Geoff Lankow ac9eb1f001 Bug 1727711 - Create an active version of calFilter to be used by calendar display widgets. r=mkmelin
To begin with, this new class (actually a mixin so it can be used with different base classes) has an instance of the original calFilter. In future it might consume calFilter when we no longer need that as a separate class.

No widgets currently use the mixin but I have prototyped a new Today Pane agenda which works well. I will finish that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D123733

--HG--
rename : calendar/base/src/calFilter.js => calendar/base/content/widgets/calendar-filter.js
extra : rebase_source : af66938088c0e7949e6fdec73ccb0ceb5debd8f4
2021-08-24 21:17:37 +12:00
Magnus Melin 88d88aa408 Bug 760412 - Always display text/calendar part along with chosen text/html part. r=darktrojan
This makes us always show the generated invite html together with the normal html part.
Invites usually have an ok display in there generated by the server or sending client, and I think we don't want to normally show both parts at the same time. This patch changes the imip invite to just show an expandable summary on top of the html from the email. By clicking the arrow the details (like we had them) will be displayed, so that it still is accessible for the cases where the html representation is not there in the email, or it's bad.

Displaying the normal html content of the email solves problems expecially for "cancelled with a note" updates where you otherwise can't see the note because it's only inside the mail content.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/760412-always-show-text-calendar.patch

Differential Revision: https://phabricator.services.mozilla.com/D123374

--HG--
extra : rebase_source : a472f5825b80992cbe8bb8d5a72275315959332a
2021-09-01 10:30:38 +03:00
Lasana Murray 67320205f8 Bug 1428254 - Prompt user before deleting items from calendar views and trees. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D122757
2021-08-26 23:43:18 +00:00
Martin Schröder bc14cbf848 Bug 1726917 - Make xpcshell test calendar/test/unit/test_util.js passing with an arbitrary os timezone set locally. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D123285

--HG--
extra : amend_source : 91fb64b30947aeaa45ff0fc21864d820a1274851
2021-08-23 13:25:39 +03:00
Martin Schröder 62868bbb82 Bug 1500122 - Use a custom locale for datetime formatting tests. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D123180

--HG--
extra : amend_source : 328f174c5e29e5c44d8a90b781089e46906baa4e
2021-08-23 12:46:42 +03:00
Geoff Lankow d1f17b3a23 Bug 1724842 - Replace calendar list with orderable listbox. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D122180

--HG--
extra : rebase_source : b197b148af9a084132b71756c217f2fab8aa0830
2021-07-19 12:23:45 +12:00
Henry Wilkes 74d4415dbb Bug 1722005 - Fix misplaced "attendeerole" from 9054c137e8fb. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D121698

--HG--
extra : histedit_source : 65a77ac7a806ca26c34795f07a7df04278f21fb9
2021-08-04 08:08:14 +00:00
Henry Wilkes 5da2b3f7e2 Bug 1722005 - Replace attendee icon "role" attribute name with "attendeerole". r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120713
2021-08-03 10:50:31 +00:00
Geoff Lankow 35eb74fd58 Bug 1719235 - Clean up a created calendar after use. rs=bustage-fix
--HG--
extra : amend_source : 2c65017c7dd8d9df9747c7ce924f34ee8b32886a
2021-07-30 14:41:31 +12:00
Geoff Lankow 0250527939 Bug 1719235 - Move goToDate and goToToday to CalendarTestUtils. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120918

--HG--
extra : rebase_source : 4b25acbc62274e33dc6754e001793d610cfa543d
extra : histedit_source : 875e852e110ce61a7783796bf28535dfd8084986
2021-07-27 14:38:06 +12:00
Geoff Lankow 3be000d706 Bug 1719235 - Tidy up a few loose ends. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120436

--HG--
extra : rebase_source : e6f25c14f96199d5be85ea6d72969d5ff0fe233b
extra : histedit_source : 21960e92004f906704a11e0042e11435917c09d6
2021-07-21 15:23:58 +12:00
Geoff Lankow 31b7972e28 Bug 1719235 - Stop using Mozmill controllers in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120435

--HG--
extra : rebase_source : 902063a62123e4bad32ec1e473b32fc570fe77c3
extra : histedit_source : a4fe47a3d591897427b668f97a175e1a350acb1c
2021-07-06 21:31:04 +12:00
Geoff Lankow 25f0d82409 Bug 1719235 - Stop using controller in createCalendar/deleteCalendars. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120434

--HG--
extra : rebase_source : 3af4f5913362337cfd7e30d4ff846dacc70ecfa8
extra : histedit_source : 9a4a458b5e18052f5630ba17e34e96a517bd9686
2021-07-06 20:54:42 +12:00
Geoff Lankow 79712cbf90 Bug 1719235 - Stop using controller.click in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120433

--HG--
extra : rebase_source : 88f616036500ecadca1728a4f532d95b25c230ec
extra : histedit_source : 5edef588a6431554b30463c2149c758e56de4147
2021-07-06 20:02:14 +12:00
Geoff Lankow 34b6069dde Bug 1719235 - Stop using controller.sleep and controller.waitFor in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120432

--HG--
extra : rebase_source : a776d1148e239ac0853ad42f2c9ff30b9469ede4
extra : histedit_source : 06344a1f79e0ce793c976d85e834a8f3391edc5b
2021-07-06 19:47:24 +12:00
Geoff Lankow c2a6e29a3c Bug 1719235 - Use `window` and `document` where appropriate in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120431

--HG--
extra : rebase_source : f1985098d98790bec85cb782b5ce3b042dbc057e
extra : histedit_source : 97c878d491839348c330419acd820c177dc79336
2021-07-06 16:35:53 +12:00
Geoff Lankow 2218a34d68 Bug 1719235 - Convert some more CalendarUtils functions from Mozmill. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120430

--HG--
extra : rebase_source : 84c1654939b8e0324b84ce14c05db7872f5f20c2
extra : histedit_source : c6f713cbef8a9419bafa2b13e87a037a02e61b51
2021-07-06 15:09:39 +12:00
Henry Wilkes 4ad004e95f Bug 1695039 - Show changes to an invitation email by editing the Document directly rather than replacing it. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120712

--HG--
extra : moz-landing-system : lando
2021-07-29 10:01:26 +00:00
Geoff Lankow a9b5296e58 Bug 1722257 - Fix timing in browser_testIdentityPrompt.js. r=lasana
We've been clicking on a button that wasn't visible yet.

Differential Revision: https://phabricator.services.mozilla.com/D120809

--HG--
extra : rebase_source : 1ea25d98daaaafcd9dcd57cb87ff9c3597f6c716
2021-07-26 12:45:14 +12:00
Lasana Murray 974e1a3b7d Bug 1595332 - Use the real properties getter to provide the properties of recurring events. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120122
2021-07-20 23:20:40 +00:00
Geoff Lankow 5c4decf735 Backed out changeset 005b8b023593 (bug 1595332) for breaking tests. rs=backout 2021-07-20 11:17:16 +12:00
Lasana Murray 6f26b27bda Bug 1595332 - Use the real properties getter to provide the properties of recurring events. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120122
2021-07-16 23:28:23 +00:00
Lasana Murray 1593f374a8 Bug 1718282 - Replace invoke*() functions with CalendarTestUtils equivalents. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D119457
2021-07-12 22:34:34 +00:00
Geoff Lankow 4d9746e0c1 Bug 1718921 - Add a pause in calendar providers test to prevent persistent failures. rs=bustage-fix
--HG--
extra : rebase_source : 41853473ddabc110ba097586e1aaf66ca9e6c710
extra : amend_source : b59f720343584093e85cdda71c95033c24fc24f7
2021-07-08 20:15:19 +12:00
Geoff Lankow d305933970 Bug 1718821 follow-up - Use a longer time-out. rs=bustage-fix 2021-07-08 21:45:00 +12:00
Geoff Lankow b4b4f85ffe Bug 1719235 - Stop using mozmill controllers in CalendarUtils event dialog functions. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D119144

--HG--
extra : rebase_source : 430ad8e90fe9001a72442ddf18048007a4362cc3
2021-07-05 15:09:35 +12:00
Geoff Lankow da4f49d465 Bug 1719235 - Reorganise calendar test module files. r=lasana
Just tidying up some mess before we get started.

Differential Revision: https://phabricator.services.mozilla.com/D119143

--HG--
rename : calendar/test/modules/CalendarTestUtils.jsm => calendar/test/CalendarTestUtils.jsm
rename : calendar/test/modules/CalendarUtils.jsm => calendar/test/CalendarUtils.jsm
rename : calendar/test/modules/ItemEditingHelpers.jsm => calendar/test/ItemEditingHelpers.jsm
extra : rebase_source : 46e3b3eabd281d283a346c8b004acf2e64e28f80
extra : histedit_source : 6c2504193020911922c4efce41bc5a0a945cefaf%2Cf5c80aeaedaee5d4fca5f6a67579f8d0f9ba4bd8
2021-07-05 14:50:07 +12:00
Geoff Lankow ab525291b2 Bug 1718583 follow-up - Stop browser_timezones.js and browser_storageCalendar.js timing out. rs=bustage-fix
--HG--
extra : rebase_source : 20c1723cfadd67feaa121102300211d5c44e6e68
2021-07-06 12:15:37 +12:00
Neil Rashbrook 1270f589f3 Bug 1718542 - Fetch the itip.transport calendar property again. r=lasana,darktrojan 2021-06-28 16:12:11 +01:00
Geoff Lankow 8c13d1d4f8 Bug 1718821 - Rearrange browser_alarmDialog.js to stop it failing. r=lasana,mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D118997

--HG--
extra : rebase_source : 94fa6757bef05e512c59169149e61f19821f5689
2021-07-01 15:08:52 +12:00
Lasana Murray 264acc0986 Bug 1337356 - Follow up: update lightning references in test. r=mkmelin
Also takes advantage of saveAndCloseItemDialog() new behaviour of
waiting for the dialog to be closed.

Differential Revision: https://phabricator.services.mozilla.com/D119011
2021-07-01 14:52:35 +00:00
Magnus Melin 04f37a47d3 Bug 1337356 - followup - fix linting. rs=eslint DONTBUILD 2021-07-01 14:22:03 +03:00
Lasana Murray efe89dbddb Bug 1337356 - Enable undo/redo for event creation and deletion. r=darktrojan
This was accomplished by making the CalTransactionManager class aware of
batch transactions which can result in peeking of the transaction stack
returning null.

Differential Revision: https://phabricator.services.mozilla.com/D118928

--HG--
extra : amend_source : 0619e7758538fb82d43216f2f4aa2f8d0da8e5f5
2021-07-01 13:56:18 +03:00
Lasana Murray 3d24d6b195 Bug 1718583 - Wait for window close event in saveAndCloseItemDialog(). r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D118929
2021-06-29 01:02:42 +00:00
Geoff Lankow 23df233a74 Bug 1718718 - Stop sending batch notifications when importing calendar items. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D118962

--HG--
extra : rebase_source : 7b550dd41fd0affb5b7cdb0e7dffbb45bb1bebd3
2021-06-30 16:51:32 +12:00
Geoff Lankow ee0289fc37 Bug 1710548 - Rename Lightning elements and functions. rs=mkmelin
This eliminates almost everything remaining named "Lightning" or "ltn" and not involved in L10n or preferences somehow.

Differential Revision: https://phabricator.services.mozilla.com/D118904

--HG--
extra : rebase_source : af81cd714f2c27df4eea403b4bc539ba8a806531
extra : amend_source : 6cfa1341f8f1cb0400c5ad4f32c90a006e22a3e9
2021-06-28 15:28:18 +12:00
Geoff Lankow 53bb0a95a4 Bug 1710548 - Move invitation utils from ltn. to cal. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D118902

--HG--
rename : calendar/base/content/lightning-invitation.xhtml => calendar/base/content/invitation-template.xhtml
rename : calendar/base/modules/ltnInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.jsm
rename : calendar/test/unit/test_ltninvitationutils.js => calendar/test/unit/test_invitationutils.js
extra : rebase_source : c8882d7b18e82e53cdd34a680a0663e7a3d52210
2021-06-28 14:23:46 +12:00
Neil Rashbrook 2dfe3b5d5e Bug 1607834 Support HTML descriptions for events r=darktrojan 2021-06-08 16:29:46 +01:00
Geoff Lankow 941b6210af Bug 1716680 - Test that synchronising calendars updates the views. r=mkmelin
This test synchronises with the remote calendar three times. An event is added the first time and should appear. It's modified the second time and should be updated. It's deleted the third time and should disappear.

Differential Revision: https://phabricator.services.mozilla.com/D118151

--HG--
extra : rebase_source : 1ed4779f49c24d0492fd55bc9851f190fe7b4eb3
extra : amend_source : 734b59aaeed5a3525ee9b9ffb67bb2ffdd4ee13d
2021-06-14 22:58:06 +12:00
Geoff Lankow 81cfe9b2ee Bug 1716680 - Reorganise calendar provider mochitests. r=mkmelin
Just a tidy-up to make the next patch easier.

Differential Revision: https://phabricator.services.mozilla.com/D118150

--HG--
extra : rebase_source : e229f0cc6550a8ad44c693a9e122338e75249d58
2021-06-14 22:11:59 +12:00
Ping Chen 0c9a7d8c03 Bug 1497434 - Support calendar notification times relative to both start and end. r=darktrojan
Redefine the calendar.notifications.times pref:
- use `END:` to mean relative to the end
- use comma as separator of entries

An example is `PT2M,END:-PT3M`.

Differential Revision: https://phabricator.services.mozilla.com/D117391

--HG--
extra : amend_source : 45d82d2baec1ffe2f7f75390bb26f7934bf69614
2021-06-17 13:06:35 +03:00
Geoff Lankow 4ae2f94595 Bug 1715923 - When authorising a Google mail account, request address book and calendar scopes too. r=mkmelin
This patch involves:
* changing the scopes we request when connecting mail (existing accounts are unaffected because the scope we originally requested is stored per-account in the preferences)
* teaching the CardDAV and CalDAV implementations to find passwords stored by username (with either the exact scope needed or many scopes)

Calendars with a username set (not sure how this happened, but they exist) will need to re-authorise. Other address books and calendars are not required to re-authorise.

Differential Revision: https://phabricator.services.mozilla.com/D117489

--HG--
extra : amend_source : b1e20b69683e846ed542115e063aace9917f00b5
2021-06-11 13:39:10 +03:00
Geoff Lankow 69c82301a2 Bug 1715923 - Test address book and calendar OAuth2 authentication. r=mkmelin
We need to know if anything is going to break in the changes we're about to make.

Differential Revision: https://phabricator.services.mozilla.com/D117488

--HG--
extra : amend_source : 14db84dd2cd908e2dfdb6a7ef317adcb2627be74
2021-06-11 13:38:51 +03:00
Geoff Lankow 203e00cc81 Bug 1665203 follow-up - Have CalDAVServer respond when asked for calendar privileges. rs=bustage-fix 2021-06-10 20:18:48 +12:00
Ben Campbell 660ed07b28 Bug 1715433 - Use initial-lowercase-letter naming convention in nsIMsgCopyService. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D117256

--HG--
extra : amend_source : 9466d9ce3ff06bc5a7ca014c514d70e023b421b4
2021-06-09 12:57:51 +03:00
Ben Campbell 04eb2e6bea Bug 1712451 - Set up profile dir at beginning of test_itip_utils.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D116335

--HG--
extra : amend_source : dec9170aaeee58f4670a53ecb510c0e3abf094cb
2021-05-31 13:49:21 +03:00
Henry Wilkes 82aadd8af2 Bug 1694820 - Structurally simplify calendar event items. r=darktrojan
Used HTML and CSS to reduce nesting of elements and to tidy their styling.

Also, made month and multiweek views more semantically correct by placing the "days of the week" headers within the <table>, and restyled it as a CSS grid.
Also, placed the month day event items within an <ol> element.

Also, renamed some classes to make them more consistent and meaningful, and dropped some duplicate or unused classes.

Differential Revision: https://phabricator.services.mozilla.com/D114731

--HG--
extra : amend_source : d277c9b32f8a00fec20364147a1cf76e0e881f9a
2021-05-27 13:12:26 +03:00
Lasana Murray b3e5782168 Bug 1711583 - Add mochitest for itip identity prompt. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115296

--HG--
extra : rebase_source : c85c8176b20534b7800c1867a4b2b489b136edd0
extra : histedit_source : 521229c821dfbb5d1266c6ea195205dfabeb0621
2021-05-17 22:20:35 +00:00
Lasana Murray 5718140f8c Bug 1711281 - Add unit tests for getInvitedAttendee() and getImipTransport. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115148

--HG--
extra : amend_source : a799b4de30d5b90a50787a1549cab6f0feb838c9
2021-05-21 13:46:58 +03:00
Lasana Murray bd6242c408 Bug 1711134 - Add unit tests for CalItipMessageSender for incoming invitations. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115099
2021-05-15 12:52:52 +03:00
Geoff Lankow fa2da443a8 Bug 1710964 - Restore day/week view scroll position on tab switch. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D115044

--HG--
extra : rebase_source : f7798bafa94b03abd0566558b4bb1551f10cd70f
extra : amend_source : ccf8465d53d1115b803066c7f5520493dd72184a
2021-05-13 14:33:29 +12:00
Ping Chen e3fdedad57 Bug 1237142 - Replace nsIAlertsService.showAlertNotification with showAlert. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D113921

--HG--
extra : amend_source : 3c3d1dd6eacbd96dfb71a6ea75d056bce4c25842
2021-04-30 13:51:42 +03:00
Henry Wilkes 66bf39da97 Bug 1683865 - Replace xul:image usage in setting event reminders. r=darktrojan
Also removed the test_addReminderImages unit test since it was testing ui features without 'document' or its localization, which is needed for setting img alt text.

Differential Revision: https://phabricator.services.mozilla.com/D111594
2021-04-21 11:20:46 +00:00
Henry Wilkes 483cb63834 Bug 1683303 - Remove XUL equalsize from event attendee box. r=darktrojan,mkmelin
Replace the dynamic grid behaviour for the XUL box with a single column list.

Now, both the organizer labels and attendee labels use the same constructor, to keep styling consistent. And the list of attendees is represented by an unordered list <ul>, which is more semantically correct.

Also, calendar editing, summaries and email invitations all use the same constructors for attendees, which removes code duplication and keeps styling consistent. They also share the same styling sheets and localization.

In addition, the invitation document (lightning-invitation.xhtml) was rewritten to be more semantically correct and therefore more accessible. In particular, we no longer embed a table within another table's cell for the organizer row and attendees row (the unordered list is used in the latter case). Unnecessary paragraph <p> elements were removed from the cells. Row headers were marked as <th>. And the table header was moved to a <caption>.

Differential Revision: https://phabricator.services.mozilla.com/D111411

--HG--
extra : amend_source : aee820ea0e2a8c8d66cd9ca6045f1a825e3dc383
2021-04-28 13:56:33 +03:00
Magnus Melin 94fa4e6742 Bug 1706985 - remove unused calICalendarSearchProvider. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D113131

--HG--
extra : rebase_source : aab387c6fd6c8a671866ed43697489f762acab3c
extra : amend_source : bcb900154688483f8191aaa6ac635b1462f2db16
2021-04-28 13:55:11 +03:00
Geoff Lankow b4465cecab Bug 1707800 - Fix browser_alarmDefaultValue.js. rs=bustage-fix
The "43" being typed into the preferences window was going to the search box instead of the number input as it should have. I think the click on the center of the input missed somehow.

--HG--
extra : rebase_source : a5ac3b0c13dac7d2fc86c6a2911ce8acffd63d87
2021-04-27 15:06:00 +12:00
Geoff Lankow 90bd9a56b2 Bug 1707152 - part 1 - Fix tests after bug 1700679 - native context menus on macOS. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D113213

--HG--
extra : amend_source : 1551d497d9422665b259b11648886240c91a2931
2021-04-23 13:59:12 +03:00
Ping Chen 64bda21386 Bug 1497434 - Support calendar level notification settings. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D112499

--HG--
extra : amend_source : 6dce971be15065f01742a6fae5e91da26e80fc6f
2021-04-22 12:52:39 +03:00
Geoff Lankow 60c4d098e8 Bug 1706514 - Fix unhandled rejection in browser_attachMenu.js. rs=bustage-fix 2021-04-21 12:14:48 +12:00
Geoff Lankow 1190525dce Bug 1684021 - Update timezones to 2021a. r=mkmelin
https://mm.icann.org/pipermail/tz-announce/2020-December/000063.html
https://mm.icann.org/pipermail/tz-announce/2021-January/000065.html

Differential Revision: https://phabricator.services.mozilla.com/D100416

--HG--
extra : moz-landing-system : lando
2021-04-15 22:49:17 +00:00
Magnus Melin 1a9ee810f3 Bug 1683865 - Backed out changeset 3a15062552f2 for test failures in at least calendar/test/unit/test_alarmutils.js
--HG--
extra : amend_source : 72e7edf1f8c69c5113ee187fea377455bc52854e
2021-04-15 12:58:32 +03:00
Henry Wilkes 246b944295 Bug 1683865 - Replace xul:image usage in setting event reminders. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D111594

--HG--
extra : moz-landing-system : lando
2021-04-15 05:27:34 +00:00
Henry Wilkes 7dfa4db6df Bug 1683865 - Replace xul:image usage in event attachments. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D111593

--HG--
extra : moz-landing-system : lando
2021-04-15 05:27:33 +00:00
Geoff Lankow d7d511d01a Bug 1700047 - Use batch notifications for better handling in CalAlarmService. r=mkmelin
This makes the alarm service ignore onAddItem and onModifyItem notifications in between onStartBatch and onEndBatch.
We know that onLoad will follow, at which point we reload all alarms from the calendar in question.
Ignoring the notifications prevents the alarms from firing multiple times in quick succession as the calendar loads.

I have in mind to follow this pattern across all of the UI pieces that listen to notifications, but first I really want to be sure (with tests) that sane behaviour is occurring.

I've added tests for this and (really lightly) the unifinder with all of the calendar types. More testing will be added to this later.
The ICS calendar with offline storage doesn't quite work right (as is the case in bug 1691885) but we can still test what does work.

Differential Revision: https://phabricator.services.mozilla.com/D109274

--HG--
extra : moz-landing-system : lando
2021-03-31 23:54:21 +00:00
Geoff Lankow 08f4750cd3 Bug 1700047 - Pass a calendar to calIObserver.onStartBatch and onEndBatch. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D109273

--HG--
extra : moz-landing-system : lando
2021-03-31 23:54:21 +00:00
Geoff Lankow 650d6b9be3 Bug 1691885 - Test notifications from CalDAV and ICS calendars. r=mkmelin
This tests each combination of calendar provider and offline storage setting to ensure they behave consistently.
To do this I've added mock CalDAV and ICS servers (forked from CardDAVServer.jsm).

Differential Revision: https://phabricator.services.mozilla.com/D109272

--HG--
rename : mailnews/addrbook/test/CardDAVServer.jsm => calendar/test/CalDAVServer.jsm
rename : mailnews/addrbook/test/CardDAVServer.jsm => calendar/test/ICSServer.jsm
extra : moz-landing-system : lando
2021-03-31 23:54:20 +00:00
Geoff Lankow 9eb4aa0517 Bug 1698143 follow-up - Fix broken test browser_customMinimonthCount.js. rs=bustage-fix 2021-04-01 11:33:33 +13:00
Ping Chen 4ad3636e06 Bug 1497434 - Initial step to support soft reminder in CalAlarmService. r=darktrojan
This patch adds a calendar.notifications.times pref in the form of "PT2H PT1M" to support multiple notifications. In followup patches, will add support for calendar level notification time, and UI to set the prefs.

Differential Revision: https://phabricator.services.mozilla.com/D109035
2021-03-30 00:19:17 +00:00
Henry Wilkes c223516eeb Bug 1696613 - Remove elementslib. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109755
2021-03-26 11:43:38 +00:00
Lasana Murray 912865abc2 Bug 1681224 - Add mochitests for remaining calendar views. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109775

--HG--
extra : moz-landing-system : lando
2021-03-29 21:56:03 +00:00
Geoff Lankow b77de5c7c4 Bug 1698506 - Fix browser_monthView.js and browser_weekView.js. r=mkmelin
These tests have started failing all of the time. The problem is that in
waiting for an event box, we're getting the existing box before it is
replaced by the new one we're waiting for.

Differential Revision: https://phabricator.services.mozilla.com/D109862

--HG--
extra : histedit_source : aa70d4c128685dbbf2ebd7ec04ef73bd32464234
2021-03-26 08:00:00 +00:00
Geoff Lankow 35c50b475c Port bug 1693133 - Changes to BrowserTestUtils.promiseAlertDialog and promiseAlertDialogOpen. rs=bustage-fix 2021-03-26 19:20:41 +13:00
Lasana Murray a0286b612b Bug 1683460 - Add tests for various supported drop types. r=darktrojan 2021-03-17 15:17:12 -04:00
Magnus Melin 7bd4cc825e Bug 1666296 - Properly show descriptions in Teams invites. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109301

--HG--
extra : rebase_source : e2138a9ac78f764e7e5549a53ee0f54948ca2464
extra : amend_source : 31057715086bf57282002eaeaa39ddd31245d20f
2021-03-24 12:49:32 +02:00
Lasana Murray 706f5b3749 Bug 1697997 - Clean up CalendarTestUtils. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108144

--HG--
extra : amend_source : d01e812f35756d217a89ad21423a017cb0df6d2c
2021-03-19 11:28:01 +13:00
Lasana Murray e3a24e3d90 Bug 1697848 - Move view helpers into their own class. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108048

--HG--
extra : amend_source : 950aacf9fc3a78e441676c7c06a485ef5653d277
extra : histedit_source : 96c5a08262a8cc8118577e2c0d8503f0b461505f
2021-03-18 11:03:52 +13:00
Lasana Murray 9e2edb51d3 Bug 1693735 - Wait for view to be refreshed before checking event title. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108466

--HG--
extra : histedit_source : 0781d0cb12d5889ca9ac3e79a621876c48f1e7d6
2021-03-15 15:17:39 +00:00
Geoff Lankow 5ab2f0c56d Bug 1686382 - In import dialog, allow sorting of events to import. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D103851

--HG--
extra : moz-landing-system : lando
2021-03-15 22:18:31 +00:00
Geoff Lankow b9b87a8da9 Bug 1683063 - In import dialog, allow filtering of items to import. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D100547

--HG--
extra : moz-landing-system : lando
2021-03-15 22:18:30 +00:00
Henry Wilkes ce483dceae Bug 1694631 - Stop using Lookup in CalendarUtils. r=darktrojan
The lookup and lookupEventBox methods require full tree paths to find elements, which makes them hard to maintain when restructuring.

These were dropped from CalendarUtils, along with the path related methods and constants.

The standard querySelector and getElementById methods were used instead.

In particular, the CalendarTestUtils module was expanded with the dayView, weekView and multiweekView submodules to replace the lookupEventBox usage.

Differential Revision: https://phabricator.services.mozilla.com/D107005

--HG--
extra : moz-landing-system : lando
2021-03-11 22:07:19 +00:00
Magnus Melin bafc2252a1 Bug 1692480 - remove setBooleanAttribute(). r=darktrojan
# setBooleanAttribute("id", "attr", value) -> document.getElementById("id").attr = value
find calendar -type f -not -path "*.hg/*" -regex ".*\.\(jsm\|js\)$" -exec sed -i -E 's/setBooleanAttribute\("([^,]+)", "([^,]+)", ([^,]+)\)/document.getElementById("\1").\2 = \3/g' {} \;

# setBooleanAttribute(id, "attr", value) -> document.getElementById(id).attr = value
 find calendar -type f -not -path "*.hg/*" -regex ".*\.\(jsm\|js\)$" -exec sed -i -E 's/setBooleanAttribute\(([^,]+), "([^,]+)", ([^,]+)\)/\1.\2 = \3/g' {} \;

+ manual fixups

To simplify matters made these boolean attributes:
* calendar-disabled
* calendar-readfailed
* calendar-readonly
2021-03-02 12:27:02 +02:00
Lasana Murray b621276193 Bug 1693870 - Move menulistSelect out of CalendarUtils and into ItemEditingHelpers. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D106321

--HG--
extra : amend_source : 532eeac5282dafff93c36c720e9a5bf7453a448b
2021-02-25 18:30:30 +00:00
Geoff Lankow 49cfa33e8c Bug 1687664 - Fix failures in browser_weeklyWithException.js. r=lasana
This appears to be happening because an edit is happening before the previous one has finished.
Waiting for the first edit to be reflected in the UI before moving on should prevent that.

Differential Revision: https://phabricator.services.mozilla.com/D104908

--HG--
extra : rebase_source : a28f9797b78d146b02f11cb54a3d91c1ba9f59b3
extra : histedit_source : f1038ede8eefcb150be56bd053d3217feee3dedd
2021-02-11 21:46:56 +13:00
Geoff Lankow cd0c335741 Bug 1691844 follow-up - Fix test to work with libical. rs=bustage-fix
--HG--
extra : rebase_source : 9056653a305795348c112aa662006e5e3e1602a4
2021-02-25 11:10:20 +13:00
Lasana Murray 77a876e480 Bug 1683444 - Move helper functions of browser_eventDialogEditButton.js into CalendarTestUtils. r=darktrojan DONTBUILD 2021-02-24 14:26:32 +02:00
Lasana Murray e85e0354ec Bug 1687329 - Part 2: Add isEvent() and isTodo() to calIItemBase. r=darktrojan
This also removed cal.item.isEvent() and cal.item.isTodo.
2021-02-20 12:14:08 +02:00
Lasana Murray 9d20c14d35 Bug 1689839 - Give browser_customMinimonthCount.js more time to finish. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D105364

--HG--
extra : moz-landing-system : lando
2021-02-18 07:02:08 +00:00
Geoff Lankow 8cf779c26f Bug 1692786 - Fix time out in browser_eventDialog.js. rs=bustage-fix
The accept button in commonDialog.xhtml doesn't seem to like synthesized events any more. Most likely due to bug 1685313.
2021-02-15 11:07:00 +13:00
Geoff Lankow 4fd292106f Bug 1691844 - Fix removal of events from views when a calendar becomes disabled. r=mkmelin
I made an erroneous change that stopped the events being removed from the month/multi-week view
but didn't notice because there was no test coverage. This fixes the change, performs the removal
by a different method altogether, and adds test coverage.

Differential Revision: https://phabricator.services.mozilla.com/D104650

--HG--
extra : moz-landing-system : lando
2021-02-10 21:49:27 +00:00
Lasana Murray 6d252d10f7 Bug 1688708 - do not assume items are events in countOccurrences(). r=darktrojan 2021-02-06 12:21:34 +02:00
Geoff Lankow 4a4959bee0 Bug 1617887 - Stop using Mozmill components in ItemEditingHelpers.jsm r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D102379

--HG--
extra : moz-landing-system : lando
2021-02-03 09:31:57 +00:00