-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1351 from glimmerjs/loose-lexical-support
- Loading branch information
Showing
7 changed files
with
148 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/@glimmer/integration-tests/test/lexical-scope-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { RenderTest, test, jitSuite, defineComponent } from '..'; | ||
|
||
class LexicalScopeTest extends RenderTest { | ||
static suiteName = 'loose mode: lexical scope'; | ||
|
||
@test | ||
'Can use a component in scope'() { | ||
const Foo = defineComponent({}, 'Hello, world!', { strictMode: false }); | ||
const Bar = defineComponent({ Foo }, '<Foo/>', { strictMode: false }); | ||
|
||
this.renderComponent(Bar); | ||
this.assertHTML('Hello, world!'); | ||
this.assertStableRerender(); | ||
} | ||
} | ||
|
||
jitSuite(LexicalScopeTest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.