Skip to content

Commit

Permalink
tests: Add avm1/text_format_font_max_length test
Browse files Browse the repository at this point in the history
This test verifies the behavior of TextFormat.font
and its maximum length.
  • Loading branch information
kjarosh committed Jan 18, 2025
1 parent 1c48b8f commit 0dbc263
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/tests/swfs/avm1/text_format_font_max_length/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Constructor: a very , very, very, very, very, very, very, very, very, very, v
Setter: a 2 very , very, very, very, very, very, very, very, very, very,
8 changes: 8 additions & 0 deletions tests/tests/swfs/avm1/text_format_font_max_length/test.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function test() {
var tf = new TextFormat("a very , very, very, very, very, very, very, very, very, very, very, very, very long font");
trace("Constructor: " + tf.font);
tf.font = "a 2 very , very, very, very, very, very, very, very, very, very, very, very, very long font";
trace("Setter: " + tf.font);
}

test();
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
num_ticks = 1

0 comments on commit 0dbc263

Please sign in to comment.