Skip to content

Commit

Permalink
[TODO] Add todo for emberjs#16256
Browse files Browse the repository at this point in the history
  • Loading branch information
Serabe committed Apr 6, 2018
1 parent cb96b57 commit bb4b868
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions packages/ember-glimmer/tests/integration/helpers/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,19 @@ moduleFor(
this.assert.equal(inputs[0].getAttribute('type'), 'password');
this.assert.equal(inputs[1].getAttribute('type'), 'email');
}

['@todo [GH#16256] input can be rendered twice'](assert) {
this.registerComponent('input-wrapper', {
template: '<label>My label</label>{{input type=type}}',
});
this.render(`{{input-wrapper type=firstType}}{{input-wrapper type=secondType}}`, {
firstType: 'email',
secondType: 'password',
});

let input = this.element.querySelectorAll('input');
assert.equal(input.length, 3, 'there are two inputs');
}
}
);

Expand Down
2 changes: 1 addition & 1 deletion tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@

testsTotal++;

if (results.failed > 0 && !results.todo) {
if ((results.failed > 0 && !results.todo) || (results.failed === 0 && results.todo)) {
testsFailed++;
} else {
testsPassed++;
Expand Down

0 comments on commit bb4b868

Please sign in to comment.