Skip to content

Commit 2c220e7

Browse files
committed
test: add test from b63f8a1 back
1 parent 4c31a16 commit 2c220e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/compiler/test/ml_parser/lexer_spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,6 +2877,16 @@ describe('HtmlLexer', () => {
28772877
]);
28782878
});
28792879

2880+
it('should accept closing tags with prefix', () => {
2881+
expect(tokenizeAndHumanizeParts(`<html:script>a</html:script>`)).toEqual([
2882+
[TokenType.TAG_OPEN_START, 'html', 'script'],
2883+
[TokenType.TAG_OPEN_END],
2884+
[TokenType.TEXT, 'a'],
2885+
[TokenType.TAG_CLOSE, 'html', 'script'],
2886+
[TokenType.EOF],
2887+
]);
2888+
});
2889+
28802890
it('should store the locations', () => {
28812891
expect(tokenizeAndHumanizeSourceSpans(`<script>a</script>`)).toEqual([
28822892
[TokenType.TAG_OPEN_START, '<script'],

0 commit comments

Comments
 (0)