Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit 7bda818c authored by alex@thinkpad's avatar alex@thinkpad
Browse files

api_test.lua: additional checks for paused LiveView

--HG--
branch : lua_fix
parent 2e578045868f
...@@ -314,6 +314,11 @@ function test_camera_gui() ...@@ -314,6 +314,11 @@ function test_camera_gui()
end end
end end
if lv.paused then
printf("Resume LiveView...\n");
lv.resume()
end
lv.stop() lv.stop()
assert(not lv.enabled) assert(not lv.enabled)
...@@ -1182,6 +1187,7 @@ function test_lv() ...@@ -1182,6 +1187,7 @@ function test_lv()
lv.pause() lv.pause()
assert(lv.enabled, "LiveView stopped") assert(lv.enabled, "LiveView stopped")
assert(lv.paused, "LiveView could not be paused") assert(lv.paused, "LiveView could not be paused")
assert(not lv.running, "LiveView should not be running")
assert(not lens.autofocusing) assert(not lens.autofocusing)
assert(lv.vidmode == "PAUSED-LV"); assert(lv.vidmode == "PAUSED-LV");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment