diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-15 16:41:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-15 16:41:17 +0000 |
commit | 13da5ccad36012b20380ef0ebf0fcf0107feba7f (patch) | |
tree | c5f1dffafc6da02495946f51b68df6bd0b3c53aa /test/disabled/jvm | |
parent | d14841d095448f0c7c2b211de8ca6f0e218c1f51 (diff) | |
download | scala-13da5ccad36012b20380ef0ebf0fcf0107feba7f.tar.gz scala-13da5ccad36012b20380ef0ebf0fcf0107feba7f.tar.bz2 scala-13da5ccad36012b20380ef0ebf0fcf0107feba7f.zip |
Disabled JavaInteraction test.
of time because it fails if you can't connect to the screen of the test
machine. And then if any test fails, the stability test doesn't run. We
badly a separate testing area for tests which are prone to failure for
reasons which are unrelated to the quality ostensibly being tested. No
review.
Diffstat (limited to 'test/disabled/jvm')
-rw-r--r-- | test/disabled/jvm/JavaInteraction.check | 4 | ||||
-rw-r--r-- | test/disabled/jvm/JavaInteraction.scala | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/disabled/jvm/JavaInteraction.check b/test/disabled/jvm/JavaInteraction.check new file mode 100644 index 0000000000..fb9d3cdd8c --- /dev/null +++ b/test/disabled/jvm/JavaInteraction.check @@ -0,0 +1,4 @@ +p.x = 5 +p.c = java.awt.Color[r=255,g=0,b=0] +p.getX() = 5.0 +p.getC() = java.awt.Color[r=255,g=0,b=0] diff --git a/test/disabled/jvm/JavaInteraction.scala b/test/disabled/jvm/JavaInteraction.scala new file mode 100644 index 0000000000..1316fad5d4 --- /dev/null +++ b/test/disabled/jvm/JavaInteraction.scala @@ -0,0 +1,23 @@ +//############################################################################ +// Test Java interaction +//############################################################################ + +import java.awt.Color; +import java.awt.Point; + +class ColoredPoint(x: Int, y: Int, c_ : Color) extends Point(x, y) { + val c: Color = c_; + def getC(): Color = c; +} + +object Test { + def main(args: Array[String]): Unit = { + val p = new ColoredPoint(5, 7, Color.RED); + Console.println("p.x = " + p.x); + Console.println("p.c = " + p.c); + Console.println("p.getX() = " + p.getX()); + Console.println("p.getC() = " + p.getC()); + } +} + +//############################################################################ |