dist/ember-testing.js in ember-source-2.8.0.beta.2 vs dist/ember-testing.js in ember-source-2.8.0
- old
+ new
@@ -4,11 +4,11 @@
* @copyright Copyright 2011-2016 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
- * @version 2.8.0-beta.2
+ * @version 2.8.0
*/
var enifed, requireModule, require, Ember;
var mainContext = this;
@@ -217,17 +217,20 @@
* In a production build, this method is defined as an empty function (NOP).
Uses of this method in Ember itself are stripped from the ember.prod.js build.
@method deprecate
@param {String} message A description of the deprecation.
- @param {Boolean} test A boolean. If falsy, the deprecation
- will be displayed.
- @param {Object} options An object that can be used to pass
- in a `url` to the transition guide on the emberjs.com website, and a unique
- `id` for this deprecation. The `id` can be used by Ember debugging tools
- to change the behavior (raise, log or silence) for that specific deprecation.
- The `id` should be namespaced by dots, e.g. "view.helper.select".
+ @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
+ @param {Object} options
+ @param {String} options.id A unique id for this deprecation. The id can be
+ used by Ember debugging tools to change the behavior (raise, log or silence)
+ for that specific deprecation. The id should be namespaced by dots, e.g.
+ "view.helper.select".
+ @param {string} options.until The version of Ember when this deprecation
+ warning will be removed.
+ @param {String} [options.url] An optional url to the transition guide on the
+ emberjs.com website.
@for Ember
@public
*/
function deprecate(message, test, options) {
@@ -1093,10 +1096,11 @@
});
```
@method click
@param {String} selector jQuery selector for finding element on the DOM
+ @param {Object} context A DOM Element, Document, or jQuery to use as context
@return {RSVP.Promise}
@public
*/
_emberTestingTestHelpers.registerAsyncHelper('click', _emberTestingHelpersClick.default);
@@ -1338,10 +1342,10 @@
}
$el = app.testHelpers.findWithAssert(selector, context);
el = $el[0];
_emberTestingEvents.focus(el);
- $el.val(text);
+ $el.eq(0).val(text);
_emberTestingEvents.fireEvent(el, 'input');
_emberTestingEvents.fireEvent(el, 'change');
return app.testHelpers.wait();
}