View | Details | Raw Unified | Return to bug 172848 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java (-2 / +30 lines)
Lines 54-61 Link Here
54
	private long time;
54
	private long time;
55
	
55
	
56
	static {
56
	static {
57
//		TESTS_NUMBERS = new int[] { 649 };
57
//		TESTS_NUMBERS = new int[] { 650 };
58
//		TESTS_RANGE = new int[] { 643, -1 };
58
//		TESTS_RANGE = new int[] { 650, -1 };
59
	}
59
	}
60
	public static Test suite() {
60
	public static Test suite() {
61
		return buildModelTestSuite(FormatterRegressionTests.class);
61
		return buildModelTestSuite(FormatterRegressionTests.class);
Lines 9172-9175 Link Here
9172
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9172
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9173
		runTest(codeFormatter, "test649", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9173
		runTest(codeFormatter, "test649", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9174
	}
9174
	}
9175
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848
9176
	public void test650() {
9177
		final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
9178
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
9179
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9180
		runTest(codeFormatter, "test650", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9181
	}
9182
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848
9183
	public void test651() {
9184
		final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
9185
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
9186
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9187
		runTest(codeFormatter, "test651", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9188
	}
9189
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848
9190
	public void test652() {
9191
		final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
9192
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
9193
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9194
		runTest(codeFormatter, "test652", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9195
	}
9196
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848
9197
	public void test653() {
9198
		final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
9199
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
9200
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
9201
		runTest(codeFormatter, "test653", "A.java");//$NON-NLS-1$ //$NON-NLS-2$
9202
	}
9175
}
9203
}
(-)workspace/Formatter/test651/A_in.java (+5 lines)
Added Link Here
1
public class Test
2
{
3
	int i = 0;
4
	int k = + --i;
5
}
(-)workspace/Formatter/test650/A_in.java (+5 lines)
Added Link Here
1
public class Test
2
{
3
	int i = 0;
4
	int k = + ++i;
5
}
(-)workspace/Formatter/test651/A_out.java (+4 lines)
Added Link Here
1
public class Test {
2
	int i = 0;
3
	int k = +--i;
4
}
(-)workspace/Formatter/test650/A_out.java (+4 lines)
Added Link Here
1
public class Test {
2
	int i = 0;
3
	int k = + ++i;
4
}
(-)workspace/Formatter/test653/A_in.java (+5 lines)
Added Link Here
1
public class Test
2
{
3
	int i = 0;
4
	int k = - ++i;
5
}
(-)workspace/Formatter/test652/A_in.java (+5 lines)
Added Link Here
1
public class Test
2
{
3
	int i = 0;
4
	int k = - --i;
5
}
(-)workspace/Formatter/test653/A_out.java (+4 lines)
Added Link Here
1
public class Test {
2
	int i = 0;
3
	int k = -++i;
4
}
(-)workspace/Formatter/test652/A_out.java (+4 lines)
Added Link Here
1
public class Test {
2
	int i = 0;
3
	int k = - --i;
4
}

Return to bug 172848