diff options
author | Jonah Graham | 2018-11-20 21:20:39 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-20 21:20:39 +0000 |
commit | 48d2271a58a68743e428d3096d2bca054d04e310 (patch) | |
tree | 235ba23e71c393ad22d1d57fc8fdfec14754c4ee /codan/org.eclipse.cdt.codan.core.tests | |
parent | 3cf0297769e5cfb91823e93ce570120a75fe01ce (diff) | |
download | org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.gz org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.xz org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.zip |
Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes:
releng/scripts/verify_gitattributes.sh
Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core.tests')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/internal/checkers/ui/quickfix/CaseBreakQuickFixBreakTest.java | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/internal/checkers/ui/quickfix/CaseBreakQuickFixBreakTest.java b/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/internal/checkers/ui/quickfix/CaseBreakQuickFixBreakTest.java index b14884a6e0a..1a0ddec2345 100644 --- a/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/internal/checkers/ui/quickfix/CaseBreakQuickFixBreakTest.java +++ b/codan/org.eclipse.cdt.codan.core.tests/src/org/eclipse/cdt/codan/internal/checkers/ui/quickfix/CaseBreakQuickFixBreakTest.java @@ -1,69 +1,69 @@ -/*******************************************************************************
- * Copyright (c) 2010, 2013 Tomasz Wesolowski and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Tomasz Wesolowski - initial API and implementation
+/******************************************************************************* + * Copyright (c) 2010, 2013 Tomasz Wesolowski and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Tomasz Wesolowski - initial API and implementation *******************************************************************************/ -package org.eclipse.cdt.codan.internal.checkers.ui.quickfix;
-
-import org.eclipse.cdt.codan.ui.AbstractCodanCMarkerResolution;
-
-public class CaseBreakQuickFixBreakTest extends QuickFixTestCase {
- @SuppressWarnings("restriction")
- @Override
- protected AbstractCodanCMarkerResolution createQuickFix() {
- return new CaseBreakQuickFixBreak();
- }
-
- //void func() {
- // int a;
- // switch(a) {
- // case 1:
- // hello();
- // case 2:
- // break;
- // }
- //}
- public void testSimpleCase() throws Exception {
- loadcode(getAboveComment());
- String result = runQuickFixOneFile();
- assertContainedIn("break;\tcase 2:", result);
- }
-
- //void func() {
- // int a;
- // switch(a) {
- // case 1: {
- // hello();
- // }
- // default:
- // }
- //}
- public void testCompositeStatementCase() throws Exception {
- loadcode(getAboveComment());
- String result = runQuickFixOneFile();
- assertContainedIn("hello();\t\tbreak;", result);
- }
-
- // int main() {
- // int a;
- // switch(a)
- // {
- // case 0:
- // {
- // }
- // default:
- // break;
- // }
- // return 0;
- // }
- public void testNPE_bug363884() throws Exception {
- loadcode(getAboveComment());
- String result = runQuickFixOneFile();
- assertContainedIn("break;\t}\t\t\tdefault:", result);
- }
-}
+package org.eclipse.cdt.codan.internal.checkers.ui.quickfix; + +import org.eclipse.cdt.codan.ui.AbstractCodanCMarkerResolution; + +public class CaseBreakQuickFixBreakTest extends QuickFixTestCase { + @SuppressWarnings("restriction") + @Override + protected AbstractCodanCMarkerResolution createQuickFix() { + return new CaseBreakQuickFixBreak(); + } + + //void func() { + // int a; + // switch(a) { + // case 1: + // hello(); + // case 2: + // break; + // } + //} + public void testSimpleCase() throws Exception { + loadcode(getAboveComment()); + String result = runQuickFixOneFile(); + assertContainedIn("break;\tcase 2:", result); + } + + //void func() { + // int a; + // switch(a) { + // case 1: { + // hello(); + // } + // default: + // } + //} + public void testCompositeStatementCase() throws Exception { + loadcode(getAboveComment()); + String result = runQuickFixOneFile(); + assertContainedIn("hello();\t\tbreak;", result); + } + + // int main() { + // int a; + // switch(a) + // { + // case 0: + // { + // } + // default: + // break; + // } + // return 0; + // } + public void testNPE_bug363884() throws Exception { + loadcode(getAboveComment()); + String result = runQuickFixOneFile(); + assertContainedIn("break;\t}\t\t\tdefault:", result); + } +} |