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QEXHTQCDN2HSGYOMFQ5HPQC
4EGQRXDANFLUYXADP3MNHZWP2LBH2P5VBVKNN5RT6ERGMBVSRI2AC
D5J7IZADWXMHCCNFOROFEBUOSE34VDLN4K3TUIZEEC4YT4IB5EVAC
LYIV4YOLU6KYRCBU64M4YXS57CZ23YQHJ4WPVDNAZL4TMDGYV7MQC
your app's variables here rather than in `on.draw`. Provides in `dt` the
time since the previous call to `on.update`, which can be useful for things
=======
button. Provides the same arguments as `on.mouse_press()` above.
=======
* `App.mousereleased(x,y, mouse_button)` -- called when you release a mouse
=======
-- clean up all test methods
for _,name in ipairs(sorted_names) do
_G[name] = nil
end
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
function App.run_test(test, record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
App.initialize_for_test()
xpcall(test, function(err) record_error_fn('', err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
end
end
function App.run_tests(record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
--? print('=== '..name)
xpcall(_G[name], function(err) record_error_fn(name, err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
function App.run_test(test, record_error_fn)
local globals = App.shallow_copy_all_globals()
App = App_for_tests
local saved_font = love.graphics.getFont()
love.graphics.setFont(Love_snapshot.initial_font)
App.initialize_for_test()
xpcall(test, function(err) record_error_fn('', err) end)
love.graphics.setFont(saved_font)
-- restore all global state except Test_errors
local test_errors = Test_errors
App.restore_all_globals(globals)
Test_errors = test_errors
function colortable(app_color)
return {app_color.r, app_color.g, app_color.b, app_color.a}