зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1369092 - Listen to onverified events in UIState. r=markh
MozReview-Commit-ID: 8nfmpaz9obF --HG-- extra : rebase_source : 736673d0c1245b81ea9f419f08b943c3ce26a8e6
This commit is contained in:
Родитель
c3adb686ab
Коммит
0c6026b415
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче