diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-07-02 17:46:42 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-07-16 23:41:44 +0200 |
commit | 242c2fc94766f4dd8b7f1f88ad055f0f62d2e109 (patch) | |
tree | 96e9c8d952df0adae8347d7060c130ec61a5ab63 /test/scaladoc | |
parent | 8291106ec985fbe3ee4b8863ccf238dc1d42af58 (diff) | |
download | scala-242c2fc94766f4dd8b7f1f88ad055f0f62d2e109.tar.gz scala-242c2fc94766f4dd8b7f1f88ad055f0f62d2e109.tar.bz2 scala-242c2fc94766f4dd8b7f1f88ad055f0f62d2e109.zip |
SI-5558 Package object members indexing
This bug was fixed by the model upgrade in c11427c1. Test case confirmation.
Diffstat (limited to 'test/scaladoc')
-rw-r--r-- | test/scaladoc/resources/SI-5558.scala | 6 | ||||
-rw-r--r-- | test/scaladoc/scalacheck/IndexTest.scala | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/test/scaladoc/resources/SI-5558.scala b/test/scaladoc/resources/SI-5558.scala new file mode 100644 index 0000000000..6523438b86 --- /dev/null +++ b/test/scaladoc/resources/SI-5558.scala @@ -0,0 +1,6 @@ +package test { + class T + object `package` { + def foo = ??? + } +} diff --git a/test/scaladoc/scalacheck/IndexTest.scala b/test/scaladoc/scalacheck/IndexTest.scala index 29e337da2b..bf385898fc 100644 --- a/test/scaladoc/scalacheck/IndexTest.scala +++ b/test/scaladoc/scalacheck/IndexTest.scala @@ -16,7 +16,7 @@ object Test extends Properties("Index") { val morepaths = Thread.currentThread.getContextClassLoader.getParent.asInstanceOf[URLClassLoader].getURLs.map(u => URLDecoder.decode(u.getPath)) (paths ++ morepaths).mkString(java.io.File.pathSeparator) } - + val docFactory = { val settings = new doc.Settings({Console.err.println(_)}) @@ -27,9 +27,9 @@ object Test extends Properties("Index") { new doc.DocFactory(reporter, settings) } - + val indexModelFactory = doc.model.IndexModelFactory - + def createIndex(path: String): Option[Index] = { val maybeUniverse = { @@ -79,4 +79,11 @@ object Test extends Properties("Index") { case None => false } } + property("package objects in index") = { + createIndex("test/scaladoc/resources/SI-5558.scala") match { + case Some(index) => + index.index.firstLetterIndex('f') isDefinedAt "foo" + case None => false + } + } } |