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

811 Коммитов

Автор SHA1 Сообщение Дата
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