2018-06-04 19:08:15 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2018-07-10 23:31:18 +02:00
|
|
|
// Using separate files for each example to avoid unclosed JSX tags affecting other tests.
|
|
|
|
|
|
|
|
// @Filename: /0.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div>/*0*/;
|
2018-07-10 23:31:18 +02:00
|
|
|
|
|
|
|
// @Filename: /1.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div> foo/*1*/ </div>;
|
2018-07-10 23:31:18 +02:00
|
|
|
|
|
|
|
// @Filename: /2.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div></div>/*2*/;
|
2018-07-10 23:31:18 +02:00
|
|
|
|
|
|
|
// @Filename: /3.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div/>/*3*/;
|
2018-07-10 23:31:18 +02:00
|
|
|
|
|
|
|
// @Filename: /4.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div>
|
|
|
|
//// <p>/*4*/
|
|
|
|
//// </div>
|
|
|
|
////</p>;
|
2018-07-10 23:31:18 +02:00
|
|
|
|
|
|
|
// @Filename: /5.tsx
|
2018-06-04 19:08:15 +02:00
|
|
|
////const x = <div> text /*5*/;
|
|
|
|
|
2018-07-10 23:31:18 +02:00
|
|
|
// @Filename: /6.tsx
|
|
|
|
////const x = <div>
|
|
|
|
//// <div>/*6*/
|
|
|
|
////</div>;
|
|
|
|
|
|
|
|
// @Filename: /7.tsx
|
|
|
|
////const x = <div>
|
|
|
|
//// <p>/*7*/
|
|
|
|
////</div>;
|
|
|
|
|
|
|
|
// @Filename: /8.tsx
|
|
|
|
////const x = <div>
|
|
|
|
//// <div>/*8*/</div>
|
|
|
|
////</div>;
|
|
|
|
|
2018-06-04 19:08:15 +02:00
|
|
|
verify.jsxClosingTag({
|
|
|
|
0: { newText: "</div>" },
|
|
|
|
1: undefined,
|
|
|
|
2: undefined,
|
|
|
|
3: undefined,
|
|
|
|
4: { newText: "</p>" },
|
2018-07-10 23:31:18 +02:00
|
|
|
5: { newText: "</div>" },
|
|
|
|
6: { newText: "</div>" },
|
|
|
|
7: { newText: "</p>" },
|
|
|
|
8: undefined,
|
2018-06-04 19:08:15 +02:00
|
|
|
});
|