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TMLTDO6OJDHVZQJ6MFXZ45IRXRDSRSEQNO5DIAC
PGZJ6NATSMW4XH64XEPE5Q2EEYCMAMQIIP2OZXPNJ527234QPKMQC
VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC
3QNOKBFMKBGXBVJIRHR2444JRRMBTABHE4674NR3DT67RRM2X6GAC
function test_draw_wrapping_text()
io.write('\ntest_draw_wrapping_text')
App.screen.init{width=50, height=60}
Lines = load_array{'abc', 'defgh', 'xyz'}
Line_width = App.screen.width
Cursor1 = {line=1, pos=1}
Screen_top1 = {line=1, pos=1}
Screen_bottom1 = {}
Zoom = 1
App.draw()
local screen_top_margin = 15 -- pixels
local line_height = 15 -- pixels
local y = screen_top_margin
App.screen.check(y, 'abc', 'F - test_draw_wrapping_text/screen:1')
y = y + line_height
App.screen.check(y, 'def', 'F - test_draw_wrapping_text/screen:2')
y = y + line_height
App.screen.check(y, 'gh', 'F - test_draw_wrapping_text/screen:3')
end
function test_edit_wrapping_text()
io.write('\ntest_edit_wrapping_text')
App.screen.init{width=50, height=60}
Lines = load_array{'abc', 'def', 'xyz'}
Line_width = App.screen.width
Cursor1 = {line=2, pos=4}
Screen_top1 = {line=1, pos=1}
Screen_bottom1 = {}
Zoom = 1
App.run_after_textinput('g')
App.run_after_textinput('h')
App.run_after_textinput('i')
App.run_after_textinput('j')
App.run_after_textinput('k')
App.run_after_textinput('l')
local screen_top_margin = 15 -- pixels
local line_height = 15 -- pixels
local y = screen_top_margin
App.screen.check(y, 'abc', 'F - test_edit_wrapping_text/screen:1')
y = y + line_height
App.screen.check(y, 'def', 'F - test_edit_wrapping_text/screen:2')
y = y + line_height
App.screen.check(y, 'ghij', 'F - test_edit_wrapping_text/screen:3')
end
-- maximize window
love.window.setMode(0, 0) -- maximize
App.screen.width, App.screen.height = love.window.getMode()
-- shrink slightly to account for window decoration
App.screen.width = App.screen.width-100
App.screen.height = App.screen.height-100
love.window.setMode(App.screen.width, App.screen.height)
--? App.screen.width = 120
--? App.screen.height = 200
--? love.window.setMode(App.screen.width, App.screen.height)
end -- App.initialize_globals
function App.initialize(arg)
love.keyboard.setTextInput(true) -- bring up keyboard on touch screen
love.keyboard.setKeyRepeat(true)
-- maximize window
love.window.setMode(0, 0) -- maximize
App.screen.width, App.screen.height = love.window.getMode()
-- shrink slightly to account for window decoration
App.screen.width = App.screen.width-100
App.screen.height = App.screen.height-100
love.window.setMode(App.screen.width, App.screen.height)
--? App.screen.width = 120
--? App.screen.height = 200
--? love.window.setMode(App.screen.width, App.screen.height)