Bug 1719908 follow-up - Fix error message check for beta. r=john.bieling

A different error message is used depending on the channel: https://hg.mozilla.org/mozilla-central/rev/03939cd2d0ab#l5.1

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

--HG--
extra : amend_source : 12ef8c28efc9896d539c514423f356ce44fee9df
This commit is contained in:
Geoff Lankow 2021-07-13 17:51:27 +12:00
Родитель 400db85de8
Коммит a47204d0a4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -239,14 +239,14 @@ add_task(async function test_without_permission() {
// Try to use onAttachmentAdded.
await browser.test.assertThrows(
() => browser.compose.onAttachmentAdded.addListener(),
`can't access property "addListener", browser.compose.onAttachmentAdded is undefined`,
/browser\.compose\.onAttachmentAdded is undefined/,
"Should reject listener without proper permission"
);
// Try to use onAttachmentRemoved.
await browser.test.assertThrows(
() => browser.compose.onAttachmentRemoved.addListener(),
`can't access property "addListener", browser.compose.onAttachmentRemoved is undefined`,
/browser\.compose\.onAttachmentRemoved is undefined/,
"Should reject listener without proper permission"
);