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:
irengrig
2016-04-06 14:08:06 +02:00
parent 1d6e6c7ec1
commit 869508f52c
@@ -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) {