mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fixed tests.
This commit is contained in:
parent
b9ddfcc082
commit
ddb67e461a
@ -6,10 +6,6 @@
|
||||
////var x: [|DefaultExportedClass|];
|
||||
////
|
||||
////var y = new [|DefaultExportedClass|];
|
||||
////
|
||||
////namespace [|DefaultExportedClass|] {
|
||||
//// var local = 100;
|
||||
////}
|
||||
|
||||
let ranges = test.ranges()
|
||||
for (let range of ranges) {
|
||||
|
||||
@ -7,10 +7,6 @@
|
||||
////var x: typeof [|DefaultExportedFunction|];
|
||||
////
|
||||
////var y = [|DefaultExportedFunction|]();
|
||||
////
|
||||
////namespace [|DefaultExportedFunction|] {
|
||||
//// var local = 100;
|
||||
////}
|
||||
|
||||
let ranges = test.ranges()
|
||||
for (let range of ranges) {
|
||||
|
||||
@ -1,23 +1,18 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
/////**
|
||||
//// * Commenting [|DefaultExportedClass|]
|
||||
//// */
|
||||
////export default class /*1*/[|DefaultExportedClass|] {
|
||||
////}
|
||||
/////*
|
||||
//// * Commenting [|DefaultExportedClass|]
|
||||
//// */
|
||||
////
|
||||
////var x: /*2*/[|DefaultExportedClass|];
|
||||
////
|
||||
////var y = new /*3*/[|DefaultExportedClass|];
|
||||
////
|
||||
////namespace /*4*/[|DefaultExportedClass|] {
|
||||
//// var local = 100;
|
||||
////}
|
||||
|
||||
let markers = test.markers()
|
||||
for (let marker of markers) {
|
||||
goTo.position(marker.position);
|
||||
|
||||
verify.renameLocations(/*findInStrings*/ false, /*findInComments*/ true);
|
||||
verify.renameInfoSucceeded("DefaultExportedClass");
|
||||
}
|
||||
@ -1,24 +1,19 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
/////**
|
||||
//// * Commenting [|DefaultExportedFunction|]
|
||||
//// */
|
||||
////export default function /*1*/[|DefaultExportedFunction|]() {
|
||||
//// return /*2*/[|DefaultExportedFunction|]
|
||||
////}
|
||||
/////**
|
||||
//// * Commenting [|DefaultExportedFunction|]
|
||||
//// */
|
||||
////
|
||||
////var x: typeof /*3*/[|DefaultExportedFunction|];
|
||||
////
|
||||
////var y = /*4*/[|DefaultExportedFunction|]();
|
||||
////
|
||||
////namespace /*5*/[|DefaultExportedFunction|] {
|
||||
//// var local = 100;
|
||||
////}
|
||||
|
||||
let markers = test.markers()
|
||||
for (let marker of markers) {
|
||||
goTo.position(marker.position);
|
||||
|
||||
verify.renameLocations(/*findInStrings*/ false, /*findInComments*/ true);
|
||||
verify.renameInfoSucceeded("DefaultExportedFunction");
|
||||
}
|
||||
@ -1,8 +1,5 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
/////**
|
||||
//// * Commenting [|f|]
|
||||
//// */
|
||||
////function /*1*/[|f|]() {
|
||||
//// return 100;
|
||||
////}
|
||||
@ -13,6 +10,9 @@
|
||||
////
|
||||
////var y = /*4*/[|f|]();
|
||||
////
|
||||
/////**
|
||||
//// * Commenting [|f|]
|
||||
//// */
|
||||
////namespace /*5*/[|f|] {
|
||||
//// var local = 100;
|
||||
////}
|
||||
@ -22,5 +22,4 @@ for (let marker of markers) {
|
||||
goTo.position(marker.position);
|
||||
|
||||
verify.renameLocations(/*findInStrings*/ false, /*findInComments*/ true);
|
||||
verify.renameInfoSucceeded("f");
|
||||
}
|
||||
14
tests/cases/fourslash/renameForDefaultExport04.ts
Normal file
14
tests/cases/fourslash/renameForDefaultExport04.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export default class /**/[|DefaultExportedClass|] {
|
||||
////}
|
||||
/////*
|
||||
//// * Commenting DefaultExportedClass
|
||||
//// */
|
||||
////
|
||||
////var x: DefaultExportedClass;
|
||||
////
|
||||
////var y = new DefaultExportedClass;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("DefaultExportedClass", "DefaultExportedClass");
|
||||
14
tests/cases/fourslash/renameForDefaultExport05.ts
Normal file
14
tests/cases/fourslash/renameForDefaultExport05.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export default class DefaultExportedClass {
|
||||
////}
|
||||
/////*
|
||||
//// * Commenting DefaultExportedClass
|
||||
//// */
|
||||
////
|
||||
////var x: /**/[|DefaultExportedClass|];
|
||||
////
|
||||
////var y = new DefaultExportedClass;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("DefaultExportedClass", "DefaultExportedClass");
|
||||
14
tests/cases/fourslash/renameForDefaultExport06.ts
Normal file
14
tests/cases/fourslash/renameForDefaultExport06.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export default class DefaultExportedClass {
|
||||
////}
|
||||
/////*
|
||||
//// * Commenting DefaultExportedClass
|
||||
//// */
|
||||
////
|
||||
////var x: DefaultExportedClass;
|
||||
////
|
||||
////var y = new /**/[|DefaultExportedClass|];
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("DefaultExportedClass", "DefaultExportedClass");
|
||||
15
tests/cases/fourslash/renameForDefaultExport07.ts
Normal file
15
tests/cases/fourslash/renameForDefaultExport07.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export default function /**/[|DefaultExportedFunction|]() {
|
||||
//// return DefaultExportedFunction
|
||||
////}
|
||||
/////**
|
||||
//// * Commenting DefaultExportedFunction
|
||||
//// */
|
||||
////
|
||||
////var x: typeof DefaultExportedFunction;
|
||||
////
|
||||
////var y = DefaultExportedFunction();
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("DefaultExportedFunction", "DefaultExportedFunction");
|
||||
15
tests/cases/fourslash/renameForDefaultExport08.ts
Normal file
15
tests/cases/fourslash/renameForDefaultExport08.ts
Normal file
@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////export default function DefaultExportedFunction() {
|
||||
//// return /**/[|DefaultExportedFunction|]
|
||||
////}
|
||||
/////**
|
||||
//// * Commenting DefaultExportedFunction
|
||||
//// */
|
||||
////
|
||||
////var x: typeof DefaultExportedFunction;
|
||||
////
|
||||
////var y = DefaultExportedFunction();
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("DefaultExportedFunction", "DefaultExportedFunction");
|
||||
21
tests/cases/fourslash/renameForDefaultExport09.ts
Normal file
21
tests/cases/fourslash/renameForDefaultExport09.ts
Normal file
@ -0,0 +1,21 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////function /**/[|f|]() {
|
||||
//// return 100;
|
||||
////}
|
||||
////
|
||||
////export default f;
|
||||
////
|
||||
////var x: typeof f;
|
||||
////
|
||||
////var y = f();
|
||||
////
|
||||
/////**
|
||||
//// * Commenting f
|
||||
//// */
|
||||
////namespace f {
|
||||
//// var local = 100;
|
||||
////}
|
||||
|
||||
goTo.marker();
|
||||
verify.renameInfoSucceeded("f", "f");
|
||||
Loading…
x
Reference in New Issue
Block a user