mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
js: convert to arrow function intention. for WEB-16918 New refactorings (JS): convert to arrow function/convert to anonymous function
NB intention is not suggested if this is used in function code (would require adding additional parameter to function) + mark es6-refactorings with marker interface
This commit is contained in:
+11
-5
@@ -210,6 +210,16 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
}
|
||||
|
||||
public static void doAllTests(QuickFixTestCase testCase) {
|
||||
final File[] files = getBeforeTestFiles(testCase);
|
||||
|
||||
for (File file : files) {
|
||||
final String testName = file.getName().substring(BEFORE_PREFIX.length());
|
||||
doTestFor(testName, testCase);
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static File[] getBeforeTestFiles(QuickFixTestCase testCase) {
|
||||
assertNotNull("getBasePath() should not return null!", testCase.getBasePath());
|
||||
|
||||
final String testDirPath = testCase.getTestDataPath().replace(File.separatorChar, '/') + testCase.getBasePath();
|
||||
@@ -224,11 +234,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
if (files == null || files.length == 0) {
|
||||
fail("Test files not found in " + testDirPath);
|
||||
}
|
||||
|
||||
for (File file : files) {
|
||||
final String testName = file.getName().substring(BEFORE_PREFIX.length());
|
||||
doTestFor(testName, testCase);
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
protected void doSingleTest(String fileSuffix) {
|
||||
|
||||
Reference in New Issue
Block a user