From 53a5f01fea44a1456ea30c908b9632e16e046597 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 28 Oct 2015 13:25:57 +0100 Subject: correctly render qualified names for external classes --- test/data/format/extensions.class.md | 8 ++++---- test/data/format/extensions.package.md | 2 +- test/data/format/starProjection.md | 6 +++--- test/data/format/typeProjectionVariance.md | 6 +++--- test/src/model/FunctionTest.kt | 2 +- test/src/model/PropertyTest.kt | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/data/format/extensions.class.md b/test/data/format/extensions.class.md index 33721e67..c66cdb01 100644 --- a/test/data/format/extensions.class.md +++ b/test/data/format/extensions.class.md @@ -1,15 +1,15 @@ -[test](test/index) / [foo](test/foo/index) / [String](test/foo/-string/index) +[test](test/index) / [foo](test/foo/index) / [kotlin.String](test/foo/kotlin.-string/index) -### Extensions for String +### Extensions for kotlin.String -| [fn](test/foo/-string/fn) | `fun String.fn(): Unit` +| [fn](test/foo/kotlin.-string/fn) | `fun String.fn(): Unit` `fun String.fn(x: Int): Unit` Function with receiver | -| [foobar](test/foo/-string/foobar) | `val String.foobar: Int` +| [foobar](test/foo/kotlin.-string/foobar) | `val String.foobar: Int` Property with receiver. | diff --git a/test/data/format/extensions.package.md b/test/data/format/extensions.package.md index 17829ba0..76ff3676 100644 --- a/test/data/format/extensions.package.md +++ b/test/data/format/extensions.package.md @@ -7,5 +7,5 @@ ### Extensions for External Classes -| [String](test/foo/-string/index) | | +| [kotlin.String](test/foo/kotlin.-string/index) | | diff --git a/test/data/format/starProjection.md b/test/data/format/starProjection.md index d6b5e9e5..c9be2f58 100644 --- a/test/data/format/starProjection.md +++ b/test/data/format/starProjection.md @@ -1,8 +1,8 @@ -[test](test/index) / [Iterable](test/-iterable/index) +[test](test/index) / [kotlin.Iterable](test/kotlin.-iterable/index) -### Extensions for Iterable +### Extensions for kotlin.Iterable -| [containsFoo](test/-iterable/contains-foo) | `fun Iterable<*>.containsFoo(element: Any?): Boolean` | +| [containsFoo](test/kotlin.-iterable/contains-foo) | `fun Iterable<*>.containsFoo(element: Any?): Boolean` | diff --git a/test/data/format/typeProjectionVariance.md b/test/data/format/typeProjectionVariance.md index 9812ca3f..7aa34593 100644 --- a/test/data/format/typeProjectionVariance.md +++ b/test/data/format/typeProjectionVariance.md @@ -1,8 +1,8 @@ -[test](test/index) / [Array](test/-array/index) +[test](test/index) / [kotlin.Array](test/kotlin.-array/index) -### Extensions for Array +### Extensions for kotlin.Array -| [foo](test/-array/foo) | `fun <T> Array<out T>.foo(): Unit` | +| [foo](test/kotlin.-array/foo) | `fun <T> Array<out T>.foo(): Unit` | diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt index b185e71a..8d1cf609 100644 --- a/test/src/model/FunctionTest.kt +++ b/test/src/model/FunctionTest.kt @@ -23,7 +23,7 @@ public class FunctionTest { @Test fun functionWithReceiver() { verifyModel("test/data/functions/functionWithReceiver.kt") { model -> with(model.members.single().members.single()) { - assertEquals("String", name) + assertEquals("kotlin.String", name) assertEquals(DocumentationNode.Kind.ExternalClass, kind) assertEquals(2, members.count()) with(members[0]) { diff --git a/test/src/model/PropertyTest.kt b/test/src/model/PropertyTest.kt index 310bc0ae..093772b4 100644 --- a/test/src/model/PropertyTest.kt +++ b/test/src/model/PropertyTest.kt @@ -80,7 +80,7 @@ public class PropertyTest { @Test fun propertyWithReceiver() { verifyModel("test/data/properties/propertyWithReceiver.kt") { model -> with(model.members.single().members.single()) { - assertEquals("String", name) + assertEquals("kotlin.String", name) assertEquals(DocumentationNode.Kind.ExternalClass, kind) with(members.single()) { assertEquals("foobar", name) -- cgit