-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Coquereau
committed
Feb 6, 2014
1 parent
cb05102
commit f60d5c7
Showing
10 changed files
with
4,462 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
/node_modules | ||
/vendor/* | ||
!/vendor/loader.js | ||
!/vendor/sinon.js | ||
|
||
# misc | ||
/.sass-cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
var App; | ||
// var App; | ||
|
||
module('Acceptances - Component', { | ||
setup: function(){ | ||
App = startApp(); | ||
}, | ||
teardown: function() { | ||
Ember.run(App, 'destroy'); | ||
} | ||
}); | ||
// module('Acceptances - Component', { | ||
// setup: function(){ | ||
// App = startApp(); | ||
// }, | ||
// teardown: function() { | ||
// Ember.run(App, 'destroy'); | ||
// } | ||
// }); | ||
|
||
test('component output is rendered', function(){ | ||
expect(2); | ||
// test('component output is rendered', function(){ | ||
// expect(2); | ||
|
||
visit('/component-test').then(function(){ | ||
var list = find('.pretty-color'); | ||
equal(list.length, 3); | ||
equal(list.first().text(), 'Pretty Color: purple\n'); | ||
}); | ||
}); | ||
// visit('/component-test').then(function(){ | ||
// var list = find('.pretty-color'); | ||
// equal(list.length, 3); | ||
// equal(list.first().text(), 'Pretty Color: purple\n'); | ||
// }); | ||
// }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
var App; | ||
// var App; | ||
|
||
module("Acceptances - Helper", { | ||
setup: function(){ | ||
App = startApp(); | ||
}, | ||
teardown: function() { | ||
Ember.run(App, 'destroy'); | ||
} | ||
}); | ||
// module("Acceptances - Helper", { | ||
// setup: function(){ | ||
// App = startApp(); | ||
// }, | ||
// teardown: function() { | ||
// Ember.run(App, 'destroy'); | ||
// } | ||
// }); | ||
|
||
test("helper output is rendered", function(){ | ||
expect(1); | ||
// test("helper output is rendered", function(){ | ||
// expect(1); | ||
|
||
visit('/helper-test').then(function(){ | ||
ok(exists("h3:contains('My name is Ember.')")); | ||
}); | ||
}); | ||
// visit('/helper-test').then(function(){ | ||
// ok(exists("h3:contains('My name is Ember.')")); | ||
// }); | ||
// }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
var App; | ||
// var App; | ||
|
||
module('Acceptances - Index', { | ||
setup: function(){ | ||
App = startApp(); | ||
}, | ||
teardown: function() { | ||
Ember.run(App, 'destroy'); | ||
} | ||
}); | ||
// module('Acceptances - Index', { | ||
// setup: function(){ | ||
// App = startApp(); | ||
// }, | ||
// teardown: function() { | ||
// Ember.run(App, 'destroy'); | ||
// } | ||
// }); | ||
|
||
test('index renders', function(){ | ||
expect(3); | ||
// test('index renders', function(){ | ||
// expect(3); | ||
|
||
visit('/').then(function(){ | ||
var title = find('h2#title'); | ||
var list = find('ul li'); | ||
// visit('/').then(function(){ | ||
// var title = find('h2#title'); | ||
// var list = find('ul li'); | ||
|
||
equal(title.text(), 'Welcome to Ember.js'); | ||
// equal(title.text(), 'Welcome to Ember.js'); | ||
|
||
equal(list.length, 3); | ||
equal(list.text(), 'redyellowblue'); | ||
}); | ||
}); | ||
// equal(list.length, 3); | ||
// equal(list.text(), 'redyellowblue'); | ||
// }); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { test , moduleForComponent } from 'appkit/tests/helpers/module_for'; | ||
// import { test , moduleForComponent } from 'appkit/tests/helpers/module_for'; | ||
|
||
moduleForComponent('pretty-color'); | ||
// moduleForComponent('pretty-color'); | ||
|
||
test("changing colors", function(){ | ||
var component = this.subject(); | ||
// test("changing colors", function(){ | ||
// var component = this.subject(); | ||
|
||
Ember.run(function(){ | ||
component.set('name','red'); | ||
}); | ||
// Ember.run(function(){ | ||
// component.set('name','red'); | ||
// }); | ||
|
||
// first call to $() renders the component. | ||
equal(this.$().attr('style'), 'color: red;'); | ||
// // first call to $() renders the component. | ||
// equal(this.$().attr('style'), 'color: red;'); | ||
|
||
Ember.run(function(){ | ||
component.set('name', 'green'); | ||
}); | ||
// Ember.run(function(){ | ||
// component.set('name', 'green'); | ||
// }); | ||
|
||
equal(this.$().attr('style'), 'color: green;'); | ||
}); | ||
// equal(this.$().attr('style'), 'color: green;'); | ||
// }); | ||
|
||
|
||
test("className", function(){ | ||
// first call to this.$() renders the component. | ||
ok(this.$().is('.pretty-color')); | ||
}); | ||
// test("className", function(){ | ||
// // first call to this.$() renders the component. | ||
// ok(this.$().is('.pretty-color')); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { test , moduleFor } from 'appkit/tests/helpers/module_for'; | ||
|
||
import Index from 'appkit/routes/index'; | ||
import Index from 'appkit/routes/application'; | ||
|
||
moduleFor('route:index', "Unit - IndexRoute"); | ||
describe('route:application :: unit', function(){ | ||
it('should pass', function(){ | ||
|
||
test("it exists", function(){ | ||
ok(this.subject() instanceof Index); | ||
}); | ||
}); | ||
|
||
test("#model", function(){ | ||
deepEqual(this.subject().model(), ['red', 'yellow', 'blue']); | ||
}); |
Oops, something went wrong.