Skip to content

Conversation

@chadhietala
Copy link
Contributor

@chadhietala chadhietala commented Jun 15, 2016

This migrates the {{render}} tests to the new test infra. It also removes these tests dependency on the hardcoded InteractiveRenderer in CoreView.

Ported, consolidated, and removed tests are annotated below.

Part of #13644

@chadhietala chadhietala changed the title [GLIMMER2] Migrate {{render}} tests WIP [GLIMMER2] Migrate {{render}} tests Jun 15, 2016
@homu
Copy link
Contributor

homu commented Jun 15, 2016

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

@chadhietala chadhietala force-pushed the migrate-render-tests branch from 50e1574 to 3b9c195 Compare June 16, 2016 00:03
@chadhietala chadhietala force-pushed the migrate-render-tests branch from 3b9c195 to 0e25c9f Compare June 16, 2016 01:09
equal(view.$().text(), 'HIBYE');
// This is a poor assertion. What is really being tested is that
// a second render with the same name will throw an assert.
ok(appInstance.lookup('router:main')._lookupActiveComponentNode('home'), 'should register home as active view');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just seems wrong so I removed it.

@chadhietala chadhietala changed the title WIP [GLIMMER2] Migrate {{render}} tests [GLIMMER2] Migrate {{render}} tests Jun 16, 2016
this.assertText('HIFOOBARBAZ');
}

['@test should have assertion if neither template nor view exists']() {
Copy link
Member

Choose a reason for hiding this comment

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

Can you tweak this title and remove view (we don't support the view part anymore and I think I missed it when I updated te original test)?

@rwjblue rwjblue merged commit f9ca19b into emberjs:master Jun 16, 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.

3 participants