diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2014-04-18 02:52:16 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2014-04-18 03:57:07 +0200 |
commit | 7c52dda2a21312c17584c264c85dddb0a7150157 (patch) | |
tree | 463f7893bcd388eb509dd8567c8714d339d460b3 /test/scaladoc | |
parent | cac6383e6658dc5956540b76b9b46c3b664774ac (diff) | |
download | scala-7c52dda2a21312c17584c264c85dddb0a7150157.tar.gz scala-7c52dda2a21312c17584c264c85dddb0a7150157.tar.bz2 scala-7c52dda2a21312c17584c264c85dddb0a7150157.zip |
SI-8514 Remove scaladoc html inconsistencies
Some classes only got inline comments instead of getting the full comment.
Diffstat (limited to 'test/scaladoc')
-rw-r--r-- | test/scaladoc/resources/SI-8514.scala | 10 | ||||
-rw-r--r-- | test/scaladoc/scalacheck/HtmlFactoryTest.scala | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/scaladoc/resources/SI-8514.scala b/test/scaladoc/resources/SI-8514.scala new file mode 100644 index 0000000000..4c5476604b --- /dev/null +++ b/test/scaladoc/resources/SI-8514.scala @@ -0,0 +1,10 @@ +package a { + class DeveloperApi extends scala.annotation.StaticAnnotation + + /** Some doc here */ + @DeveloperApi + class A + + @DeveloperApi + class B +} diff --git a/test/scaladoc/scalacheck/HtmlFactoryTest.scala b/test/scaladoc/scalacheck/HtmlFactoryTest.scala index 56328ea875..3ee8fd9303 100644 --- a/test/scaladoc/scalacheck/HtmlFactoryTest.scala +++ b/test/scaladoc/scalacheck/HtmlFactoryTest.scala @@ -740,5 +740,19 @@ object Test extends Properties("HtmlFactory") { case node: scala.xml.Node => true case _ => false } + + property("SI-8514: No inconsistencies") = + checkText("SI-8514.scala")( + (Some("a/package"), + """class A extends AnyRef + Some doc here + Some doc here + Annotations @DeveloperApi() + """, true), + (Some("a/package"), + """class B extends AnyRef + Annotations @DeveloperApi() + """, true) + ) } } |