diff options
Diffstat (limited to 'examples/noc/test/accel_to_mouse.script')
| -rw-r--r-- | examples/noc/test/accel_to_mouse.script | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/noc/test/accel_to_mouse.script b/examples/noc/test/accel_to_mouse.script new file mode 100644 index 0000000..7c3339d --- /dev/null +++ b/examples/noc/test/accel_to_mouse.script @@ -0,0 +1,18 @@ +# The mover chases the pointer to the lower right: within its radius (24) +# after a second, past it after a second and a half, back inside after two. +# Then it turns around after the pointer to the upper left. +move 560 300 +frames 64 +expect position[0] 560 ~24 +expect position[1] 300 ~24 +frames 26 +expect position[0] 615.2 ~0.1 +expect position[1] 327.5 ~0.1 +frames 30 +expect position[0] 560 ~24 +expect position[1] 300 ~24 +move 80 60 +frames 40 +expect velocity[0] -4.47 ~0.01 +expect velocity[1] -2.24 ~0.01 +screenshot .zig-cache/e2e/accel_to_mouse.png |
