Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Glimmer] Unskip component registration tests #13560

Closed
wants to merge 2 commits into from

Conversation

nickiaconis
Copy link
Contributor

Title says it all.

if (isEnabled('ember-glimmer')) {
OutletView = require('ember-glimmer/views/outlet').default;
} else {
OutletView = require('ember-htmlbars/views/outlet').OutletView;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ember-templates already does this branch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind, I thought it did, but I was wrong. I'm trying to get away from ember-views requiring ember-glimmer or ember-htmlbars, I'm trying to have it just be where stuff that is shared not branched is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is used from a test in packages/ember/tests only can you move it there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krisselden Makes sense. I've moved the file into the ember package.

@chadhietala
Copy link
Contributor

LGTM

if (component) {
let templateFullName = 'template:components/' + name;
let {
templateForName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we mixin this into component and pull it off? can we just drop it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krisselden Htmlbars expects it to be on the view/component, but component init runs too late for the same logic to apply in glimmer. I was trying to keep things DRY by pulling templateForName off the class, but I can WET-ify that function if it's preferred.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should emit a different opcode or the dynamic opcode when a layout is late bound and assert on the layout property like the tag expression is asserted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just use the partial opcode for the layout

@homu
Copy link
Contributor

homu commented Jun 2, 2016

☔ The latest upstream changes (presumably #13585) made this pull request unmergeable. Please resolve the merge conflicts.

@chadhietala
Copy link
Contributor

Superseded by #13588.

@chadhietala chadhietala closed this Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants