From acd25f57320ad4279c442871b693aa7b86b6bcdf Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Wed, 6 Jul 2011 15:13:30 +0000 Subject: Add a test for #4421 and clean up a little. --- test/scaladoc/resources/SI_4421.scala | 7 +++++++ test/scaladoc/scala/html/HtmlFactoryTest.scala | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/scaladoc/resources/SI_4421.scala (limited to 'test') diff --git a/test/scaladoc/resources/SI_4421.scala b/test/scaladoc/resources/SI_4421.scala new file mode 100644 index 0000000000..7ae2c796eb --- /dev/null +++ b/test/scaladoc/resources/SI_4421.scala @@ -0,0 +1,7 @@ +abstract class test +/** + * TestA class + * @example 2.0 + * @todo do something better than finding scaladoc bugs + * @note blah blah */ +class SI_4421 extends test diff --git a/test/scaladoc/scala/html/HtmlFactoryTest.scala b/test/scaladoc/scala/html/HtmlFactoryTest.scala index c85429e353..ffb93b8930 100644 --- a/test/scaladoc/scala/html/HtmlFactoryTest.scala +++ b/test/scaladoc/scala/html/HtmlFactoryTest.scala @@ -313,4 +313,14 @@ object Test extends Properties("HtmlFactory") { case _ => false } } + + property("SI-4421") = { + createTemplate("SI_4421.scala") match { + case node: scala.xml.Node => { + val html = node.toString + html.contains(">Example:") && html.contains(">Note<") + } + case _ => false + } + } } -- cgit v1.2.3