diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2017-02-22 08:42:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 08:42:26 +0100 |
commit | cbf7daa57d70ccacf8cfc7c2f4a7c0e81e1c773a (patch) | |
tree | 9fe176985bb167b881da731417ad6abd2f09a682 /test | |
parent | effde0cd2c24af2b27f2be02ad54fed6741977eb (diff) | |
parent | b8a8ac15567c40b5a01f0f3ba7b54202bff0b27d (diff) | |
download | scala-cbf7daa57d70ccacf8cfc7c2f4a7c0e81e1c773a.tar.gz scala-cbf7daa57d70ccacf8cfc7c2f4a7c0e81e1c773a.tar.bz2 scala-cbf7daa57d70ccacf8cfc7c2f4a7c0e81e1c773a.zip |
Merge pull request #5681 from Philippus/issue/9704
SI-9704 don't add a closing HtmlTag if it is already closed
Diffstat (limited to 'test')
-rw-r--r-- | test/scaladoc/run/SI-9704.check | 4 | ||||
-rw-r--r-- | test/scaladoc/run/SI-9704.scala | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/scaladoc/run/SI-9704.check b/test/scaladoc/run/SI-9704.check new file mode 100644 index 0000000000..5a73befd9b --- /dev/null +++ b/test/scaladoc/run/SI-9704.check @@ -0,0 +1,4 @@ +Chain(List(Chain(List(Text(Demonstrates a scala issue in which the closing link tag is duplicated), Text( +), HtmlTag(<a href="https://link">title</a>), Text( +), Text())))) +Done. diff --git a/test/scaladoc/run/SI-9704.scala b/test/scaladoc/run/SI-9704.scala new file mode 100644 index 0000000000..e6f071704e --- /dev/null +++ b/test/scaladoc/run/SI-9704.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def code = """ + object Foo { + /** + * Demonstrates a scala issue in which the closing link tag is duplicated + * <a href="https://link">title</a> + */ + def bar = ??? + } + """ + + def scaladocSettings = "" + + def testModel(root: Package) = { + import access._ + val thing = root._object("Foo")._method("bar") + println(thing.comment.get.short) + } +} |