2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Upgrade QUnit to latest version

This commit is contained in:
Robin Ward 2017-06-14 13:57:58 -04:00
parent 8ae445766f
commit cc525b1a8d
145 changed files with 7569 additions and 6763 deletions

View file

@ -3,7 +3,7 @@ moduleForComponent('combo-box', {integration: true});
componentTest('with objects', {
template: '{{combo-box content=items value=value}}',
setup() {
beforeEach() {
this.set('items', [{id: 1, name: 'hello'}, {id: 2, name: 'world'}]);
},
@ -17,7 +17,7 @@ componentTest('with objects', {
componentTest('with objects and valueAttribute', {
template: '{{combo-box content=items valueAttribute="value"}}',
setup() {
beforeEach() {
this.set('items', [{value: 0, name: 'hello'}, {value: 1, name: 'world'}]);
},
@ -30,7 +30,7 @@ componentTest('with objects and valueAttribute', {
componentTest('with an array', {
template: '{{combo-box content=items value=value}}',
setup() {
beforeEach() {
this.set('items', ['evil', 'trout', 'hat']);
},
@ -44,7 +44,7 @@ componentTest('with an array', {
componentTest('with none', {
template: '{{combo-box content=items none="test.none" value=value}}',
setup() {
beforeEach() {
I18n.translations[I18n.locale].js.test = {none: 'none'};
this.set('items', ['evil', 'trout', 'hat']);
},
@ -59,7 +59,7 @@ componentTest('with none', {
componentTest('with Object none', {
template: '{{combo-box content=items none=none value=value selected="something"}}',
setup() {
beforeEach() {
this.set('none', { id: 'something', name: 'none' });
this.set('items', ['evil', 'trout', 'hat']);
},