TypeScript/tests/cases/fourslash/autoFormattingOnPasting.ts

27 lines
844 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/// <reference path='fourslash.ts' />
////module TestModule {
/////**/
////}
goTo.marker("");
2017-06-20 05:30:11 +02:00
edit.paste(` class TestClass{
private foo;
public testMethod( )
{}
}`);
2015-03-02 23:41:44 +01:00
// We're missing scenarios of formatting option settings due to bug 693273 - [TypeScript] Need to improve fourslash support for formatting options.
// Missing scenario ** Uncheck Tools->Options->Text Editor->TypeScript->Formatting->General->Format on paste **
2018-01-12 02:43:27 +01:00
//verify.currentFileContentIs("module TestModule {\n\
// class TestClass{\n\
//private foo;\n\
//public testMethod( )\n\
//{}\n\
//}\n\
2015-03-02 23:41:44 +01:00
//}");
// Missing scenario ** Check Tools->Options->Text Editor->TypeScript->Formatting->General->Format on paste **
2017-06-20 05:30:11 +02:00
verify.currentFileContentIs(`module TestModule {
class TestClass {
private foo;
public testMethod() { }
}
}`);