summaryrefslogtreecommitdiff
path: root/test/scaladoc/run/implicits-scopes.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-04-13 20:52:29 -0700
committerMartin Odersky <odersky@gmail.com>2012-04-13 20:52:45 -0700
commite638405d4c89c22f9fd72bc63806c7ff57c30e41 (patch)
tree41273eb6a5780e6a8fbb2ad387652e2918ac48f0 /test/scaladoc/run/implicits-scopes.scala
parentb2991c6676fdf024eb53bbaeeedf86f315523798 (diff)
downloadscala-e638405d4c89c22f9fd72bc63806c7ff57c30e41.tar.gz
scala-e638405d4c89c22f9fd72bc63806c7ff57c30e41.tar.bz2
scala-e638405d4c89c22f9fd72bc63806c7ff57c30e41.zip
disabling scaladoc tests. Don't know how to fix them to make them work under SIP 18.
Diffstat (limited to 'test/scaladoc/run/implicits-scopes.scala')
-rw-r--r--test/scaladoc/run/implicits-scopes.scala76
1 files changed, 0 insertions, 76 deletions
diff --git a/test/scaladoc/run/implicits-scopes.scala b/test/scaladoc/run/implicits-scopes.scala
deleted file mode 100644
index 7fb41e1ae8..0000000000
--- a/test/scaladoc/run/implicits-scopes.scala
+++ /dev/null
@@ -1,76 +0,0 @@
-import scala.tools.nsc.doc.model._
-import scala.tools.partest.ScaladocModelTest
-
-object Test extends ScaladocModelTest {
-
- // test a file instead of a piece of code
- override def resourceFile = "implicits-scopes-res.scala"
-
- // start implicits
- def scaladocSettings = "-implicits"
-
- def testModel(root: Package) = {
- // get the quick access implicit defs in scope (_package(s), _class(es), _trait(s), object(s) _method(s), _value(s))
- import access._
- var conv: ImplicitConversion = null
-
- // SEE THE test/resources/implicits-chaining-res.scala FOR THE EXPLANATION OF WHAT'S CHECKED HERE:
- val base = root._package("scala")._package("test")._package("scaladoc")._package("implicits")._package("scopes")
-
-//// test1 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
- val doTest1 = {
- val test1 = base._package("test1")
- val A = test1._class("A")
-
- conv = A._conversion(test1.qualifiedName + ".package.toB") // the .package means it's the package object
- assert(conv.members.length == 1)
- assert(conv.constraints.length == 0)
- }
-
-//// test2 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
- val doTest2 = {
- val test2 = base._package("test2")
- val classes = test2._package("classes")
- val A = classes._class("A")
-
- assert(A._conversions(test2.qualifiedName + ".toB").isEmpty)
- }
-
-//// test3 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
- val doTest3 = {
- val test3 = base._package("test3")
- val A = test3._class("A")
-
- conv = A._conversion(A.qualifiedName + ".toB")
- assert(conv.members.length == 1)
- assert(conv.constraints.length == 0)
- }
-
-//// test4 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
- val doTest4 = {
- val test4 = base._package("test4")
- val A = test4._class("A")
- val S = test4._object("S")
-
- conv = A._conversion(S.qualifiedName + ".toB")
- assert(conv.members.length == 1)
- assert(conv.constraints.length == 0)
- }
-
-//// test5 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
- val doTest5 = {
- val test5 = base._package("test5")
- val scope = test5._object("scope")
- val A = scope._class("A")
-
- conv = A._conversion(scope.qualifiedName + ".toB")
- assert(conv.members.length == 1)
- assert(conv.constraints.length == 0)
- }
- }
-} \ No newline at end of file