UX: Improve the way users set timers for TopicStatusUpdate.

This commit is contained in:
Guo Xiang Tan
2017-04-20 11:48:59 +08:00
parent 0f2e2ea175
commit 5c39c8f24b
23 changed files with 472 additions and 236 deletions
@@ -56,3 +56,19 @@ componentTest('with none', {
assert.equal(this.$("select option:eq(2)").text(), 'trout');
}
});
componentTest('with Object none', {
template: '{{combo-box content=items none=none value=value selected="something"}}',
setup() {
this.set('none', { id: 'something', name: 'none' });
this.set('items', ['evil', 'trout', 'hat']);
},
test(assert) {
assert.equal(this.get('value'), 'something');
assert.equal(this.$("select option:eq(0)").text(), 'none');
assert.equal(this.$("select option:eq(0)").val(), 'something');
assert.equal(this.$("select option:eq(1)").text(), 'evil');
assert.equal(this.$("select option:eq(2)").text(), 'trout');
}
});