Tests for terminated/unterminated template strings.
This commit is contained in:
parent
0c348d28d5
commit
ae384470a4
6
tests/baselines/reference/templateStringTermination1.js
Normal file
6
tests/baselines/reference/templateStringTermination1.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
//// [templateStringTermination1.ts]
|
||||
|
||||
``
|
||||
|
||||
//// [templateStringTermination1.js]
|
||||
"";
|
|
@ -0,0 +1,4 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination1.ts ===
|
||||
|
||||
No type information for this code.``
|
||||
No type information for this code.
|
|
@ -0,0 +1,5 @@
|
|||
//// [templateStringTermination1_ES6.ts]
|
||||
``
|
||||
|
||||
//// [templateStringTermination1_ES6.js]
|
||||
``;
|
|
@ -0,0 +1,3 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination1_ES6.ts ===
|
||||
``
|
||||
No type information for this code.
|
6
tests/baselines/reference/templateStringTermination2.js
Normal file
6
tests/baselines/reference/templateStringTermination2.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
//// [templateStringTermination2.ts]
|
||||
|
||||
`\\`
|
||||
|
||||
//// [templateStringTermination2.js]
|
||||
"\";
|
|
@ -0,0 +1,4 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination2.ts ===
|
||||
|
||||
No type information for this code.`\\`
|
||||
No type information for this code.
|
|
@ -0,0 +1,5 @@
|
|||
//// [templateStringTermination2_ES6.ts]
|
||||
`\\`
|
||||
|
||||
//// [templateStringTermination2_ES6.js]
|
||||
`\\`;
|
|
@ -0,0 +1,3 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination2_ES6.ts ===
|
||||
`\\`
|
||||
No type information for this code.
|
6
tests/baselines/reference/templateStringTermination3.js
Normal file
6
tests/baselines/reference/templateStringTermination3.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
//// [templateStringTermination3.ts]
|
||||
|
||||
`\``
|
||||
|
||||
//// [templateStringTermination3.js]
|
||||
"`";
|
|
@ -0,0 +1,4 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination3.ts ===
|
||||
|
||||
No type information for this code.`\``
|
||||
No type information for this code.
|
|
@ -0,0 +1,5 @@
|
|||
//// [templateStringTermination3_ES6.ts]
|
||||
`\``
|
||||
|
||||
//// [templateStringTermination3_ES6.js]
|
||||
`\``;
|
|
@ -0,0 +1,3 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination3_ES6.ts ===
|
||||
`\``
|
||||
No type information for this code.
|
6
tests/baselines/reference/templateStringTermination4.js
Normal file
6
tests/baselines/reference/templateStringTermination4.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
//// [templateStringTermination4.ts]
|
||||
|
||||
`\\\\`
|
||||
|
||||
//// [templateStringTermination4.js]
|
||||
"\\";
|
|
@ -0,0 +1,4 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination4.ts ===
|
||||
|
||||
No type information for this code.`\\\\`
|
||||
No type information for this code.
|
|
@ -0,0 +1,5 @@
|
|||
//// [templateStringTermination4_ES6.ts]
|
||||
`\\\\`
|
||||
|
||||
//// [templateStringTermination4_ES6.js]
|
||||
`\\\\`;
|
|
@ -0,0 +1,3 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination4_ES6.ts ===
|
||||
`\\\\`
|
||||
No type information for this code.
|
6
tests/baselines/reference/templateStringTermination5.js
Normal file
6
tests/baselines/reference/templateStringTermination5.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
//// [templateStringTermination5.ts]
|
||||
|
||||
`\\\\\\`
|
||||
|
||||
//// [templateStringTermination5.js]
|
||||
"\\\";
|
|
@ -0,0 +1,4 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination5.ts ===
|
||||
|
||||
No type information for this code.`\\\\\\`
|
||||
No type information for this code.
|
|
@ -0,0 +1,5 @@
|
|||
//// [templateStringTermination5_ES6.ts]
|
||||
`\\\\\\`
|
||||
|
||||
//// [templateStringTermination5_ES6.js]
|
||||
`\\\\\\`;
|
|
@ -0,0 +1,3 @@
|
|||
=== tests/cases/conformance/es6/templates/templateStringTermination5_ES6.ts ===
|
||||
`\\\\\\`
|
||||
No type information for this code.
|
|
@ -0,0 +1,8 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated1.ts(2,2): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated1.ts (1 errors) ====
|
||||
|
||||
`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,7 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated1_ES6.ts(1,2): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated1_ES6.ts (1 errors) ====
|
||||
`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,8 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated2.ts(2,4): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated2.ts (1 errors) ====
|
||||
|
||||
`\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,7 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated2_ES6.ts(1,4): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated2_ES6.ts (1 errors) ====
|
||||
`\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,8 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated3.ts(2,4): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated3.ts (1 errors) ====
|
||||
|
||||
`\\
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,7 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts(1,4): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts (1 errors) ====
|
||||
`\\
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,8 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated4.ts(2,6): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated4.ts (1 errors) ====
|
||||
|
||||
`\\\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,7 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated4_ES6.ts(1,6): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated4_ES6.ts (1 errors) ====
|
||||
`\\\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,8 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated5.ts(2,8): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated5.ts (1 errors) ====
|
||||
|
||||
`\\\\\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,7 @@
|
|||
tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts(1,8): error TS1160: Unterminated template literal.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts (1 errors) ====
|
||||
`\\\\\`
|
||||
|
||||
!!! error TS1160: Unterminated template literal.
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
``
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
``
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\``
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\``
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\\\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\\\`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\\\\\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\\\\\`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\\`
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
`\\\\\`
|
|
@ -0,0 +1,2 @@
|
|||
// @target: ES6
|
||||
`\\\\\`
|
Loading…
Reference in a new issue