add tests for trivia

This commit is contained in:
Arthur Ozga
2017-06-06 14:22:11 -07:00
parent 7c22e50269
commit d9a68e3fb0
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
//// [| namespace greeter {
//// /* comment1 */
//// class /* comment2 */ class1 {
//// }
//// } |]
verify.rangeAfterCodeFix(`namespace greeter {
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);

View File

@@ -0,0 +1,14 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
//// [| namespace greeter {
//// /* comment1 */
//// class /* comment2 */ class1 {
//// }
//// } |]
verify.rangeAfterCodeFix(`namespace greeter {
/* comment1 */
class /* comment2 */ _class1 {
}
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1);