Skip to content

Commit

Permalink
JSX: Add test for #1342. Close #1342
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Mar 13, 2018
1 parent cc80ccd commit f0e6249
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions tests/languages/jsx/issue1342.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<CodeView title={<span title={123}>2</span>}>for of as</CodeView>

----------------------------------------------------

[
["tag", [
["tag", [
["punctuation", "<"],
"CodeView"
]],
["attr-name", ["title"]],
["script", [
["script-punctuation", "="],
["punctuation", "{"],
["tag", [
["tag", [
["punctuation", "<"],
"span"
]],
["attr-name", ["title"]],
["script", [
["script-punctuation", "="],
["punctuation", "{"],
["number", "123"],
["punctuation", "}"]
]],
["punctuation", ">"]
]],
["number", "2"],
["tag", [
["tag", [
["punctuation", "</"],
"span"
]],
["punctuation", ">"]
]],
["punctuation", "}"]
]],
["punctuation", ">"]
]],
["keyword", "for"],
["keyword", "of"],
["keyword", "as"],
["tag", [
["tag", [
["punctuation", "</"],
"CodeView"
]],
["punctuation", ">"]
]]
]

----------------------------------------------------

Checks for nested tag with JSX inside another tag with JSX. See #1342

0 comments on commit f0e6249

Please sign in to comment.