Skip to content

Commit

Permalink
Apply last feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox committed Feb 7, 2018
1 parent 0c3d175 commit 13859d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
- env: EMBER_TRY_SCENARIO=ember-canary-without-application-wrapper

# runs deploy if running on a specific tag
- stage: deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export function visit() {
})
.then(() => {
// eslint-disable-next-line
if (EmberENV.FEATURES['ember-glimmer-remove-application-template-wrapper']) {
context.element = document.querySelector('#ember-testing');
} else {
if (EmberENV._APPLICATION_TEMPLATE_WRAPPER) {
context.element = document.querySelector('#ember-testing > .ember-view');
} else {
context.element = document.querySelector('#ember-testing');
}
})
.then(settled);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ export default function setupRenderingContext(context) {
// and therefore we cannot update the `this.element` until after the
// rendering is completed
// eslint-disable-next-line
if (EmberENV.FEATURES['ember-glimmer-remove-application-template-wrapper']) {
context.element = getRootElement();
} else {
if (EmberENV._APPLICATION_TEMPLATE_WRAPPER) {
context.element = getRootElement().querySelector('.ember-view');
} else {
context.element = getRootElement();
}

return context;
Expand Down
8 changes: 8 additions & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ module.exports = function() {
},
},
},
{
name: 'ember-canary-without-application-wrapper',
npm: {
devDependencies: {
'ember-source': urls[2],
},
},
},
{
name: 'ember-default-with-jquery',
npm: {
Expand Down
4 changes: 3 additions & 1 deletion tests/dummy/config/environment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint-env node */
'use strict';
let wrapperProp =
process.env.EMBER_TRY_CURRENT_SCENARIO !== 'ember-canary-without-application-wrapper';

module.exports = function(environment) {
let ENV = {
Expand All @@ -8,10 +10,10 @@ module.exports = function(environment) {
rootURL: '/',
locationType: 'auto',
EmberENV: {
_APPLICATION_TEMPLATE_WRAPPER: wrapperProp,
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
'ember-glimmer-remove-application-template-wrapper': true,
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Expand Down

0 comments on commit 13859d3

Please sign in to comment.