Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
b1c00468
Commit
b1c00468
authored
6 years ago
by
Roman Shevchenko
Browse files
Options
Download
Email Patches
Plain Diff
[tests] couple more Javadoc link transforming test cases
parent
096c5072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-tests/testSrc/com/intellij/java/codeInsight/javadoc/LightJavadocGeneratorTest.kt
+2
-0
...lij/java/codeInsight/javadoc/LightJavadocGeneratorTest.kt
with
2 additions
and
0 deletions
+2
-0
java/java-tests/testSrc/com/intellij/java/codeInsight/javadoc/LightJavadocGeneratorTest.kt
+
2
-
0
View file @
b1c00468
...
...
@@ -22,10 +22,12 @@ class LightJavadocGeneratorTest : LightCodeInsightFixtureTestCase() {
fun
testRootedClassLink
()
=
doTestLink
(
"{@docRoot}/java/lang/Character.html#unicode"
,
"psi_element://java.lang.Character###unicode"
)
fun
testRootedPackageLink
()
=
doTestLink
(
"{@docRoot}/java/util/package-summary.html"
,
"psi_element://java.util"
)
fun
testRootedFileLink
()
=
doTestLink
(
"{@docRoot}/java/lang/doc-files/ValueBased.html"
,
"../../java/lang/doc-files/ValueBased.html"
)
fun
testRootedExtLink
()
=
doTestLink
(
"{@docRoot}/../techNotes/guides/index.html"
,
"../../../techNotes/guides/index.html"
)
fun
testRelativeClassLink
()
=
doTestLink
(
"../../java/lang/Character.html#unicode"
,
"psi_element://java.lang.Character###unicode"
)
fun
testRelativePackageLink
()
=
doTestLink
(
"../../java/util/package-summary.html"
,
"psi_element://java.util"
)
fun
testRelativeFileLink
()
=
doTestLink
(
"../../java/lang/doc-files/ValueBased.html"
,
"../../java/lang/doc-files/ValueBased.html"
)
fun
testRelativeExtLink
()
=
doTestLink
(
"../../../techNotes/guides/index.html"
,
"../../../techNotes/guides/index.html"
)
//<editor-fold desc="Helpers.">
private
fun
doTestModule
(
text
:
String
,
expected
:
String
)
{
...
...
This diff is collapsed.
Click to expand it.
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