mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update testcases
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// var x1 = </**/
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListCount(0);
|
||||
@@ -1,8 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// class MyElement {}
|
||||
//// var x1 = <My/**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.memberListCount(0);
|
||||
@@ -1,8 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// class MyElement {}
|
||||
//// var x1 = <My/**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.memberListCount(0);
|
||||
@@ -1,9 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// class MyElement {}
|
||||
//// var x1 = <MyElement></My/**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('MyElement');
|
||||
@@ -1,7 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// var x1 = </**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.memberListCount(0);
|
||||
@@ -1,8 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// var x1 = <MyElement></My/**/
|
||||
|
||||
goTo.marker("");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('MyElement');
|
||||
@@ -1,30 +0,0 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// var x = <div>
|
||||
//// <h1> </ /*1*/>
|
||||
//// <d/*3*/iv> </ /*4*/>
|
||||
//// <d/*5*/iv> </ /*6*/>
|
||||
//// </ /*2*/>
|
||||
|
||||
goTo.marker("1");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('h1');
|
||||
|
||||
goTo.marker("2");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
|
||||
goTo.marker("3");
|
||||
verify.memberListCount(0);
|
||||
|
||||
goTo.marker("4");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
|
||||
goTo.marker("5");
|
||||
verify.memberListCount(0);
|
||||
|
||||
goTo.marker("6");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// declare module JSX {
|
||||
//// interface Element { }
|
||||
//// interface IntrinsicElements {
|
||||
//// div: { ONE: string; TWO: number; }
|
||||
//// }
|
||||
//// }
|
||||
//// var x1 = <div><//**/
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
@@ -0,0 +1,20 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// declare module JSX {
|
||||
//// interface Element { }
|
||||
//// interface IntrinsicElements {
|
||||
//// div: { ONE: string; TWO: number; }
|
||||
//// }
|
||||
//// }
|
||||
//// var x1 = <div>
|
||||
//// <h1> Hello world </ /*2*/>
|
||||
//// </ /* 1 * />
|
||||
|
||||
goTo.marker("1");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
|
||||
goTo.marker("2");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('h1')
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
//// var x1 = <div>
|
||||
//// <h1> Hello world </ /*2*/>
|
||||
//// </ /* 1 * />
|
||||
|
||||
goTo.marker("1");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('div');
|
||||
|
||||
goTo.marker("2");
|
||||
verify.memberListCount(1);
|
||||
verify.completionListContains('h1')
|
||||
Reference in New Issue
Block a user