Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
34601b83
Commit
34601b83
authored
8 years ago
by
Alexey Gopachenko
1
Browse files
Options
Download
Email Patches
Plain Diff
PHP nicer folding error diff!
parent
65a65b36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java
+7
-3
...stFramework/fixtures/impl/CodeInsightTestFixtureImpl.java
with
7 additions
and
3 deletions
+7
-3
platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java
+
7
-
3
View file @
34601b83
...
...
@@ -1630,8 +1630,10 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
private
void
testFoldingRegions
(
@NotNull
String
verificationFileName
,
@Nullable
String
destinationFileName
,
boolean
doCheckCollapseStatus
)
{
String
expectedContent
;
try
{
expectedContent
=
FileUtil
.
loadFile
(
new
File
(
verificationFileName
));
final
File
verificationFile
;
try
{
verificationFile
=
new
File
(
verificationFileName
);
expectedContent
=
FileUtil
.
loadFile
(
verificationFile
);
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
...
...
@@ -1656,7 +1658,9 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
}
}
final
String
actual
=
getFoldingDescription
(
doCheckCollapseStatus
);
assertEquals
(
expectedContent
,
actual
);
if
(!
expectedContent
.
equals
(
actual
))
{
throw
new
FileComparisonFailure
(
verificationFile
.
getName
(),
expectedContent
,
actual
,
verificationFile
.
getPath
());
}
}
@Override
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
cb500983
·
2 years ago
mentioned in commit
cb500983
mentioned in commit cb500983a662c9de5121a92e894acd3204581449
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help