diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/backcall.moon | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index 355089a..7702059 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon | |||
| @@ -31,17 +31,19 @@ f = -> | |||
| 31 | 998 |> func0("abc", 233) |> func1 |> func2 | 31 | 998 |> func0("abc", 233) |> func1 |> func2 |
| 32 | 32 | ||
| 33 | do | 33 | do |
| 34 | (data) <- http?.get "ajaxtest" | 34 | (data)<- http?.get "ajaxtest" |
| 35 | body[".result"]\html data | 35 | body[".result"]\html data |
| 36 | (processed) <- http.post "ajaxprocess", data | 36 | (processed)<- http.post "ajaxprocess", data |
| 37 | body[".result"]\append processed | 37 | body[".result"]\append processed |
| 38 | <- setTimeout 1000 | 38 | <- setTimeout 1000 |
| 39 | print "done" | 39 | print "done" |
| 40 | 40 | ||
| 41 | do | 41 | do |
| 42 | <- syncStatus | 42 | <- syncStatus |
| 43 | (err,data="nil") <- loadAsync "file.moon" | 43 | (err,data="nil")<- loadAsync "file.moon" |
| 44 | print err if err | 44 | if err |
| 45 | print err | ||
| 46 | return | ||
| 45 | (codes) <- compileAsync data | 47 | (codes) <- compileAsync data |
| 46 | func = loadstring codes | 48 | func = loadstring codes |
| 47 | func! | 49 | func! |
