diff options
author | Philippus Baalman <philippus@gmail.com> | 2017-02-22 21:34:35 +0100 |
---|---|---|
committer | Philippus Baalman <philippus@gmail.com> | 2017-02-25 14:44:32 +0100 |
commit | e3c5df8ec369047d73a54ed94caebe0a4f26627c (patch) | |
tree | 991d33ded453604cf7df71f1794e4dc0f4ad5f77 /test/scaladoc/run/inlineToStr-strips-unwanted-text.check | |
parent | cbf7daa57d70ccacf8cfc7c2f4a7c0e81e1c773a (diff) | |
download | scala-e3c5df8ec369047d73a54ed94caebe0a4f26627c.tar.gz scala-e3c5df8ec369047d73a54ed94caebe0a4f26627c.tar.bz2 scala-e3c5df8ec369047d73a54ed94caebe0a4f26627c.zip |
added missing Inline matches to inlineToStr so it is now exhaustive
scala.xml.XML.loadString(tag).text will remove all html tags inside the HtmlTag
use a regex to remove html tags inside the tag
added some tests for the inlineToStr-method
moved inlineToStr to companion object of Page
added test for nested html tags
Diffstat (limited to 'test/scaladoc/run/inlineToStr-strips-unwanted-text.check')
-rw-r--r-- | test/scaladoc/run/inlineToStr-strips-unwanted-text.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/scaladoc/run/inlineToStr-strips-unwanted-text.check b/test/scaladoc/run/inlineToStr-strips-unwanted-text.check new file mode 100644 index 0000000000..986b58d469 --- /dev/null +++ b/test/scaladoc/run/inlineToStr-strips-unwanted-text.check @@ -0,0 +1,13 @@ +Chain(List(Chain(List(Text(This comment contains ), Superscript(Text(superscript)))))) +Chain(List(Chain(List(Text(This comment contains ), Subscript(Text(subscript)))))) +Chain(List(Chain(List(Text(This comment contains a link ), Link(https://scala.epfl.ch/,Text(https://scala.epfl.ch/)))))) +Chain(List(Chain(List(Text(This comment contains an ), HtmlTag(<strong>html tag</strong>))))) +Chain(List(Chain(List(Text(This comment contains a), HtmlTag(<br>), Text( single html tag))))) +Chain(List(Chain(List(Text(This comment contains nested ), HtmlTag(<strong>html<br> tags</strong>))))) +This comment contains superscript +This comment contains subscript +This comment contains a link https://scala.epfl.ch/ +This comment contains an html tag +This comment contains a single html tag +This comment contains nested html tags +Done. |