Skip to content

Commit

Permalink
Unskip emberjs#6
Browse files Browse the repository at this point in the history
  • Loading branch information
nickiaconis committed Jun 1, 2016
1 parent cc54ce4 commit ed78c4c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/ember-testing/tests/helpers_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,20 +732,22 @@ test('`fillIn` fires `input` and `change` events in the proper order', function(
return wait();
});

test('`triggerEvent accepts an optional options hash and context', function() {
QUnit.test('`triggerEvent` accepts an optional options hash and context', function() {
expect(3);

var triggerEvent, wait, event;

App.IndexView = EmberView.extend({
template: compile('{{input type="text" id="outside-scope" class="input"}}<div id="limited">{{input type="text" id="inside-scope" class="input"}}</div>'),

App.register('component:evt-listener', Component.extend({
didInsertElement() {
this.$('.input').on('keydown change', function(e) {
event = e;
});
}
});
}));

App.register('template:components/evt-listener', compile('<input type="text" id="outside-scope" class="input" /><div id="limited"><input type="text" id="inside-scope" class="input" /></div>'));

setTemplate('index', compile('{{evt-listener}}'));

run(App, App.advanceReadiness);

Expand Down

0 comments on commit ed78c4c

Please sign in to comment.