From 4235635142d77d0c087c026fef8d8e6ee535e9d9 Mon Sep 17 00:00:00 2001 From: Micro Dotta Date: Mon, 5 Sep 2011 10:06:59 +0000 Subject: Created test cases for tickets that need to be ... Created test cases for tickets that need to be fixed in the presentation compiler. These tests should eventually be moved under folder /files/presentation/ once they are working. --- test/disabled/presentation/ide-bug-1000349.check | 0 .../presentation/ide-bug-1000349/Runner.scala | 3 +++ .../src/CompletionOnEmptyArgMethod.scala | 3 +++ test/disabled/presentation/ide-bug-1000450.check | 0 .../presentation/ide-bug-1000450/Runner.scala | 6 ++++++ .../presentation/ide-bug-1000450/src/Ranges.scala | 5 +++++ test/disabled/presentation/ide-bug-1000545.check | 0 .../presentation/ide-bug-1000545/Runner.scala | 3 +++ .../ide-bug-1000545/src/CompletionFails.scala | 25 ++++++++++++++++++++++ 9 files changed, 45 insertions(+) create mode 100644 test/disabled/presentation/ide-bug-1000349.check create mode 100644 test/disabled/presentation/ide-bug-1000349/Runner.scala create mode 100644 test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala create mode 100644 test/disabled/presentation/ide-bug-1000450.check create mode 100644 test/disabled/presentation/ide-bug-1000450/Runner.scala create mode 100644 test/disabled/presentation/ide-bug-1000450/src/Ranges.scala create mode 100644 test/disabled/presentation/ide-bug-1000545.check create mode 100644 test/disabled/presentation/ide-bug-1000545/Runner.scala create mode 100644 test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala (limited to 'test/disabled/presentation') diff --git a/test/disabled/presentation/ide-bug-1000349.check b/test/disabled/presentation/ide-bug-1000349.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/disabled/presentation/ide-bug-1000349/Runner.scala b/test/disabled/presentation/ide-bug-1000349/Runner.scala new file mode 100644 index 0000000000..1ef3cf9025 --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000349/Runner.scala @@ -0,0 +1,3 @@ +import scala.tools.nsc.interactive.tests._ + +object Test extends InteractiveTest \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala b/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala new file mode 100644 index 0000000000..55df2abc11 --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala @@ -0,0 +1,3 @@ +object Foo { + "".toString.leng /*!*/ +} \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000450.check b/test/disabled/presentation/ide-bug-1000450.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/disabled/presentation/ide-bug-1000450/Runner.scala b/test/disabled/presentation/ide-bug-1000450/Runner.scala new file mode 100644 index 0000000000..7c16a57f5c --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000450/Runner.scala @@ -0,0 +1,6 @@ +import scala.tools.nsc.interactive.tests._ + +import scala.tools.nsc.interactive.Response +import scala.tools.nsc.util.Position + +object Test extends InteractiveTest \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala b/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala new file mode 100644 index 0000000000..10e69c58f0 --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000450/src/Ranges.scala @@ -0,0 +1,5 @@ +object Ranges { + // (1 to 10). // (1) this works as expected + + (1 to 10).toS /*!*/ // (2) this fails +} \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000545.check b/test/disabled/presentation/ide-bug-1000545.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/disabled/presentation/ide-bug-1000545/Runner.scala b/test/disabled/presentation/ide-bug-1000545/Runner.scala new file mode 100644 index 0000000000..1ef3cf9025 --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000545/Runner.scala @@ -0,0 +1,3 @@ +import scala.tools.nsc.interactive.tests._ + +object Test extends InteractiveTest \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala b/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala new file mode 100644 index 0000000000..7300e5fd7d --- /dev/null +++ b/test/disabled/presentation/ide-bug-1000545/src/CompletionFails.scala @@ -0,0 +1,25 @@ +/** + * Presentation compiler returns the wrong answer for this test. + * + * Below is the current result of running this test: + * + * Mircos-iMac:test mirco$ ./partest files/presentation/ticket-1000545 --show-log | sed 's/< //' + * Testing individual files + * testing: [...]/files/presentation/ticket-1000545 [FAILED] + * 1,8d0 + * reload: CompletionFails.scala + * + * askTypeCompletion at CompletionFails.scala(2,19) + * ================================================================================ + * [response] aksTypeCompletion at (2,19) + * retrieved 1 members + * TypeMember(method ,()Unit,false,false,) + * ================================================================================ + * + * 1 of 1 tests failed (elapsed time: 00:00:05) + * + * @note The expected result was the list of static methods for class @see java.io.Console + */ +object CompletionFails { + java.io.Console. /*!*/ +} \ No newline at end of file -- cgit v1.2.3