Skip to content

Commit

Permalink
Add container items required for Glimmer.
Browse files Browse the repository at this point in the history
This is getting pretty annoying. We need a *much* better way to deal
with these default/fallback container items, but we also need tests
to work in Glimmer-land.  So, grrr, but YOLO...
  • Loading branch information
rwjblue committed May 6, 2015
1 parent 40ad0bf commit 87fb7f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ember-test-helpers/isolated-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ export function isolatedRegistry(fullNames) {
container.register('view:select', Ember.Select);
container.register('route:basic', Ember.Route, { instantiate: false });

// added in Glimmer
container.register('component:-link-to', Ember.LinkView);
container.register('component:-text-field', Ember.TextField);
container.register('component:-text-area', Ember.TextArea);
container.register('component:-checkbox', Ember.Checkbox);

if (Ember._LegacyEachView) {
container.register('view:-legacy-each', Ember._LegacyEachView);
}

var globalContext = typeof global === 'object' && global || self;
if (globalContext.DS) {
var DS = globalContext.DS;
Expand Down

0 comments on commit 87fb7f7

Please sign in to comment.