@@ -71,19 +71,23 @@ func TestIncremental(t *testing.T) {
71
71
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;` ,
72
72
}, "/home/src/workspaces/project" ),
73
73
commandLineArgs : []string {"--incremental" },
74
- // edits: [
75
- // noChangeRun,
76
- // {
77
- // caption: "modify public to protected",
78
- // edit: sys => sys.replaceFileText("/home/src/workspaces/project/MessageablePerson.ts", "public", "protected"),
79
- // },
80
- // noChangeRun,
81
- // {
82
- // caption: "modify protected to public",
83
- // edit: sys => sys.replaceFileText("/home/src/workspaces/project/MessageablePerson.ts", "protected", "public"),
84
- // },
85
- // noChangeRun,
86
- // ],
74
+ edits : []* testTscEdit {
75
+ noChange ,
76
+ {
77
+ caption : "modify public to protected" ,
78
+ edit : func (sys * testSys ) {
79
+ sys .ReplaceFileText ("/home/src/workspaces/project/MessageablePerson.ts" , "public" , "protected" )
80
+ },
81
+ },
82
+ noChange ,
83
+ {
84
+ caption : "modify protected to public" ,
85
+ edit : func (sys * testSys ) {
86
+ sys .ReplaceFileText ("/home/src/workspaces/project/MessageablePerson.ts" , "protected" , "public" )
87
+ },
88
+ },
89
+ noChange ,
90
+ },
87
91
},
88
92
{
89
93
subScenario : "change to modifier of class expression field" ,
@@ -108,19 +112,23 @@ func TestIncremental(t *testing.T) {
108
112
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;` ,
109
113
}, "/home/src/workspaces/project" ),
110
114
commandLineArgs : []string {"--incremental" },
111
- // edits: [
112
- // noChangeRun,
113
- // {
114
- // caption: "modify public to protected",
115
- // edit: sys => sys.replaceFileText("/home/src/workspaces/project/MessageablePerson.ts", "public", "protected"),
116
- // },
117
- // noChangeRun,
118
- // {
119
- // caption: "modify protected to public",
120
- // edit: sys => sys.replaceFileText("/home/src/workspaces/project/MessageablePerson.ts", "protected", "public"),
121
- // },
122
- // noChangeRun,
123
- // ],
115
+ edits : []* testTscEdit {
116
+ noChange ,
117
+ {
118
+ caption : "modify public to protected" ,
119
+ edit : func (sys * testSys ) {
120
+ sys .ReplaceFileText ("/home/src/workspaces/project/MessageablePerson.ts" , "public" , "protected" )
121
+ },
122
+ },
123
+ noChange ,
124
+ {
125
+ caption : "modify protected to public" ,
126
+ edit : func (sys * testSys ) {
127
+ sys .ReplaceFileText ("/home/src/workspaces/project/MessageablePerson.ts" , "protected" , "public" )
128
+ },
129
+ },
130
+ noChange ,
131
+ },
124
132
},
125
133
}
126
134
0 commit comments