From 24fc2179ae2ac65f56d8ec8199ecae73334b4a0c Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Mon, 16 Dec 2024 20:15:42 +0100 Subject: [PATCH] tests: Add visual/cache_as_bitmap/edittext_hscroll test Verifies that hscroll works properly when TextField is cached as bitmap. --- .../cache_as_bitmap/edittext_hscroll/input.json | 4 ++++ .../edittext_hscroll/output.01.expected.png | Bin 0 -> 213 bytes .../edittext_hscroll/output.02.expected.png | Bin 0 -> 188 bytes .../cache_as_bitmap/edittext_hscroll/output.txt | 1 + .../cache_as_bitmap/edittext_hscroll/test.swf | Bin 0 -> 907 bytes .../cache_as_bitmap/edittext_hscroll/test.toml | 10 ++++++++++ 6 files changed, 15 insertions(+) create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/input.json create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.01.expected.png create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.02.expected.png create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.txt create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/test.swf create mode 100644 tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/test.toml diff --git a/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/input.json b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/input.json new file mode 100644 index 000000000000..53e199e54aa3 --- /dev/null +++ b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/input.json @@ -0,0 +1,4 @@ +[ + { "type": "Wait" }, + { "type": "KeyDown", "key_code": 27 } +] diff --git a/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.01.expected.png b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.01.expected.png new file mode 100644 index 0000000000000000000000000000000000000000..639c49a8496ea69bbf6aab698197fd6e0a2910b2 GIT binary patch literal 213 zcmeAS@N?(olHy`uVBq!ia0vp^8bB<;!3HEdTJ|3RQY`6?zK#qG8~eHcB(ehejKx9j zPK-BC>eK@{3dtTpz6=aiY77hwEes65fIEamTas2J|jl2wo9L|B(yLvbMXS;cFr4eJf(DIt_kQba%1(Q}3w#|BO+4?qU@lsXK zSu@Lh1r!__7#NvYI6mBW*k2kL{@yd}jDOJC@bihkIrD6~__Pn{to{o$p25@A&t;uc GLK6UT1wz08 literal 0 HcmV?d00001 diff --git a/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.02.expected.png b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.02.expected.png new file mode 100644 index 0000000000000000000000000000000000000000..a4f853300f33d7634a1d7140b4d3d706e51e58b7 GIT binary patch literal 188 zcmeAS@N?(olHy`uVBq!ia0vp^8bB<;!3HEdTJ|3RQY`6?zK#qG8~eHcB(ehejKx9j zPK-BC>eK@{3dtTpz6=aiY77hwEes65fIEamTas2IdM_vX4p2H61QuU`Kdt6ubKDZKY<>^$|{)vT4L?d8}215IJ@boFyt=akR{0QN67pa1{> literal 0 HcmV?d00001 diff --git a/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.txt b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.txt new file mode 100644 index 000000000000..dd8160152ff9 --- /dev/null +++ b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/output.txt @@ -0,0 +1 @@ +Escape pressed diff --git a/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/test.swf b/tests/tests/swfs/visual/cache_as_bitmap/edittext_hscroll/test.swf new file mode 100644 index 0000000000000000000000000000000000000000..9f2fce01dfa996188f8c6f0d46fde91591d91fbf GIT binary patch literal 907 zcmV;619bdDS5prj2LJ$goTZdai`zyV#{bgp*1MqvZ<3Ni+eC371cIy=TVAj5di^51 zERD0p*+WWCV`;prM$!n49BWfT_fTk$J%vJP4n4O}`UUn2IGH%fvi z^ai$L3B|Hfk)CzVv9Q6esw%4mQ7(x}c}LN7RnrUVRaw<#dCoggPOKdqA`69R&b%fn zT5ML<^y0cG7iZ>U+Nqsbc7Oks%tuP0B0ZDjt7U7MvuOQ6;3WHHnG$xei@lJtc$Fkx z%hdZMa8X!AzVFy3ih)uj(mi6{8lu}+?8i}8q$A;*eiB<*r}N?scU>t})3A&CFILl? zeIH9*OvxZHF_T}K{xF@6zU9#nc_!X6s;rQ=ZA&i~w0g@ZmWoBS&}u14qo~QPMnf$t z^-{g1HInR)TT_}r%t4&nlxDpKZO)p~wgY?DX20wSRIM(Tje23tXvjuFRkU)sRBx8r zn$~U<+bQ(~#OzyfVBf}8J0Nbd3qA@cj+5HRrBTH(CHd<12{EZJTiA2flxDrjf}XRc zH1akv{Vzh8ZOl+8)4zalFRK1ql)Oi#6C> z_>&F3`+_akv1y1s9Kd$(OKgTfyif7IL53c%C+y;|Nh}O4Y9b#Ce!vcBY)$xkEMDR` z;G!t)BFnm#^6v4l4EL5G6TdeeaJ5QO`zXHiKQ6`f`Z2{qGPT%^Yag=O*6E*kIG;={ hU5@YXB!bLQclrAE_7uuI+%e8d_Z-w%