mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] k2 quick doc: add test data for positive cases in KTIJ-27105
GitOrigin-RevId: b110f4cd251c66e7c33ac6d4ebfd718593e4f956
This commit is contained in:
committed by
intellij-monorepo-bot
parent
87a9372ed2
commit
164b68b0c4
+20
@@ -33,6 +33,11 @@ public class FirQuickDocTestGenerated extends AbstractFirQuickDocTest {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/AbstractCallableInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Annotation.kt")
|
||||
public void testAnnotation() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/Annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectLocalVariable.kt")
|
||||
public void testAnonymousObjectLocalVariable() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/AnonymousObjectLocalVariable.kt");
|
||||
@@ -173,6 +178,11 @@ public class FirQuickDocTestGenerated extends AbstractFirQuickDocTest {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/MethodFromStdLib.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ObjectLiteral.kt")
|
||||
public void testObjectLiteral() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/ObjectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OnActualDeclaration.kt")
|
||||
public void testOnActualDeclaration() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/OnActualDeclaration.kt");
|
||||
@@ -333,6 +343,11 @@ public class FirQuickDocTestGenerated extends AbstractFirQuickDocTest {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/OnPropertyUsageDocumentedWithPropertyTag.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertiesInConstructor.kt")
|
||||
public void testPropertiesInConstructor() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/PropertiesInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("renderAnnotatedExtensionFunctionType.kt")
|
||||
public void testRenderAnnotatedExtensionFunctionType() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/renderAnnotatedExtensionFunctionType.kt");
|
||||
@@ -362,4 +377,9 @@ public class FirQuickDocTestGenerated extends AbstractFirQuickDocTest {
|
||||
public void testTypeNamesFromStdLibNavigation() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/TypeNamesFromStdLibNavigation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterConstraints.kt")
|
||||
public void testTypeParameterConstraints() throws Exception {
|
||||
runTest("../../idea/tests/testData/editor/quickDoc/TypeParameterConstraints.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -33,6 +33,11 @@ public class QuickDocProviderTestGenerated extends AbstractQuickDocProviderTest
|
||||
runTest("testData/editor/quickDoc/AbstractCallableInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Annotation.kt")
|
||||
public void testAnnotation() throws Exception {
|
||||
runTest("testData/editor/quickDoc/Annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectLocalVariable.kt")
|
||||
public void testAnonymousObjectLocalVariable() throws Exception {
|
||||
runTest("testData/editor/quickDoc/AnonymousObjectLocalVariable.kt");
|
||||
@@ -173,6 +178,11 @@ public class QuickDocProviderTestGenerated extends AbstractQuickDocProviderTest
|
||||
runTest("testData/editor/quickDoc/MethodFromStdLib.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ObjectLiteral.kt")
|
||||
public void testObjectLiteral() throws Exception {
|
||||
runTest("testData/editor/quickDoc/ObjectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("OnActualDeclaration.kt")
|
||||
public void testOnActualDeclaration() throws Exception {
|
||||
runTest("testData/editor/quickDoc/OnActualDeclaration.kt");
|
||||
@@ -333,6 +343,11 @@ public class QuickDocProviderTestGenerated extends AbstractQuickDocProviderTest
|
||||
runTest("testData/editor/quickDoc/OnPropertyUsageDocumentedWithPropertyTag.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertiesInConstructor.kt")
|
||||
public void testPropertiesInConstructor() throws Exception {
|
||||
runTest("testData/editor/quickDoc/PropertiesInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("renderAnnotatedExtensionFunctionType.kt")
|
||||
public void testRenderAnnotatedExtensionFunctionType() throws Exception {
|
||||
runTest("testData/editor/quickDoc/renderAnnotatedExtensionFunctionType.kt");
|
||||
@@ -362,4 +377,9 @@ public class QuickDocProviderTestGenerated extends AbstractQuickDocProviderTest
|
||||
public void testTypeNamesFromStdLibNavigation() throws Exception {
|
||||
runTest("testData/editor/quickDoc/TypeNamesFromStdLibNavigation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterConstraints.kt")
|
||||
public void testTypeParameterConstraints() throws Exception {
|
||||
runTest("testData/editor/quickDoc/TypeParameterConstraints.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
annotation class An<caret>no
|
||||
|
||||
//K2_INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">final</span> <span style="color:#000080;font-weight:bold;">annotation</span> <span style="color:#000080;font-weight:bold;">class</span> <span style="color:#808000;">Anno</span></pre></div><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/kotlin_file.svg"/> Annotation.kt<br/></div>
|
||||
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">final</span> <span style="color:#000080;font-weight:bold;">annotation class</span> <span style="color:#000000;">Anno</span>
|
||||
//INFO: <span style="">: </span><span style="color:#000000;"><a href="psi_element://kotlin.Annotation">Annotation</a></span></pre></div><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/kotlin_file.svg"/> Annotation.kt<br/></div>
|
||||
@@ -0,0 +1,10 @@
|
||||
interface I
|
||||
|
||||
fun m() {
|
||||
obj<caret>ect : I {}
|
||||
}
|
||||
|
||||
//K2_INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">object</span> : <span style="color:#000000;"><a href="psi_element://I">I</a></span></pre></div>
|
||||
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">local</span> <span style="color:#000080;font-weight:bold;">final</span> <span style="color:#000080;font-weight:bold;">class</span> <span style="color:#000000;">`<no name provided>`</span>
|
||||
//INFO: <span style="">: </span><span style="color:#000000;"><a href="psi_element://I">I</a></span></pre></div>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
class Foo<caret>(val p: String)
|
||||
|
||||
//K2_INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">constructor</span> <span style="color:#000000;">Foo</span>(
|
||||
//K2_INFO: <span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">final</span> <span style="color:#000080;font-weight:bold;">val</span> <span style="color:#660e7a;font-weight:bold;">p</span><span style="">: </span><span style="color:#000000;">String</span>
|
||||
//K2_INFO: )</pre></div><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/classKotlin.svg"/> <a href="psi_element://Foo"><code><span style="color:#000000;">Foo</span></code></a><br/></div>
|
||||
|
||||
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">constructor</span> <span style="color:#000000;">Foo</span>(
|
||||
//INFO: <span style="color:#000080;font-weight:bold;">val</span> <span style="color:#000000;">p</span><span style="">: </span><span style="color:#000000;">String</span>
|
||||
//INFO: )</pre></div></pre></div><table class='sections'><p></table><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/classKotlin.svg"/> <a href="psi_element://Foo"><code><span style="color:#000000;">Foo</span></code></a><br/></div>
|
||||
@@ -0,0 +1,9 @@
|
||||
interface I1
|
||||
interface I2
|
||||
fun <T: I1> ba<caret>r() where T: I2 {
|
||||
}
|
||||
|
||||
|
||||
//K2_INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">fun</span> <span style=""><</span><span style="color:#20999d;">T</span><span style="">></span> <span style="color:#000000;">bar</span>()<span style="">: </span><span style="color:#000000;">Unit</span> <span style="color:#000080;font-weight:bold;">where</span> <span style="color:#20999d;">T</span><span style=""> : </span><span style="color:#000000;"><a href="psi_element://I1">I1</a></span>, <span style="color:#20999d;">T</span><span style=""> : </span><span style="color:#000000;"><a href="psi_element://I2">I2</a></span></pre></div><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/kotlin_file.svg"/> TypeParameterConstraints.kt<br/></div>
|
||||
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">fun</span> <span style=""><</span><span style="color:#20999d;">T</span><span style=""> : </span><span style="color:#000000;"><a href="psi_element://I1">I1</a></span><span style="">></span> <span style="color:#000000;">bar</span>()<span style="">: </span><span style="color:#000000;">Unit</span> <span style="color:#000080;font-weight:bold;">where</span> <span style="color:#20999d;">T</span><span style=""> : </span><span style="color:#000000;"><a href="psi_element://I2">I2</a></span></pre></div></pre></div><table class='sections'><p></table><div class='bottom'><icon src="/org/jetbrains/kotlin/idea/icons/kotlin_file.svg"/> TypeParameterConstraints.kt<br/></div>
|
||||
|
||||
Reference in New Issue
Block a user