From 654c9ff6e67f2c7c49b5a97dba98028406f6c83a Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Fri, 22 Jul 2011 01:50:17 +0000 Subject: Should not set the parameter name's width on CSS. --- test/scaladoc/resources/SI_4589.scala | 11 +++++++++++ test/scaladoc/scala/html/HtmlFactoryTest.scala | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/scaladoc/resources/SI_4589.scala (limited to 'test') diff --git a/test/scaladoc/resources/SI_4589.scala b/test/scaladoc/resources/SI_4589.scala new file mode 100644 index 0000000000..d18fd65736 --- /dev/null +++ b/test/scaladoc/resources/SI_4589.scala @@ -0,0 +1,11 @@ +class SI_4589 { + /** + * @param x012345678901234567890123456789 blah blah blah + */ + def foo(x012345678901234567890123456789: Int) = 123 + + /** + * @param x0123456789 blah blah blah + */ + def bar(x0123456789: Int) = 123 +} diff --git a/test/scaladoc/scala/html/HtmlFactoryTest.scala b/test/scaladoc/scala/html/HtmlFactoryTest.scala index ffb93b8930..21bcc29364 100644 --- a/test/scaladoc/scala/html/HtmlFactoryTest.scala +++ b/test/scaladoc/scala/html/HtmlFactoryTest.scala @@ -323,4 +323,15 @@ object Test extends Properties("HtmlFactory") { case _ => false } } + + property("SI-4589") = { + createTemplate("SI_4589.scala") match { + case node: scala.xml.Node => { + val html = node.toString + html.contains(">x0123456789: <") && + html.contains(">x012345678901234567890123456789: <") + } + case _ => false + } + } } -- cgit v1.2.3