add tests

This commit is contained in:
zhengbli
2016-01-27 13:26:41 -08:00
parent b389e9c619
commit 9a6815f3c7
3 changed files with 36 additions and 0 deletions

View 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);

View 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);

View 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);