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

[Glimmer2] Port {{partial}} test to ember-glimmer. #13199

Closed
wants to merge 1 commit into from
Closed

[Glimmer2] Port {{partial}} test to ember-glimmer. #13199

wants to merge 1 commit into from

Conversation

jheth
Copy link
Contributor

@jheth jheth commented Mar 28, 2016

This converts the existing {{partial}} test to glimmer.

As noted, partial is not support in Glimmer 2 so these are tagged to @htmlbars

The one addition to the tests is calling assertStableRerender

Issue #13127

@rwjblue rwjblue changed the title [Glimmer2] Port {{partial} test to ember-glimmer. [Glimmer2] Port {{partial}} test to ember-glimmer. Mar 28, 2016
@jheth
Copy link
Contributor Author

jheth commented Mar 28, 2016

All test method descriptions remained the same.

}
});

QUnit.test('should render other templates registered with the container', function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced by Line 6

@jheth jheth changed the title [Glimmer2] Port {{partial}} test to ember-glimmer. [Glimmer2] Port {{partial}} test to ember-glimmer. Mar 28, 2016
@wycats
Copy link
Member

wycats commented Apr 5, 2016

@jheth Thanks so much for doing the initial port.

A couple things:

  • Can you add the U and R steps? For example, you will want to test updating the partial name and elements of the context used in the partial.
  • There are a couple of places where the old {{template}} name is used in the test name and should be changed to {{partial}}.

There are some similar problems in the dynamic component ("component helper") case. You can have a look at https://github.com/emberjs/ember.js/blob/master/packages/ember-glimmer/tests/integration/components/dynamic-components-test.js.

@chancancode
Copy link
Member

superseded by #13306

chadhietala added a commit to chadhietala/ember.js that referenced this pull request Apr 12, 2016
toddjordan pushed a commit to toddjordan/ember.js that referenced this pull request Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants