summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2014-07-27 09:40:03 +0900
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2014-07-31 23:05:54 +0900
commitb6c00d6e121c3421030a82d6322290c3c4962c81 (patch)
tree622b40fd18c11a85bdc9856b0994dfacc0137b73
parentd74da160b0583eed00b0b5f809d304e72d37f040 (diff)
downloadscala-b6c00d6e121c3421030a82d6322290c3c4962c81.tar.gz
scala-b6c00d6e121c3421030a82d6322290c3c4962c81.tar.bz2
scala-b6c00d6e121c3421030a82d6322290c3c4962c81.zip
Prevent SI-8314 by adding a test
The original issue was fixed already. This test is just for make sure.
-rw-r--r--test/scaladoc/run/t8314.check3
-rw-r--r--test/scaladoc/run/t8314.scala16
2 files changed, 19 insertions, 0 deletions
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
+ }
+}