diff options
author | Paul Phillips <paulp@improving.org> | 2013-03-25 12:23:37 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-03-25 12:23:37 -0700 |
commit | e5b54146dd68f576f6439a6e1999b5c46795f39b (patch) | |
tree | 7a2b0bd61e3022d95663cc4c21360a4688f8b874 /test | |
parent | 424f00e7d6d76536710bbd8ed6aa0c2bb79196d0 (diff) | |
parent | b4344e121c7e195f5244cd704d5296274d503dd1 (diff) | |
download | scala-e5b54146dd68f576f6439a6e1999b5c46795f39b.tar.gz scala-e5b54146dd68f576f6439a6e1999b5c46795f39b.tar.bz2 scala-e5b54146dd68f576f6439a6e1999b5c46795f39b.zip |
Merge pull request #2278 from kzys/jira-6580
SI-6580 Scaladoc: Should not close void elements
Diffstat (limited to 'test')
-rw-r--r-- | test/scaladoc/run/SI-6580.check | 11 | ||||
-rw-r--r-- | test/scaladoc/run/SI-6580.scala | 32 |
2 files changed, 43 insertions, 0 deletions
diff --git a/test/scaladoc/run/SI-6580.check b/test/scaladoc/run/SI-6580.check new file mode 100644 index 0000000000..2fb6ec3258 --- /dev/null +++ b/test/scaladoc/run/SI-6580.check @@ -0,0 +1,11 @@ +Chain(List(Chain(List(Text(Here z(1) is defined as follows:), Text( +), HtmlTag(<br>), Text( +), Text( ), HtmlTag(<img src='http://example.com/fig1.png'>), Text( +), HtmlTag(<br>), Text( +), Text(plus z(1) times), Text( +), HtmlTag(<br>), Text( +), Text( ), HtmlTag(<img src='http://example.com/fig2.png'>), Text( +), HtmlTag(<br>), Text( +), Text(equals QL of something +))))) +Done. diff --git a/test/scaladoc/run/SI-6580.scala b/test/scaladoc/run/SI-6580.scala new file mode 100644 index 0000000000..c544138f44 --- /dev/null +++ b/test/scaladoc/run/SI-6580.scala @@ -0,0 +1,32 @@ +import scala.tools.nsc.doc +import scala.tools.nsc.doc.model._ +import scala.tools.nsc.doc.html.page.{Index, ReferenceIndex} +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def scaladocSettings = "" + override def code = """ + + object Test { + /** Here z(1) is defined as follows: + * <br> + * <img src='http://example.com/fig1.png'> + * <br> + * plus z(1) times + * <br> + * <img src='http://example.com/fig2.png'> + * <br> + * equals QL of something + */ + def f = 1 + } + + """ + + def testModel(rootPackage: Package) { + import access._ + + val f = rootPackage._object("Test")._method("f") + println(f.comment.get.short) + } +} |