Skip to content

Commit

Permalink
isolate
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Nov 27, 2015
1 parent 84518d3 commit 5d70974
Show file tree
Hide file tree
Showing 42 changed files with 10 additions and 440 deletions.
4 changes: 0 additions & 4 deletions app/components/fizz-baz.js

This file was deleted.

4 changes: 0 additions & 4 deletions app/components/foo-bar.js

This file was deleted.

Empty file removed app/controllers/.gitkeep
Empty file.
4 changes: 0 additions & 4 deletions app/controllers/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/models/comment.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/models/post.js

This file was deleted.

13 changes: 0 additions & 13 deletions app/routes/application.js

This file was deleted.

13 changes: 0 additions & 13 deletions app/routes/comments.js

This file was deleted.

4 changes: 4 additions & 0 deletions app/routes/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
13 changes: 0 additions & 13 deletions app/routes/posts.js

This file was deleted.

15 changes: 0 additions & 15 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
<h2 id="title">Welcome to Ember</h2>

<ul class="main-nav">
{{#link-to "index"}}home{{/link-to}}
{{#link-to "posts"}}posts{{/link-to}}
{{#link-to "comments"}}comments{{/link-to}}
</ul>

{{foo-bar}}
{{fizz-baz}}

{{#each model as |item|}}
{{item.name}}
{{/each}}

{{outlet}}

{{partial "footer"}}
9 changes: 0 additions & 9 deletions app/templates/comments.hbs

This file was deleted.

2 changes: 0 additions & 2 deletions app/templates/components/fizz-baz.hbs

This file was deleted.

3 changes: 0 additions & 3 deletions app/templates/footer.hbs

This file was deleted.

1 change: 1 addition & 0 deletions app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
7 changes: 0 additions & 7 deletions app/templates/nav.hbs

This file was deleted.

13 changes: 0 additions & 13 deletions app/templates/posts.hbs

This file was deleted.

9 changes: 0 additions & 9 deletions app/templates/posts/drafts.hbs

This file was deleted.

7 changes: 0 additions & 7 deletions app/templates/summary.hbs

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/comments.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/nav.js

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/posts.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/summary.js

This file was deleted.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "leaky-mcleakerson",
"dependencies": {
"ember": "1.13.10",
"ember": "1.13.11",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.13.5",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"ember-cli-app-version": "0.4.0",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-ic-ajax": "0.2.1",
Expand Down
22 changes: 4 additions & 18 deletions tests/acceptance/comments-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from 'container-leak/tests/helpers/start-app';
import {STRESS_TIMES} from 'container-leak/tests/helpers/utils';

module('Acceptance | comments', {
beforeEach: function() {
Expand All @@ -13,20 +12,7 @@ module('Acceptance | comments', {
}
});

function runInSeries(i) {
test('visiting /comments' + i, function(assert) {
visit('/');
click(".main-nav > a:eq(2)");

andThen(function() {
assert.equal(currentURL(), '/comments');
});
click(".main-nav > a:eq(1)");
click(".main-nav > a:eq(0)");
});
}
var i = 0;
while(i < STRESS_TIMES) {
runInSeries(i);
i++;
}
test('visiting /comments', function(assert) {
visit('/');
assert.ok(true);
});
33 changes: 0 additions & 33 deletions tests/acceptance/index-test.js

This file was deleted.

33 changes: 0 additions & 33 deletions tests/acceptance/posts-test.js

This file was deleted.

77 changes: 0 additions & 77 deletions tests/helpers/memory-stats.js

This file was deleted.

2 changes: 0 additions & 2 deletions tests/helpers/start-app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Ember from "ember";
import Application from "../../app";
import config from "../../config/environment";
import MemoryStats from "./memory-stats";

export default function startApp(attrs) {
let application;

MemoryStats.profile();
let attributes = Ember.merge({}, config.APP);
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;

Expand Down
Loading

0 comments on commit 5d70974

Please sign in to comment.