mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-21 18:22:58 -05:00
add tests
This commit is contained in:
12
tests/cases/fourslash/renameJsExports.ts
Normal file
12
tests/cases/fourslash/renameJsExports.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
////exports.[|area|] = function (r) { return r * r; }
|
||||
|
||||
// @Filename: b.js
|
||||
////var mod = require('./a');
|
||||
////var t = mod./**/[|area|](10);
|
||||
|
||||
goTo.marker();
|
||||
verify.renameLocations(false, false);
|
||||
12
tests/cases/fourslash/renameJsPrototypeProperty.ts
Normal file
12
tests/cases/fourslash/renameJsPrototypeProperty.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
////function bar() {
|
||||
////}
|
||||
////bar.prototype.[|x|] = 10;
|
||||
////var t = new bar();
|
||||
////t./**/[|x|] = 11;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameLocations(false, false);
|
||||
12
tests/cases/fourslash/renameJsThisProperty.ts
Normal file
12
tests/cases/fourslash/renameJsThisProperty.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
////function bar() {
|
||||
//// this.[|x|] = 10;
|
||||
////}
|
||||
////var t = new bar();
|
||||
////t./**/[|x|] = 11;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameLocations(false, false);
|
||||
Reference in New Issue
Block a user