diff options
Diffstat (limited to 'examples/scala-js/test-bridge/src/main/scala/scala/scalajs/testbridge/TestOutput.scala')
-rw-r--r-- | examples/scala-js/test-bridge/src/main/scala/scala/scalajs/testbridge/TestOutput.scala | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/scala-js/test-bridge/src/main/scala/scala/scalajs/testbridge/TestOutput.scala b/examples/scala-js/test-bridge/src/main/scala/scala/scalajs/testbridge/TestOutput.scala new file mode 100644 index 0000000..5f3b8b6 --- /dev/null +++ b/examples/scala-js/test-bridge/src/main/scala/scala/scalajs/testbridge/TestOutput.scala @@ -0,0 +1,34 @@ +/* __ *\ +** ________ ___ / / ___ __ ____ Scala.js API ** +** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ ** +** /____/\___/_/ |_/____/_/ | |__/ /____/ ** +** |/____/ ** +\* */ + + +package scala.scalajs.testbridge + +trait TestOutput { + + type Color + + val errorColor: Color + val successColor: Color + val infoColor: Color + + def color(message: String, color: Color): String + + def error(message: String, stack: Array[StackTraceElement]): Unit + def error(message: String): Unit + def failure(message: String, stack: Array[StackTraceElement]): Unit + def failure(message: String): Unit + def succeeded(message: String): Unit + def skipped(message: String): Unit + def pending(message: String): Unit + def ignored(message: String): Unit + def canceled(message: String): Unit + + def log: TestOutputLog + +} |