From 5618ebe6ebeac0e6341329931b6dd49b3e4437e2 Mon Sep 17 00:00:00 2001 From: nosamu <71368227+n0samu@users.noreply.github.com> Date: Thu, 17 Aug 2023 05:47:48 -0500 Subject: [PATCH] tests: Add failing test for queued gotos in AVM2 framescripts This minimally reproduces #12069 and #10113 --- .../swfs/avm2/goto_framescript_queued/output.txt | 6 ++++++ .../swfs/avm2/goto_framescript_queued/test.fla | Bin 0 -> 4922 bytes .../swfs/avm2/goto_framescript_queued/test.swf | Bin 0 -> 1047 bytes .../swfs/avm2/goto_framescript_queued/test.toml | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 tests/tests/swfs/avm2/goto_framescript_queued/output.txt create mode 100644 tests/tests/swfs/avm2/goto_framescript_queued/test.fla create mode 100644 tests/tests/swfs/avm2/goto_framescript_queued/test.swf create mode 100644 tests/tests/swfs/avm2/goto_framescript_queued/test.toml diff --git a/tests/tests/swfs/avm2/goto_framescript_queued/output.txt b/tests/tests/swfs/avm2/goto_framescript_queued/output.txt new file mode 100644 index 000000000000..a68e4dfba088 --- /dev/null +++ b/tests/tests/swfs/avm2/goto_framescript_queued/output.txt @@ -0,0 +1,6 @@ +frame: 1, isPlaying: false +frame: 1, isPlaying: false +frame: 2, isPlaying: true +frame: 3, isPlaying: true +frame: 3, isPlaying: true +frame: 4, isPlaying: true diff --git a/tests/tests/swfs/avm2/goto_framescript_queued/test.fla b/tests/tests/swfs/avm2/goto_framescript_queued/test.fla new file mode 100644 index 0000000000000000000000000000000000000000..973d91a342e19d872fae331f05e0ca339de636aa GIT binary patch literal 4922 zcmb_gbySpF_Z}LgV-zGsQefzkkS?VgBxYcM0cnPkkRctBMp9Cwg+UY~r4d9Vh7ReF zMrrXIyq}+5fA{|PJ8SLruJ_D-p7XA=p1o%8N9Q&UE)4)c2mm;6P#Ob%TbM1t9d!jg zc|B8poqx?D!enVG8_4siYpMJ<4V#eg2brq`!;&fv0Pv6k03gStDQRmex!S;;p)Ot^ zU*~(9sphT|0yJIOk?l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0&8E%&I%V&?(|{1ANSd(7{ht6NcM5uY1)u2e4cy+Qt>Ug zzlOfiZhGtHn;^p-V#k`1^TxNOD;k^4{@XZ#Jf`B())vO*Mk{-3hF)hc?hgi&`&kN{ z98q>9aRJsB9DQIi^3s;Q*mg=n?zqPfqymFuwlE( zr~39Hxu3Rh_0Vvzxj4}TEd5<>gouUEO0vo+M%Oo>gfvZx=?7Qt&lWDtP|{I*D3lp zyh*kHf@LL;L?O|o0arY{7Pw%~#ZSz3&ds)wzqi#K?);8y2=X}3WxGAmsL1IVdJVNa zkqW5|Fr~~E&+;4YMSngFw_<8U4_UlG^JMhC0Waev(nE(nKN^jx8g;9GnU^;X{ci8R zo5#1?5Q}z-PTm#PMhUXcYFr4FYBi^)En*LK{`lItf>yxtZY|b6^n7A>FApAZ z`ZeWE!?IKb!O8se$DIAACd~C^pu)ryU*pP6P+@7h^x4Ixr5I`n(&eanz4SiIsbRO#|#JnO;-r)9`yGv=kJ65CVi3t119exF4`gp z%!Oay&shoT26eFo*??^vp!S&U6#_y4E`Sn%2Vnk@irE4*m1DZ7zqtnW33Cy2m|rg9 z!dq~LVP+CPHz?T6?H;-dm;rGVSf^A(PP>`?Pz5h4(77wK{BdIOUg;#MA7pHqc zJuxl><`6w?6H`7#eNmm;SlBdxf44#~7|g<089&x9W8~ja7f1cIE>Ikp_{}K!3-)tt z`_n4l literal 0 HcmV?d00001 diff --git a/tests/tests/swfs/avm2/goto_framescript_queued/test.swf b/tests/tests/swfs/avm2/goto_framescript_queued/test.swf new file mode 100644 index 0000000000000000000000000000000000000000..7b51e1db9aaee23fb53a63408d7dbc02b7266644 GIT binary patch literal 1047 zcmV+y1nB!iS5psc2mk~GV zog_2uO=eMSIq}w59$O^js;{zdvai6q^Z`=Y210hzG;IZpq;tOWN$1mePO0>t9bjS|2wkEWrfj^`5!ZNn#B`KS9ppLMw z>SaxhcsR&t1q3r1oKxyH4+j&G70SxhAqtSSHU%-svDKYeDEXeB%E4~ zefOf^2c)vEexc-xwe5DFS9dT_r|6KK68m{{cz)*-^^}Bk7?^~^-%ehq+ci$SkYUdx zC+#LTlpV)1YCAPe-#gmv)T^ydN7s)U_4?l7(P3k!(aY}OMpy^zhCPb4wX|0C1iQYf>BdC=)Um$YThD%2kaZrp+_Qzb5m zP78UJ>T$=gOv9$Z0JA3ceb+H@M5vBR;WagXzr{DCWJld&Uwr^Rc_nqy1e*$I3HSH+ zpVxD|K|*k55|1c40H4?X6e0s3%b*-hN`{e;ec=50E_S?gXFy!XBMb3?T+GmS@txeI zHx6mJj=w%d8}n!&vjFp__H3HA13VylGF6hPnoK*%RFh(GvN7`JFbKF9$I%XMXPxjp zKhW{640*Q9T~S64JuBLZA*24(aK_hSbiu-}MB!o$c_Z~GQ+T_*CIR_z5nEPFd=`t8 z?p=N)Cd((ek(=lZmO9bY=6Paf@}Pxwl5zrFIq?|bw`IH(5=-HczeV{U2p1qopZS5q z2r9rrYEvqtH(=p4*g#M~f`~+fqzsZ|BxRA5LsA}z3rJi-;wvPsB5@6g>qsmhaTAH( zp!By$_znqgknlYcevrXS282Q;1yDK#0Tdw+BnVPz2t)*dlz|}45g8bHWDb?Hsj>D8 zH%Ty?TODf`^7djsyS@Brd!?W2$s%_N0(WhUwQ(;6F7id8mxu9kp|=3II|aELC2qbI zC+LgCqS#wZkW0NKFmX$d(P<$$HipUD8$B6Lc~OqLirjSqE|!a6Y>P!Wwxyylw$sJb z*hWQhY-f7QS&q#JJd<~0je!1&)_