Test.checkWaiters()

checkWaiterspublicstatic Defined in packages/ember-testing/lib/test/waiters.js:74 Iterates through each registered test waiter, and invokes its callback. If any waiter returns false, this method will return true indicating that the waiters have not settled yet. This is generally used internally from the acceptance/integration test infrastructure.

Test.Adapter#exception()

exception (error) public Defined in packages/ember-testing/lib/adapters/adapter.js:38 Override this method with your testing framework's false assertion. This function is called whenever an exception occurs causing the testing promise to fail. QUnit example: exception: function(error) { ok(false, error); }; Parameters: error String The exception to be raised.

Test.Adapter#asyncStart()

asyncStartpublic Defined in packages/ember-testing/lib/adapters/adapter.js:19 This callback will be called whenever an async operation is about to start. Override this to call your framework's methods that handle async operations.

Test.Adapter#asyncEnd()

asyncEndpublic Defined in packages/ember-testing/lib/adapters/adapter.js:30 This callback will be called whenever an async operation has completed.

Test.Adapter

Ember.Test.Adapter Class PUBLIC Defined in: packages/ember-testing/lib/adapters/adapter.js:10 Module: ember-testing The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.

Test#_helpers

_helpersprivate Defined in packages/ember-testing/lib/test.js:42 Available since 1.7.0 Hash containing all known test helpers.

Test#wait()

wait (value) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:140 Causes the run loop to process any pending events. This is used to ensure that any async operations from other helpers (or your assertions) have been processed. This is most often used as the return value for the helper functions (see 'click', 'fillIn','visit',etc). Example: Ember.Test.registerAsyncHelper('loginUser', function(app, username, password) { visit('secured/path/here') .fillIn('#username', us

Test#visit()

visit (url) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:24 Loads a route, sets up any controllers, and renders any templates associated with the route as though a real user had triggered the route change while using your app. Example: visit('posts/index').then(function() { // assert something }); Parameters: url String the name of the route Returns: RSVP.Promise

Test#unregisterWaiter()

unregisterWaiter (context, callback) public Defined in packages/ember-testing/lib/test/waiters.js:47 Available since 1.2.0 unregisterWaiter is used to unregister a callback that was registered with registerWaiter. Parameters: context Object (optional) callback Function

Test#unregisterHelper()

unregisterHelper (name) public Defined in packages/ember-testing/lib/test/helpers.js:91 Remove a previously added helper method. Example: Ember.Test.unregisterHelper('wait'); Parameters: name String The helper to remove.