From 1cfc4f3541593810cc37b17e90eb62b8d3ee23d2 Mon Sep 17 00:00:00 2001 From: Kankana Bordoloi Date: Mon, 4 Jul 2022 12:44:50 +0530 Subject: [PATCH 01/17] added testcases for LazyVideos and the corresponding .ccz as well --- .../resources/lazy_videos_tests.ccz | Bin 0 -> 19139874 bytes .../commcare/androidTests/LazyVideosTests.kt | 140 ++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 app/instrumentation-tests/resources/lazy_videos_tests.ccz create mode 100644 app/instrumentation-tests/src/org/commcare/androidTests/LazyVideosTests.kt diff --git a/app/instrumentation-tests/resources/lazy_videos_tests.ccz b/app/instrumentation-tests/resources/lazy_videos_tests.ccz new file mode 100644 index 0000000000000000000000000000000000000000..b609a18e339ecffeb625b4e933dbd2c4645c5713 GIT binary patch literal 19139874 zcmeFa2UJtrx;DI$6_Nlki4i3VCP6?E6{4adH536sB`Qrt3HB}`Dm^PCbQMsV4T1#` zRIsBWEQ*4nTP)a>ARtX8Gzl&1o9un=`0pM6IrqEg-d)c4E^`b9gw^Jn^DWQ&KJT32 zyTAkuXrvKczPfF0TVsD?&!b2m!x9!`r3;fIh$H<%gH*JEP z7O&d{Zf23BIiYxSP`wP-oG%9l5%BXL8-l06Q&}t)8^gGAxg5j#qd~*4Cl(eK)|k?_ zzP=vAx@n+cSbAV!pb#4>2Mxo%j$Sl65TgmtvzK3pL|x z`(;7(Uvw7z>>LY^pirpQ*>~g@b?MO2M1VVqRJ=9zPqrZo!hw)`nsi;kcvs`)_$k|O zl*et!E+Hn()6|;z{`Cr;1)eLkV(9djYBjg5c3mw}-1XO3c5>Nc{aphmoyRf2;}JE0 zZfDM%ISa#P`}+Fs!TRIX)zyXA6E82XHJEaJSy@>f);$3pa#;A=LHI}1ZW7K_)LW2LL*a)D|quZ5}-hLLOmYW$|3tG{f)8DgcT#aQ! zvEQz{KOdt2g+`|?rdRV;=cvx~UcIn|H;&dd?!%^&Z9B(zguC+q3Z()RYG!6;4%F!R z^XGL~{}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