@@ -48,8 +48,8 @@ describe('loading:', function () {
4848 // the mounted MatrixChat
4949 let matrixChat ;
5050
51- // a promise which resolves when the MatrixChat calls onLoadCompleted
52- let loadCompletePromise ;
51+ // a promise which resolves when the MatrixChat calls onTokenLoginCompleted
52+ let tokenLoginCompletePromise ;
5353
5454 beforeEach ( function ( ) {
5555 test_utils . beforeEach ( this ) ;
@@ -100,8 +100,8 @@ describe('loading:', function () {
100100 toString : function ( ) { return this . search + this . hash ; } ,
101101 } ;
102102
103- let loadCompleteDefer = q . defer ( ) ;
104- loadCompletePromise = loadCompleteDefer . promise ;
103+ let tokenLoginCompleteDefer = q . defer ( ) ;
104+ tokenLoginCompletePromise = tokenLoginCompleteDefer . promise ;
105105
106106 function onNewScreen ( screen ) {
107107 console . log ( Date . now ( ) + " newscreen " + screen ) ;
@@ -136,7 +136,7 @@ describe('loading:', function () {
136136 realQueryParams = { params }
137137 startingFragmentQueryParams = { fragParts . params }
138138 enableGuest = { true }
139- onLoadCompleted = { loadCompleteDefer . resolve }
139+ onTokenLoginCompleted = { tokenLoginCompleteDefer . resolve }
140140 initialScreenAfterLogin = { getScreenFromLocation ( windowLocation ) }
141141 makeRegistrationUrl = { ( ) => { throw new Error ( 'Not implemented' ) ; } }
142142 /> , parentDiv
@@ -517,12 +517,12 @@ describe('loading:', function () {
517517
518518 return httpBackend . flush ( ) ;
519519 } ) . then ( ( ) => {
520- // at this point, MatrixChat should fire onLoadCompleted , which
520+ // at this point, MatrixChat should fire onTokenLoginCompleted , which
521521 // makes index.js reload the app. We're not going to attempt to
522522 // simulate the reload - just check that things are left in the
523523 // right state for the reloaded app.
524524
525- return loadCompletePromise ;
525+ return tokenLoginCompletePromise ;
526526 } ) . then ( ( ) => {
527527 // check that the localstorage has been set up in such a way that
528528 // the reloaded app can pick up where we leave off.
0 commit comments