More tests

This commit is contained in:
Sheetal Nandi 2019-05-31 11:57:43 -07:00
parent 6c04a0d14e
commit bcf7752c1f
5 changed files with 14 additions and 11 deletions

View File

@ -5,7 +5,7 @@
//// set: function (x) {
//// this._x = x;
//// },
//// copy: function ([|x|]) {
//// copy: function ([|{| "declarationRangeIndex": 0 |}x|]) {
//// this._x = [|x|].prop;
//// }
////};

View File

@ -5,7 +5,7 @@
//// set: function (x) {
//// this._x = x;
//// },
//// copy: function ([|x|]) {
//// copy: function ([|{| "declarationRangeIndex": 0 |}x|]) {
//// this._x = [|x|].prop;
//// }
////};

View File

@ -3,7 +3,7 @@
////class Foo {
////}
////
////var x = class [|Foo|] {
////var x = [|class [|{| "declarationRangeIndex": 0 |}Foo|] {
//// doIt() {
//// return [|Foo|];
//// }
@ -11,7 +11,7 @@
//// static doItStatically() {
//// return [|Foo|].y;
//// }
////}
////}|]
////
////var y = class {
//// getSomeName() {
@ -20,4 +20,5 @@
////}
////var z = class Foo {}
verify.rangesAreRenameLocations();
const [rDef, ...rest] = test.ranges();
verify.rangesAreRenameLocations(rest);

View File

@ -1,7 +1,8 @@
/// <reference path='fourslash.ts'/>
////var x = function [|f|](g: any, h: any) {
////var x = [|function [|{| "declarationRangeIndex": 0 |}f|](g: any, h: any) {
//// [|f|]([|f|], g);
////}
////}|]
verify.rangesAreRenameLocations();
const [rDef, ...rest] = test.ranges();
verify.rangesAreRenameLocations(rest);

View File

@ -3,11 +3,12 @@
////function f() {
////
////}
////var x = function [|f|](g: any, h: any) {
////var x = [|function [|{| "declarationRangeIndex": 0 |}f|](g: any, h: any) {
////
//// let helper = function f(): any { f(); }
////
//// let foo = () => [|f|]([|f|], g);
////}
////}|]
verify.rangesAreRenameLocations();
const [rDef, ...rest] = test.ranges();
verify.rangesAreRenameLocations(rest);