registerWaiter (context, callback) public
This allows ember-testing to play nicely with other asynchronous events, such as an application that is waiting for a CSS3 transition or an IndexDB transaction.
For example:
Ember.Test.registerWaiter(function() {
return myPendingTransactions() == 0;
});
The context argument allows you to optionally specify the this with which your callback will be invoked.
For example:
Ember.Test.registerWaiter(MyDB, MyDB.hasPendingTransactions);
Parameters:
-
context
Object - (optional)
-
callback
Function
Please login to continue.