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X3WO4AC
Cursor1 = {line=1, pos=1}
Screen_top1 = {line=1, pos=1}
Screen_bottom1 = {}
App.draw()
local y = Margin_top
App.screen.check(y, 'the quick brown fox ', 'F - test_click_past_end_of_word_wrapping_line/baseline/screen:1')
y = y + Line_height
-- click past the end of the screen line but within Line_width
App.draw()
App.run_after_mouse_click(Line_width-2,y-2, 1)
end
function test_adjust_line_width()
io.write('\ntest_adjust_line_width')
Filename = 'foo'
App.screen.init{width=Margin_left+300, height=300}
Line_width = 256
App.draw() -- initialize button
App.run_after_mouse_press(256, Margin_top-3, 1)
App.mouse_move(200, 37)
-- no change for some time
App.wait_fake_time(0.01)
App.update(0)
check_eq(Line_width, 256, 'F - test_adjust_line_width/early')
-- after 0.1s the change takes
App.wait_fake_time(0.1)
App.update(0)
check_eq(Line_width, 200, 'F - test_adjust_line_width')
-- save some important settings
local x,y,displayindex = love.window.getPosition()
local settings = {
x=x, y=y, displayindex=displayindex,
width=App.screen.width, height=App.screen.height,
font_height=Font_height, filename=Filename, screen_top=Screen_top1, cursor=Cursor1}
love.filesystem.write('config', json.encode(settings))
-- save some important settings
local x,y,displayindex = love.window.getPosition()
local settings = {
x=x, y=y, displayindex=displayindex,
width=App.screen.width, height=App.screen.height,
font_height=Font_height, filename=Filename, screen_top=Screen_top1, cursor=Cursor1}
love.filesystem.write('config', json.encode(settings))
App.screen.init{width=Margin_width+256, height=300} -- drawing coordinates 1:1 with pixels
App.screen.init{width=Margin_width+256, height=300} -- drawing coordinates 1:1 with pixels
App.screen.init{width=Margin_width+256, height=300} -- drawing coordinates 1:1 with pixels