mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Minor file name refactoring for tests
This commit is contained in:
parent
c92d599ff8
commit
3116204329
13
testData/FormatterTestDataAfter.simple
Normal file
13
testData/FormatterTestDataAfter.simple
Normal file
@ -0,0 +1,13 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
# the value onto the next line.
|
||||
message = Welcome to \
|
||||
Wikipedia!
|
||||
# Add spaces to the key
|
||||
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
|
||||
# Unicode
|
||||
tab : \u0009
|
13
testData/ParsingTestData.simple
Normal file
13
testData/ParsingTestData.simple
Normal file
@ -0,0 +1,13 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
# the value onto the next line.
|
||||
message = Welcome to \
|
||||
Wikipedia!
|
||||
# Add spaces to the key
|
||||
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
|
||||
# Unicode
|
||||
tab : \u0009
|
@ -31,17 +31,17 @@ public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
public void testAnnotator() {
|
||||
myFixture.configureByFiles("AnnotationTest.java", "Example.simple");
|
||||
myFixture.configureByFiles("AnnotatorTestData.java", "Example.simple");
|
||||
myFixture.checkHighlighting(false, false, true);
|
||||
}
|
||||
|
||||
public void testFolding() {
|
||||
myFixture.configureByFiles("Example.simple");
|
||||
myFixture.configureByFiles("FoldingTestData.simple");
|
||||
myFixture.testFolding(getTestDataPath() + "/FoldingTestData.java");
|
||||
}
|
||||
|
||||
public void testFormatting() {
|
||||
myFixture.configureByFiles("FormattingTestData.simple");
|
||||
public void testFormatter() {
|
||||
myFixture.configureByFiles("FormatterTestDataBefore.simple");
|
||||
CodeStyleSettingsManager.getSettings(getProject()).SPACE_AROUND_ASSIGNMENT_OPERATORS = true;
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
@Override
|
||||
@ -49,7 +49,7 @@ public class SimpleCodeInsightTest extends LightCodeInsightFixtureTestCase {
|
||||
CodeStyleManager.getInstance(getProject()).reformat(myFixture.getFile());
|
||||
}
|
||||
});
|
||||
myFixture.checkResultByFile("Example.simple");
|
||||
myFixture.checkResultByFile("FormatterTestDataAfter.simple");
|
||||
}
|
||||
|
||||
public void testRename() {
|
||||
|
@ -7,7 +7,7 @@ public class SimpleParsingTest extends ParsingTestCase {
|
||||
super("", "simple", new SimpleParserDefinition());
|
||||
}
|
||||
|
||||
public void testExample() {
|
||||
public void testParsingTestData() {
|
||||
doTest(true, false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user