Merge "Refresh auth credentials prospective fixes"
This commit is contained in:
@@ -100,6 +100,9 @@
|
||||
this.listen(document, 'visibilitychange', '_handleVisibilityChange');
|
||||
}
|
||||
this._requestCheckLoggedIn();
|
||||
if (!document.hidden) {
|
||||
this._handleVisibilityChange();
|
||||
}
|
||||
},
|
||||
|
||||
_createToastAlert: function() {
|
||||
|
||||
@@ -105,7 +105,7 @@ limitations under the License.
|
||||
|
||||
var hideToastSpy = sandbox.spy(toast, 'hide');
|
||||
|
||||
assert.isFalse(refreshStub.called);
|
||||
assert.isTrue(refreshStub.called);
|
||||
element.flushDebouncer('checkLoggedIn');
|
||||
flush(function() {
|
||||
assert.isTrue(refreshStub.called);
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
},
|
||||
|
||||
refreshCredentials: function() {
|
||||
this._cache['/accounts/self/detail'] = undefined;
|
||||
this._cache = {};
|
||||
return this.getLoggedIn();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user