Skip to content

Commit

Permalink
uncomment identity element tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisselden committed May 11, 2017
1 parent 71a051a commit 9fb4cd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/@glimmer/runtime/lib/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export default class Scanner {
decorateTopLevelElement(tagName, symbols, attrs, newStatements);
}
addFallback(statement, newStatements);
} else {
if (toplevel === undefined && tagName === componentName) {
toplevel = tagName;
decorateTopLevelElement(tagName, symbols, attrs, newStatements);
addFallback(statement, newStatements);
}
}
} else {
if (toplevel === undefined && WireFormat.Statements.isOpenElement(statement)) {
Expand Down
7 changes: 4 additions & 3 deletions packages/@glimmer/runtime/test/ember-component-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2253,10 +2253,11 @@ let styles = [{
name: 'a div',
tagName: 'div',
test: QUnit.test
}, /*{
}, {
name: 'an identity element',
tagName: 'non-block'
},*/ {
tagName: 'non-block',
test: QUnit.test
}, {
name: 'a web component',
tagName: 'not-an-ember-component',
test: QUnit.test
Expand Down

0 comments on commit 9fb4cd3

Please sign in to comment.