Bug 1643928 - [1.0] Assert for extension IDs instead of comparing instances. r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D79158
This commit is contained in:
Eugen Sawin 2020-06-10 18:06:23 +00:00
Родитель 39be65564e
Коммит e888fdae80
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1619,7 +1619,7 @@ class WebExtensionTest : BaseSessionTest() {
: GeckoResult<GeckoSession> {
assertThat(details.url, endsWith("options.html"))
assertEquals(details.active, true)
assertEquals(optionsExtension!!, source)
assertEquals(optionsExtension!!.id, source.id)
tabsCreateResult.complete(null)
return GeckoResult.fromValue(null)
}
@ -1648,7 +1648,7 @@ class WebExtensionTest : BaseSessionTest() {
assertThat(
source.metaData!!.optionsPageUrl,
endsWith("options.html"))
assertEquals(optionsExtension!!, source)
assertEquals(optionsExtension!!.id, source.id)
openOptionsPageResult.complete(null)
}
}