Skip to content

Commit

Permalink
fix test when run with jquery=git
Browse files Browse the repository at this point in the history
  • Loading branch information
krisselden committed Jul 10, 2012
1 parent 6ae344e commit 2e1a3fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ember-handlebars/tests/controls/select_test.js
Expand Up @@ -100,7 +100,11 @@ test("can retrieve the current selected options when multiple=true", function()

deepEqual(select.get('selection'), [], "By default, nothing is selected");

select.$(':contains("Tom"), :contains("David")').each(function() { this.selected = true; });
select.$('option').each(function() {
if (this.value === 'Tom' || this.value === 'David') {
this.selected = true;
}
});

select.$().trigger('change');

Expand Down

0 comments on commit 2e1a3fa

Please sign in to comment.