added tests for formatting in try blocks, add startEndOverlapsWithStartEnd

This commit is contained in:
Vladimir Matveev
2014-11-08 23:03:38 -08:00
parent b1c2907e21
commit 5bbdbffbc3
6 changed files with 53 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
/// <reference path='fourslash.ts' />
////try
////{
//// var x = 1/*1*/
////}
////catch (e)
////{
////}
goTo.marker("1");
edit.insert(";")
verify.currentLineContentIs(" var x = 1;");

View File

@@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
////switch (1) {
//// case 1:
//// {
//// /*1*/
//// break;
////}
goTo.marker("1");
edit.insert("}");
verify.currentLineContentIs(" }");

View File

@@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
////if (true) {
////}
////else {
//// if (true) {
//// /*1*/
////}
goTo.marker("1");
edit.insert("}")
verify.currentLineContentIs(" }");