From b6c00d6e121c3421030a82d6322290c3c4962c81 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Sun, 27 Jul 2014 09:40:03 +0900 Subject: Prevent SI-8314 by adding a test The original issue was fixed already. This test is just for make sure. --- test/scaladoc/run/t8314.check | 3 +++ test/scaladoc/run/t8314.scala | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/scaladoc/run/t8314.check create mode 100644 test/scaladoc/run/t8314.scala (limited to 'test/scaladoc') diff --git a/test/scaladoc/run/t8314.check b/test/scaladoc/run/t8314.check new file mode 100644 index 0000000000..aa04c12c8f --- /dev/null +++ b/test/scaladoc/run/t8314.check @@ -0,0 +1,3 @@ +Body(List(Paragraph(Chain(List(Summary(Chain(List(Text(This should be ), Monospace(Text(monospaced)))))))))) + +Done. diff --git a/test/scaladoc/run/t8314.scala b/test/scaladoc/run/t8314.scala new file mode 100644 index 0000000000..7f6d6fdb00 --- /dev/null +++ b/test/scaladoc/run/t8314.scala @@ -0,0 +1,16 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def code = """ + /** This should be `monospaced` */ + class A + """ + + def scaladocSettings = "" + + def testModel(root: Package) = { + import access._ + root._class("A").comment foreach println + } +} -- cgit v1.2.3