update tests

develop
myk002 2022-09-11 18:08:00 -07:00
parent f71f034d1d
commit bcf1b5ddac
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 5 additions and 5 deletions

@ -29,7 +29,7 @@ function test.correct_frame_body_with_scroll_icons()
end end
local o = fs{} local o = fs{}
expect.eq(o.subviews.text.frame_body.width, 9, "Label's frame_body.x2 and .width should be one smaller because of show_scroll_icons.") expect.eq(o.subviews.text.frame_body.width, 9, "Label's frame_body.x2 and .width should be one smaller because of show_scrollbar.")
end end
function test.correct_frame_body_with_few_text_lines() function test.correct_frame_body_with_few_text_lines()
@ -50,10 +50,10 @@ function test.correct_frame_body_with_few_text_lines()
end end
local o = fs{} local o = fs{}
expect.eq(o.subviews.text.frame_body.width, 10, "Label's frame_body.x2 and .width should not change with show_scroll_icons = false.") expect.eq(o.subviews.text.frame_body.width, 10, "Label's frame_body.x2 and .width should not change with show_scrollbar = false.")
end end
function test.correct_frame_body_without_show_scroll_icons() function test.correct_frame_body_without_show_scrollbar()
local t = {} local t = {}
for i = 1, 12 do for i = 1, 12 do
t[#t+1] = tostring(i) t[#t+1] = tostring(i)
@ -66,13 +66,13 @@ function test.correct_frame_body_without_show_scroll_icons()
view_id = 'text', view_id = 'text',
frame_inset = 0, frame_inset = 0,
text = t, text = t,
show_scroll_icons = false, show_scrollbar = false,
}, },
} }
end end
local o = fs{} local o = fs{}
expect.eq(o.subviews.text.frame_body.width, 10, "Label's frame_body.x2 and .width should not change with show_scroll_icons = false.") expect.eq(o.subviews.text.frame_body.width, 10, "Label's frame_body.x2 and .width should not change with show_scrollbar = false.")
end end
function test.scroll() function test.scroll()