Add margins test.

This test is also approx'd to 1px due to the same issue where heights are off by one.
This commit is contained in:
David Wendt 2020-06-04 19:31:28 -04:00
parent db0398d2ee
commit 3d094ed689
4 changed files with 26 additions and 0 deletions

View File

@ -212,6 +212,7 @@ swf_tests_approx! {
(stage_object_properties_swf6, "avm1/stage_object_properties_swf6", 4, 0.051), (stage_object_properties_swf6, "avm1/stage_object_properties_swf6", 4, 0.051),
(movieclip_getbounds, "avm1/movieclip_getbounds", 1, 0.051), (movieclip_getbounds, "avm1/movieclip_getbounds", 1, 0.051),
(edittext_letter_spacing, "avm1/edittext_letter_spacing", 1, 1.0), (edittext_letter_spacing, "avm1/edittext_letter_spacing", 1, 1.0),
(edittext_margins, "avm1/edittext_margins", 1, 1.0),
} }
/// Wrapper around string slice that makes debug output `{:?}` to print string same way as `{}`. /// Wrapper around string slice that makes debug output `{:?}` to print string same way as `{}`.

View File

@ -0,0 +1,25 @@
//Creating left aligned indented text w/ wordwrap, multiline & long text
//field.textWidth
370
//field.textHeight
75
//Creating center aligned indented text w/ wordwrap, multiline & long text
//field.textWidth
367
//field.textHeight
75
//Creating right aligned indented text w/ wordwrap, multiline & long text
//field.textWidth
367
//field.textHeight
75
//Creating justified indented text w/ wordwrap, multiline & long text
//field.textWidth
367
//field.textHeight
75
//Creating marginless text w/ wordwrap, multiline & long text
//field.textWidth
376
//field.textHeight
60

Binary file not shown.

Binary file not shown.