From 0c50083c8e0ed0d329a4f2f5cdf32024abd5b357 Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Thu, 6 Jun 2024 16:31:29 +0200 Subject: [PATCH] tests: Add avm1/movieclip_create_text_field test This test verifies the behavior of MovieClip.createTextField's params. --- .../output.expected.png | Bin 0 -> 231 bytes .../movieclip_create_text_field/output.txt | 90 ++++++++++++++++++ .../avm1/movieclip_create_text_field/test.as | 51 ++++++++++ .../avm1/movieclip_create_text_field/test.swf | Bin 0 -> 495 bytes .../movieclip_create_text_field/test.toml | 6 ++ 5 files changed, 147 insertions(+) create mode 100644 tests/tests/swfs/avm1/movieclip_create_text_field/output.expected.png create mode 100644 tests/tests/swfs/avm1/movieclip_create_text_field/output.txt create mode 100644 tests/tests/swfs/avm1/movieclip_create_text_field/test.as create mode 100644 tests/tests/swfs/avm1/movieclip_create_text_field/test.swf create mode 100644 tests/tests/swfs/avm1/movieclip_create_text_field/test.toml diff --git a/tests/tests/swfs/avm1/movieclip_create_text_field/output.expected.png b/tests/tests/swfs/avm1/movieclip_create_text_field/output.expected.png new file mode 100644 index 0000000000000000000000000000000000000000..9f4af7080f16dc9710dda9b5eba4595a9b011cd3 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^DImpWc?Ln>~)y>pP4L4k*PW5bR5 zr<<7GKe)YM)2FvyMw%JR9`(H8=xAUN6i{Gda&c%NhkY@5`BUN9tsEQzjEqW9W5{6t aT*sZn!hYDA<&8Vg1pokeoRw2OPa8oHeRs$CgYcO+IE53rNeU#S1h)oTGQz2BV$l-~FL~8Xe7~y(78nCPK$TQ>qxJ|oOXw!&3J_k`Db$2 zfbX$BNjMQ`daTabA;Eoz^;+nA&Iv#8-2OnuKjFx8T@Hu50WUohe*~(HE^BgZZG(S9 zquxAjd+zB;OMxY~=X$tGt5+K^H(|JqE-JV-v0!|lJrP2Ij7nKD=9IA}%)*qhCroV0 z#EH3jA6Y3$x-cDBXZ7AG!=X%NJ>P7^#cNM5Ow`1l6uwy&(U=-ttO?2pslmNc=PnPpv4@=XGZwY-dEqVh_Gq264b@s^rh;q5v4 zc$EI%q$`3miOZ{9tYpHNga>b*G{RpE&#h_5r~u!;EBx?%U+Yra(35GFxUL~ndVX2d z(?8N2>ouRt#qV>p^vZpuCrfI`Xg0M}mR=vgpMrcPiNm$5do*1Cdz4H{aKFT3D|TCG l6dN^mQ7=@UJBq2OsYpr1Yxz%BXT-)+$|{Pq{{>)07zezD@=^c* literal 0 HcmV?d00001 diff --git a/tests/tests/swfs/avm1/movieclip_create_text_field/test.toml b/tests/tests/swfs/avm1/movieclip_create_text_field/test.toml new file mode 100644 index 000000000000..f09609be3296 --- /dev/null +++ b/tests/tests/swfs/avm1/movieclip_create_text_field/test.toml @@ -0,0 +1,6 @@ +num_ticks = 1 + +image_comparisons."output".trigger = 1 + +[player_options] +with_renderer = { optional = true, sample_count = 1 }