summaryrefslogtreecommitdiff
path: root/test/files/presentation/find-trees/src/InteractiveTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/presentation/find-trees/src/InteractiveTest.scala')
-rw-r--r--test/files/presentation/find-trees/src/InteractiveTest.scala36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/files/presentation/find-trees/src/InteractiveTest.scala b/test/files/presentation/find-trees/src/InteractiveTest.scala
deleted file mode 100644
index a1a3f96ee0..0000000000
--- a/test/files/presentation/find-trees/src/InteractiveTest.scala
+++ /dev/null
@@ -1,36 +0,0 @@
-package scala.tools.nsc.interactive
-package tests
-
-import scala.tools.nsc.Settings
-import scala.tools.nsc.reporters.StoreReporter
-import scala.tools.nsc.util.{BatchSourceFile, SourceFile, Position}
-import scala.tools.nsc.io._
-
-/** A base class for writing interactive compiler tests.
- *
- * @author Iulian Dragos
- *
- */
-abstract class InteractiveTest {
-
- val settings = new Settings
- val reporter= new StoreReporter
-
- settings.YpresentationDebug.value = true
- lazy val compiler: CompilerControl = new Global(settings, reporter)
-
- def sources(filename: String*): Seq[SourceFile] =
- filename map source
-
- def source(filename: String) = new BatchSourceFile(AbstractFile.getFile(filename))
-
- def pos(filename: String, line: Int, col: Int): Position =
- source(filename).position(line, col)
-
- def runTest: Unit
-
- def main(args: Array[String]) {
- runTest
- }
-}
-