diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-06-16 04:23:43 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-07-16 23:41:43 +0200 |
commit | f916434c119289773e5aad88c633c30f68a12e14 (patch) | |
tree | 12f8c6a52d480454d4cefb0d7a10975b39c3d3c5 /test/scaladoc/run/SI-5235.scala | |
parent | fcbdc1725c6fcd65a071709408ef75097f487cb7 (diff) | |
download | scala-f916434c119289773e5aad88c633c30f68a12e14.tar.gz scala-f916434c119289773e5aad88c633c30f68a12e14.tar.bz2 scala-f916434c119289773e5aad88c633c30f68a12e14.zip |
SI-3314 SI-4888 Scaladoc: Relative type prefixes
And adds support for linking to class members, only usable from the
model factory now, so no links to members from the doc comment yet,
sorry. But it fixes the Enumeration problem once and for all!
Also corrected the inTpl for members obtained by implicit conversions,
so they're in the correct template and the comment variable expansion
is done from the correct (but different) template.
Review by @kzys.
Diffstat (limited to 'test/scaladoc/run/SI-5235.scala')
-rw-r--r-- | test/scaladoc/run/SI-5235.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/scaladoc/run/SI-5235.scala b/test/scaladoc/run/SI-5235.scala index cae70fd0a5..f0c6e1cf17 100644 --- a/test/scaladoc/run/SI-5235.scala +++ b/test/scaladoc/run/SI-5235.scala @@ -77,11 +77,11 @@ object Test extends ScaladocModelTest { assert(gcReverseType.name == "GenericColl", gcReverseType.name + " == GenericColl") assert(scReverseType.name == "BullSh", scReverseType.name + " == BullSh") assert(mcReverseType.name == "MyCollection",mcReverseType.name + " == MyCollection") - assert(gcReverseType.refEntity(0)._1 == GenericColl, + assert(gcReverseType.refEntity(0)._1 == LinkToTpl(GenericColl), gcReverse.qualifiedName + "'s return type has a link to " + GenericColl.qualifiedName) - assert(scReverseType.refEntity.isEmpty, + assert(!scReverseType.refEntity(0)._1.asInstanceOf[LinkToTpl].tpl.isDocTemplate, scReverse.qualifiedName + "'s return type does not have links") - assert(mcReverseType.refEntity(0)._1 == MyCollection, + assert(mcReverseType.refEntity(0)._1 == LinkToTpl(MyCollection), mcReverse.qualifiedName + "'s return type has a link to " + MyCollection.qualifiedName) } }
\ No newline at end of file |