Skip to content

Commit

Permalink
[BUGFIX beta] Add test for #14727
Browse files Browse the repository at this point in the history
  • Loading branch information
Serabe committed Jul 19, 2017
1 parent 75af143 commit f9d01b6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/ember-glimmer/tests/integration/helpers/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,26 @@ moduleFor('Helpers test: {{input}} with dynamic type', class extends InputRender

this.assertAttr('type', 'text');
}

['@test GH#14727 type can change from any type to file']() {
this.render(`{{input type=type}}`, {
type: 'text',
});

this.assertAttr('type', 'text');

this.runTask(() => this.rerender());

this.assertAttr('type', 'text');

this.runTask(() => set(this.context, 'type', 'file'));

this.assertAttr('type', 'file');

this.runTask(() => set(this.context, 'type', 'text'));

this.assertAttr('type', 'text');
}
});

moduleFor(`Helpers test: {{input type='checkbox'}}`, class extends InputRenderingTest {
Expand Down

0 comments on commit f9d01b6

Please sign in to comment.