2014-04-28 07:58:34 +08:00
|
|
|
package opencv
|
2014-04-26 18:11:51 +08:00
|
|
|
|
|
|
|
import (
|
2014-06-14 04:45:50 +08:00
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
"testing"
|
2014-04-26 18:11:51 +08:00
|
|
|
)
|
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func initTestWindowDriver() *WindowDriver {
|
|
|
|
return NewWindowDriver("bot")
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|
2014-04-26 18:11:51 +08:00
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func TestWindowDriverStart(t *testing.T) {
|
2014-06-14 04:45:50 +08:00
|
|
|
t.SkipNow()
|
2014-06-14 07:01:39 +08:00
|
|
|
d := initTestWindowDriver()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(t, d.Start(), true)
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func TestWindowDriverHalt(t *testing.T) {
|
2014-06-14 04:45:50 +08:00
|
|
|
t.SkipNow()
|
2014-06-14 07:01:39 +08:00
|
|
|
d := initTestWindowDriver()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(t, d.Halt(), true)
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func TestWindowDriverInit(t *testing.T) {
|
2014-06-14 04:45:50 +08:00
|
|
|
t.SkipNow()
|
2014-06-14 07:01:39 +08:00
|
|
|
d := initTestWindowDriver()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(t, d.Init(), true)
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|