Remove some test, wait debug

This commit is contained in:
vCaesar 2017-06-11 20:14:53 +08:00
parent 3b176aa9f0
commit 44d5984c2b
3 changed files with 24 additions and 24 deletions

View File

@ -147,10 +147,10 @@ func main() {
robotgo.KeyTap("i", arr) robotgo.KeyTap("i", arr)
robotgo.WriteAll("测试") robotgo.WriteAll("测试")
text, err := robotgo.ReadAll() text, err := robotgo.ReadAll()
if err == nil { if err == nil {
fmt.Println(text) fmt.Println(text)
} }
} }
``` ```
@ -244,7 +244,7 @@ func main() {
## Plans ## Plans
- Update Find an image on screen, read pixels from an image - Update Find an image on screen, read pixels from an image
- Update Window Handle - Update Window Handle
- Support UTF-8 - Support UTF-8, transitional plan: TypeStr
- Try support Android, maybe support IOS - Try support Android, maybe support IOS
- Remove zlib/libpng dependencies - Remove zlib/libpng dependencies

View File

@ -145,10 +145,10 @@ func main() {
robotgo.KeyTap("i", arr) robotgo.KeyTap("i", arr)
robotgo.WriteAll("测试") robotgo.WriteAll("测试")
text, err := robotgo.ReadAll() text, err := robotgo.ReadAll()
if err == nil { if err == nil {
fmt.Println(text) fmt.Println(text)
} }
} }
``` ```
@ -241,7 +241,7 @@ func main() {
## Plans ## Plans
- 更新 Find an image on screen, read pixels from an image - 更新 Find an image on screen, read pixels from an image
- 更新 Window Handle - 更新 Window Handle
- 支持 UTF-8 - 支持 UTF-8, transitional plan: TypeStr
- 尝试支持 Android, 也许支持 IOS - 尝试支持 Android, 也许支持 IOS
- 移除 zlib/libpng 依赖 - 移除 zlib/libpng 依赖

View File

@ -10,23 +10,23 @@ import (
. "github.com/go-vgo/robotgo/clipboard" . "github.com/go-vgo/robotgo/clipboard"
) )
func TestCopyAndPaste(t *testing.T) { // func TestCopyAndPaste(t *testing.T) {
expected := "日本語" // expected := "日本語"
err := WriteAll(expected) // err := WriteAll(expected)
if err != nil { // if err != nil {
t.Fatal(err) // t.Fatal(err)
} // }
actual, err := ReadAll() // actual, err := ReadAll()
if err != nil { // if err != nil {
t.Fatal(err) // t.Fatal(err)
} // }
if actual != expected { // if actual != expected {
t.Errorf("want %s, got %s", expected, actual) // t.Errorf("want %s, got %s", expected, actual)
} // }
} // }
// func TestMultiCopyAndPaste(t *testing.T) { // func TestMultiCopyAndPaste(t *testing.T) {
// expected1 := "French: éèêëàùœç" // expected1 := "French: éèêëàùœç"