diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2012-04-25 17:28:07 +0200 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2012-04-25 17:28:07 +0200 |
commit | 07ed42f07380aec06e5d0f65d69ce6826df39e2a (patch) | |
tree | 8140af3a4b0d56c57a202ca224fe99159dd427e4 /test/files/presentation/patmat/Runner.scala | |
parent | 1d0372f84f9a7325a47beb55169cc454895ef74b (diff) | |
download | scala-07ed42f07380aec06e5d0f65d69ce6826df39e2a.tar.gz scala-07ed42f07380aec06e5d0f65d69ce6826df39e2a.tar.bz2 scala-07ed42f07380aec06e5d0f65d69ce6826df39e2a.zip |
Added a Presentation Compiler test for hyperlinking.
This test ensures hyperlinking works inside and around pattern matching. The new virtual pattern matcher
synthesizes trees that are not properly nested, and whose positions make it impossible to retrieve the correct
tree/symbol for a given position. Therefore, the current test is using the old pattern matcher. However,
once the virtual pattern matcher is fixed, remove the corresponding line from patmat.flags to re-enable virtpatmat.
Diffstat (limited to 'test/files/presentation/patmat/Runner.scala')
-rw-r--r-- | test/files/presentation/patmat/Runner.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/presentation/patmat/Runner.scala b/test/files/presentation/patmat/Runner.scala new file mode 100644 index 0000000000..3d19f2d948 --- /dev/null +++ b/test/files/presentation/patmat/Runner.scala @@ -0,0 +1,11 @@ +import scala.tools.nsc.interactive.tests.InteractiveTest + +object Test extends InteractiveTest { + override def runTests() { + // make sure typer is done.. the virtual pattern matcher might translate + // some trees and mess up positions. But we'll catch it red handed! + sourceFiles foreach (src => askLoadedTyped(src).get) + super.runTests() + } + +}
\ No newline at end of file |