mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-25 10:20:49 -06:00
Add test with backslash
This commit is contained in:
parent
9ae98d6a37
commit
aa322ea18a
@ -50,6 +50,13 @@ var p = 0;
|
||||
|
||||
</div>;
|
||||
|
||||
// Emit "hello\\ world"
|
||||
<div>
|
||||
|
||||
hello\
|
||||
|
||||
world
|
||||
</div>;
|
||||
|
||||
|
||||
//// [file.js]
|
||||
@ -77,3 +84,5 @@ React.createElement("div", null, "3");
|
||||
React.createElement("div", null);
|
||||
// Emit "foo bar"
|
||||
React.createElement("div", null, "foo bar");
|
||||
// Emit "hello\\ world"
|
||||
React.createElement("div", null, "hello\\ world");
|
||||
|
||||
@ -90,4 +90,13 @@ var p = 0;
|
||||
</div>;
|
||||
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
||||
|
||||
// Emit "hello\\ world"
|
||||
<div>
|
||||
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
||||
|
||||
hello\
|
||||
|
||||
world
|
||||
</div>;
|
||||
>div : Symbol(JSX.IntrinsicElements, Decl(file.tsx, 1, 22))
|
||||
|
||||
|
||||
@ -100,4 +100,14 @@ var p = 0;
|
||||
</div>;
|
||||
>div : any
|
||||
|
||||
// Emit "hello\\ world"
|
||||
<div>
|
||||
><div> hello\world</div> : JSX.Element
|
||||
>div : any
|
||||
|
||||
hello\
|
||||
|
||||
world
|
||||
</div>;
|
||||
>div : any
|
||||
|
||||
|
||||
@ -51,3 +51,10 @@ var p = 0;
|
||||
|
||||
</div>;
|
||||
|
||||
// Emit "hello\\ world"
|
||||
<div>
|
||||
|
||||
hello\
|
||||
|
||||
world
|
||||
</div>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user