Test#fillIn()

fillIn (selector, text) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:85 Fills in an input element with some text. Example: fillIn('#email', 'you@example.com').then(function() { // assert something }); Parameters: selector String jQuery selector finding an input element on the DOM to fill text with text String text to place inside the input element Returns: RSVP.Promise

Route#deactivate()

deactivatepublic Defined in packages/ember-routing/lib/system/route.js:868 This hook is executed when the router completely exits this route. It is not executed when the model for the route changes.

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

Ember.computed.sort()

sort (itemsKey, sortDefinition) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:584 A computed property which returns a new array with all the properties from the first dependent array sorted based on a property or sort function. The callback method you provide should have the following signature: function(itemA, itemB); itemA the first item to compare. itemB the second item to compare. This function should return negative number (e.g

Observable#incrementProperty()

incrementProperty (keyName, increment) Numberpublic Defined in packages/ember-runtime/lib/mixins/observable.js:433 Set the value of a property to the current value plus some amount. person.incrementProperty('age'); team.incrementProperty('score', 2); Parameters: keyName String The name of the property to increment increment Number The amount to increment by. Defaults to 1 Returns: Number The new property value

Observable#propertyDidChange()

propertyDidChange (keyName) Ember.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:294 Notify the observer system that a property has just changed. Sometimes you need to change a value directly or indirectly without actually calling get() or set() on it. In this case, you can use this method and propertyWillChange() instead. Calling these two methods together will notify all observers that the property has potentially changed value. Note that you must always call

Router#transitionTo()

transitionTo (name, models, options) Transitionpublic Defined in packages/ember-routing/lib/system/router.js:346 Transition the application into another route. The route may be either a single route or route path: See Route.transitionTo for more info. Parameters: name String the name of the route or a URL models ...Object the model(s) or identifier(s) to be used while transitioning to the route. options [Object] optional hash with a queryParams property containing a mapping of

Router#location

locationpublic Defined in packages/ember-routing/lib/system/router.js:52 The location property determines the type of URL's that your application will use. The following location types are currently available: history - use the browser's history API to make the URLs look just like any standard URL hash - use # to separate the server part of the URL from the Ember part: /blog/#/posts/new none - do not store the Ember URL in the actual browser URL (mainly used for testing) auto - use the

Observable#cacheFor()

cacheFor (keyName) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:490 Returns the cached value of a computed property, if it exists. This allows you to inspect the value of a computed property without accidentally invoking it if it is intended to be generated lazily. Parameters: keyName String Returns: Object The cached value of the computed property, if any

Debug.registerWarnHandler()

registerWarnHandler (handler) publicstatic Defined in packages/ember-debug/lib/index.js:260 Available since 2.1.0 Allows for runtime registration of handler functions that override the default warning behavior. Warnings are invoked by calls made to Ember.warn. The following example demonstrates its usage by registering a handler that does nothing overriding Ember's default warning behavior. // next is not called, so no warnings get the default behavior Ember.Debug.registerWarnHandler(() =&g