Lines 55-62
Link Here
|
55 |
private long time; |
55 |
private long time; |
56 |
|
56 |
|
57 |
static { |
57 |
static { |
58 |
// TESTS_NUMBERS = new int[] { 669 }; |
58 |
// TESTS_NUMBERS = new int[] { 715 }; |
59 |
// TESTS_RANGE = new int[] { 658, -1 }; |
59 |
// TESTS_RANGE = new int[] { 715, -1 }; |
60 |
} |
60 |
} |
61 |
public static Test suite() { |
61 |
public static Test suite() { |
62 |
return buildModelTestSuite(FormatterRegressionTests.class); |
62 |
return buildModelTestSuite(FormatterRegressionTests.class); |
Lines 10142-10145
Link Here
|
10142 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10142 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10143 |
runTest(codeFormatter, "test714", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10143 |
runTest(codeFormatter, "test714", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10144 |
} |
10144 |
} |
|
|
10145 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=244477 |
10146 |
public void test715() { |
10147 |
final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); |
10148 |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); |
10149 |
preferences.keep_empty_array_initializer_on_one_line = true; |
10150 |
preferences.insert_space_before_comma_in_array_initializer = false; |
10151 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10152 |
runTest(codeFormatter, "test715", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10153 |
} |
10154 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=244477 |
10155 |
public void test716() { |
10156 |
final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); |
10157 |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); |
10158 |
preferences.keep_empty_array_initializer_on_one_line = true; |
10159 |
preferences.insert_space_before_comma_in_array_initializer = true; |
10160 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10161 |
runTest(codeFormatter, "test716", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10162 |
} |
10163 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=244477 |
10164 |
public void test717() { |
10165 |
final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); |
10166 |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); |
10167 |
preferences.keep_empty_array_initializer_on_one_line = false; |
10168 |
preferences.insert_space_before_comma_in_array_initializer = false; |
10169 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10170 |
runTest(codeFormatter, "test717", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10171 |
} |
10172 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=244477 |
10173 |
public void test718() { |
10174 |
final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); |
10175 |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); |
10176 |
preferences.keep_empty_array_initializer_on_one_line = false; |
10177 |
preferences.insert_space_before_comma_in_array_initializer = true; |
10178 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10179 |
runTest(codeFormatter, "test718", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10180 |
} |
10145 |
} |
10181 |
} |