Bug 1369092 - Listen to onverified events in UIState. r=markh

MozReview-Commit-ID: 8nfmpaz9obF

--HG--
extra : rebase_source : 736673d0c1245b81ea9f419f08b943c3ce26a8e6
This commit is contained in:
Edouard Oger 2017-05-31 12:02:28 -04:00
Родитель c3adb686ab
Коммит 0c6026b415
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -30,6 +30,7 @@ const TOPICS = [
"weave:service:sync:start",
"weave:service:sync:finish",
"weave:service:sync:error",
"fxaccounts:onverified",
"fxaccounts:onlogin", // Defined in FxAccountsCommon, pulling it is expensive.
"fxaccounts:onlogout",
"fxaccounts:profilechange",

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

@ -169,8 +169,9 @@ add_task(async function test_observer_refreshState() {
let refreshState = sinon.spy(UIStateInternal, "refreshState");
let shouldRefresh = ["weave:service:login:change", "weave:service:login:error",
"weave:service:ready", "fxaccounts:onlogin",
"fxaccounts:onlogout", "fxaccounts:profilechange"];
"weave:service:ready", "fxaccounts:onverified",
"fxaccounts:onlogin", "fxaccounts:onlogout",
"fxaccounts:profilechange"];
for (let topic of shouldRefresh) {
let uiUpdateObserved = observeUIUpdate();