2016-02-03 09:18:36 +01:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowNonTsExtensions: true
|
|
|
|
// @Filename: Foo.js
|
|
|
|
|
|
|
|
//// var someObject = {
|
|
|
|
//// /**
|
|
|
|
//// * @param {string} param1 Some string param.
|
|
|
|
//// * @param {number} parm2 Some number param.
|
|
|
|
//// */
|
|
|
|
//// someMethod: function(param1, param2) {
|
|
|
|
//// console.log(param1/*1*/);
|
|
|
|
//// return false;
|
|
|
|
//// },
|
|
|
|
//// /**
|
|
|
|
//// * @param {number} p1 Some number param.
|
|
|
|
//// */
|
|
|
|
//// otherMethod(p1) {
|
|
|
|
//// p1/*2*/
|
|
|
|
//// }
|
2018-10-29 18:03:25 +01:00
|
|
|
////
|
2016-02-03 09:18:36 +01:00
|
|
|
//// };
|
|
|
|
|
|
|
|
goTo.marker('1');
|
|
|
|
edit.insert('.');
|
2018-10-30 19:56:34 +01:00
|
|
|
verify.completions({ includes: { name: "substr", kind: "method", kindModifiers: "declare" } });
|
2016-02-03 09:18:36 +01:00
|
|
|
edit.backspace();
|
|
|
|
|
|
|
|
goTo.marker('2');
|
|
|
|
edit.insert('.');
|
2018-10-30 19:56:34 +01:00
|
|
|
verify.completions({ includes: { name: "toFixed", kind: "method", kindModifiers: "declare" } });
|
2016-02-03 09:18:36 +01:00
|
|
|
edit.backspace();
|