From 0bb465043e8cb824441e6520ab823cd26073c5f4 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Wed, 19 Jun 2024 12:09:59 +0200 Subject: [PATCH 01/17] added "next" and "previous" buttons to TCUStickerWindow and removed unused funktions in TCUStickerWindow --- .../TCCStickerStore.class/class/newWith..st | 2 +- .../instance/downloadStickerSet..st | 4 ++-- .../instance/stickerSets..st | 4 ++++ .../TCCStickerStore.class/instance/stickerSets.st | 4 ++++ .../instance/storeStickerSet..st | 9 +++++++++ .../TCCStickerStore.class/methodProperties.json | 9 +++++---- .../TCCStickerStore.class/properties.json | 2 +- .../instance/addNextButton.st | 15 +++++++++++++++ .../instance/addPreviousButton.st | 15 +++++++++++++++ .../instance/buildStickerListItems.st | 2 +- .../instance/buildStickerListItemsFor..st | 15 +++++++++++++++ .../TCUStickerWindow.class/instance/initialize.st | 4 +++- .../instance/showNextSet.st | 2 ++ .../instance/showPreviousSet.st | 2 ++ .../TCUStickerWindow.class/methodProperties.json | 14 +++++++------- 15 files changed, 86 insertions(+), 17 deletions(-) create mode 100644 packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets..st create mode 100644 packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets.st create mode 100644 packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/class/newWith..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/class/newWith..st index d560c074..fb91246d 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/class/newWith..st +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/class/newWith..st @@ -3,5 +3,5 @@ newWith: aCore ^ self new core: aCore; - stickerIds: OrderedCollection new; + stickerSets: Dictionary new; yourself \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/downloadStickerSet..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/downloadStickerSet..st index 5557075b..288ce25f 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/downloadStickerSet..st +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/downloadStickerSet..st @@ -1,6 +1,6 @@ as yet unclassified downloadStickerSet: aStickerSet - + + self storeStickerSet: aStickerSet. (aStickerSet at: 'stickers') do: [:sticker | - self stickerIds add: ((sticker at: 'sticker') at: 'id'). self getFormPromiseFor: ((sticker at: 'sticker') at: 'id')]. \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets..st new file mode 100644 index 00000000..7360f456 --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets..st @@ -0,0 +1,4 @@ +accessing +stickerSets: aDictionary + + stickerSets := aDictionary \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets.st b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets.st new file mode 100644 index 00000000..02809923 --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets.st @@ -0,0 +1,4 @@ +accessing +stickerSets + + ^ stickerSets \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st new file mode 100644 index 00000000..fe63a49c --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st @@ -0,0 +1,9 @@ +utility +storeStickerSet: aStickerSet + + | stickers | + self stickerSets at: (aStickerSet at: 'id') ifAbsent: [ + stickers := OrderedCollection new. + (aStickerSet at: 'stickers') do: [:sticker | + stickers add: ((sticker at: 'sticker') at: 'id')]. + self stickerSets at: (aStickerSet at: 'id') put: stickers] \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index fe61308a..7fef9268 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,15 +1,16 @@ { "class" : { "extractPathFrom:" : "pk 6/19/2021 16:23", - "newWith:" : "JK 6/5/2024 12:01", + "newWith:" : "JK 6/19/2024 11:30", "stickerFormFrom:" : "JK 6/5/2024 11:15" }, "instance" : { "core" : "pk 6/19/2021 16:13", "core:" : "pk 6/19/2021 16:13", - "downloadStickerSet:" : "JK 6/5/2024 12:07", + "downloadStickerSet:" : "JK 6/19/2024 11:33", "getFormFor:" : "JK 6/5/2024 11:12", "getFormPromiseFor:" : "JK 5/16/2024 21:21", "getInstalledStickers" : "JK 6/5/2024 11:37", "requestStickerFor:with:" : "JK 5/16/2024 21:40", - "stickerIds" : "JK 6/5/2024 11:41", - "stickerIds:" : "JK 6/5/2024 11:41" } } + "stickerSets" : "JK 6/19/2024 11:30", + "stickerSets:" : "JK 6/19/2024 11:30", + "storeStickerSet:" : "JK 6/19/2024 11:44" } } diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json index 55edbaa6..9cdb2b68 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json @@ -7,7 +7,7 @@ "commentStamp" : "", "instvars" : [ "core", - "stickerIds" ], + "stickerSets" ], "name" : "TCCStickerStore", "pools" : [ ], diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st new file mode 100644 index 00000000..05b7588d --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st @@ -0,0 +1,15 @@ +drawing +addNextButton + + | nextButton | + + nextButton := TCUButton new + extent: 30 @ 30; + text: '>'; + color: TCUDefaultValues colorLightBlue; + on: #mouseUp send: #showNextSet to: self; + yourself. + nextButton text color: Color white. + nextButton position: self position + (70 @ 0). + + self addMorph: nextButton. \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st new file mode 100644 index 00000000..ca6fa32f --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st @@ -0,0 +1,15 @@ +drawing +addPreviousButton + + | previousButton | + + previousButton := TCUButton new + extent: 30 @ 30; + text: '<'; + color: TCUDefaultValues colorLightBlue; + on: #mouseUp send: #showPreviousSet to: self; + yourself. + previousButton text color: Color white. + previousButton position: self position + (35 @ 0). + + self addMorph: previousButton. \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st index bae06d9d..bc9168d7 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st @@ -4,7 +4,7 @@ buildStickerListItems | stickers item | stickers := OrderedCollection new. - (self core stickerStore stickerIds) do: [:sticker | + (self core stickerStore keys) do: [:sticker | item := (TCUStickerListItem new image: ((self core stickerStore getFormFor: sticker) scaledToWidth: 100); id: sticker; diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st new file mode 100644 index 00000000..d2d1a18f --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st @@ -0,0 +1,15 @@ +drawing +buildStickerListItemsFor: anOrderedCollection + + | stickers item | + + stickers := OrderedCollection new. + (self core stickerStore keys) do: [:sticker | + item := (TCUStickerListItem new + image: ((self core stickerStore getFormFor: sticker) scaledToWidth: 100); + id: sticker; + selectedChat: self selectedChat). + item on: #mouseDown send: #sendStickerMessage:event:from: to: self selectedChat withValue: sticker. + stickers add: item]. + self items: stickers. + \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st index 7770f5b6..e0d92876 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st @@ -5,5 +5,7 @@ initialize self extent: 110 @ 590; shouldRedraw: true; - addCloseButton. + addCloseButton; + addPreviousButton; + addNextButton. "loadStickers." \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st new file mode 100644 index 00000000..59d851a6 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st @@ -0,0 +1,2 @@ +drawing +showNextSet \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st new file mode 100644 index 00000000..0f8cf7d1 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st @@ -0,0 +1,2 @@ +drawing +showPreviousSet \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json index 7f82db6c..707498c4 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json @@ -3,19 +3,19 @@ }, "instance" : { "addCloseButton" : "JK 5/21/2024 10:22", - "buildStickerListItems" : "JK 6/5/2024 12:09", + "addNextButton" : "JK 6/19/2024 12:03", + "addPreviousButton" : "JK 6/19/2024 12:04", + "buildStickerListItems" : "JK 6/19/2024 11:27", + "buildStickerListItemsFor:" : "JK 6/19/2024 11:55", "close" : "JK 5/29/2024 20:09", - "collectInstalledStickers" : "6/7/2024 09:02:10", - "convertWebp:" : "TU 5/29/2024 15:05", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", - "downloadStickerSetFrom:" : "6/7/2024 09:02:10", - "initialize" : "JK 5/31/2024 14:35", - "loadStickers" : "JK 6/5/2024 11:45", - "loadStickersFromStore" : "JK 6/4/2024 11:57", + "initialize" : "JK 6/19/2024 11:58", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", "shouldRedraw" : "JK 5/22/2024 20:12", "shouldRedraw:" : "JK 5/22/2024 20:12", + "showNextSet" : "JK 6/19/2024 12:07", + "showPreviousSet" : "JK 6/19/2024 12:07", "step" : "JK 6/5/2024 12:07", "stepTime" : "JK 5/22/2024 19:59" } } From bb03b8bc144d6d6dcf1df76bfcef91bf2c4630ce Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Thu, 20 Jun 2024 21:56:31 +0200 Subject: [PATCH 02/17] Show vote percentage --- .../TCUPollOption.class/instance/initializeWith.and..st | 4 +++- .../TCUPollOption.class/methodProperties.json | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/TelegramClient-UI.package/TCUPollOption.class/instance/initializeWith.and..st b/packages/TelegramClient-UI.package/TCUPollOption.class/instance/initializeWith.and..st index 9200015e..4bb073b6 100644 --- a/packages/TelegramClient-UI.package/TCUPollOption.class/instance/initializeWith.and..st +++ b/packages/TelegramClient-UI.package/TCUPollOption.class/instance/initializeWith.and..st @@ -1,5 +1,6 @@ as yet unclassified initializeWith: aPollMessage and: anOption + | text | pollMessage := aPollMessage. pollOption := anOption. @@ -9,8 +10,9 @@ initializeWith: aPollMessage and: anOption selectionMorph color: aPollMessage messageColor; extent: 16@16. + text := (anOption votePercentage asString),'% ',(anOption text). textMorph := aPollMessage class defaultTextMorph - contents: (TCUEmojiHelper embedEmojisInto: anOption text); + contents: (TCUEmojiHelper embedEmojisInto: text); hResizing: #spaceFill; color: Color white; margins: aPollMessage class defaultMargins; diff --git a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json index 2a5df164..8e8acc98 100644 --- a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json @@ -4,10 +4,7 @@ "new:" : "6/14/2024 00:26:16", "new:with:" : "F.M. 6/5/2024 14:49" }, "instance" : { - "initializeWith:" : "6/14/2024 09:29:43", - "initializeWith:and:" : "TU 6/14/2024 00:31", + "initializeWith:and:" : "TU 6/20/2024 21:56", "mouseDown:" : "TU 6/6/2024 01:46", - "selected" : "6/14/2024 09:29:43", - "selected:" : "6/14/2024 09:29:43", "updateSelection" : "TU 6/14/2024 00:29", "updateText:" : "6/14/2024 09:29:43" } } From 6a8cb8aa2148ab0d417c6870ebb6d3d62e83ff30 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Fri, 21 Jun 2024 00:11:41 +0200 Subject: [PATCH 03/17] implemented stickerWindow to display sticker setwise and initialize installed stickers ids on startup --- assets/playbutton.jpg | Bin 7154 -> 7156 bytes .../TCCCore.class/instance/initialize.st | 3 +-- .../TCCCore.class/methodProperties.json | 2 +- .../TCCStickerStore.class/class/newWith..st | 2 +- .../instance/loadStickerIds.st | 9 +++++++++ .../methodProperties.json | 3 ++- .../instance/buttonStickerPressed.st | 5 ++--- .../TCUChatWindow.class/methodProperties.json | 2 +- .../instance/initialize.st | 1 + .../instance/initializeStickerStore.st | 4 ++++ .../TCUMainWindow.class/methodProperties.json | 3 ++- .../TCUStickerWindow.class/class/newWith..st | 7 +++++++ .../instance/buildStickerListItemsFor..st | 10 ++++----- .../instance/initialize.st | 3 +-- .../instance/selectedSet..st | 4 ++++ .../instance/selectedSet.st | 4 ++++ .../instance/showNextSet.st | 10 ++++++++- .../instance/showPreviousSet.st | 10 ++++++++- .../instance/showSelectedSet.st | 9 +++++++++ .../TCUStickerWindow.class/instance/step.st | 7 +++---- .../methodProperties.json | 19 ++++++++++++------ .../TCUStickerWindow.class/properties.json | 3 ++- 22 files changed, 90 insertions(+), 30 deletions(-) create mode 100644 packages/TelegramClient-Core.package/TCCStickerStore.class/instance/loadStickerIds.st create mode 100644 packages/TelegramClient-UI.package/TCUMainWindow.class/instance/initializeStickerStore.st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/class/newWith..st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet..st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet.st create mode 100644 packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st diff --git a/assets/playbutton.jpg b/assets/playbutton.jpg index d1b6ad996481a21d6216432b29c53909be5d178d..a52a92c40dd440cc4ab177b22a7a725611018ad8 100644 GIT binary patch delta 4632 zcmbVQc{r47|9==+3PY9=8D>j+vW#wJwnp@&vf_%`{?_^Fv*LC zhA-x#l=GncRj#g=LVtB*Hp)K-UxrNJfTYoTSwi}=Vsa)w@c%88uffue6L@B7{ z63NAEqHWv0dDfCR=&zmG5qATpD)aVVf;g8&u6R6%K^)9Qh|SoR@|%1lB#fG!F<2(*Of+j*pBcr-n9 zy`8z?Mk3UeX$|cg(v~8FVq%h5Wj2WRoebpvG~Xv#XjhJd*MLB zBC2?a01;vKMyadpEr?iG{?kpfuQ*ixMjk0aspIk}v5HNE0=~)_p&gDV=ERyFf2#r^BD%1@`gx)OpTlQnL z5ztfyS7~KT|FWkivsR3YIv&J0as{eP=PwK1mND)8{YM;mnQiN4P=k`-M~iLFodM)) zbR)V%T&W}*CkaIe9ED!+ikTP_0*DJ(`aD9UU#`d6#Mom4z8ykQ1&OfW)w#UzB^I4Cs7V^-}ak9wSm;iEJ^jBo93pE_1;I<3tm}FgijeoFES(`yo{4L zUJ1`y`_rnFu5y0ySGX~)esKfz3MX?rHcDt(RTmw?y~~a|h@#v;~8lei7pqLv5zkd~eGr>;7mR2Or3fg$I&?AGNpg zTGAS}h=0@Yo0isMBEME#@jGon@uI1&CS`ut?(Y0AVfcsW37$k|VGbRhg{YL1OpN8# zW~`%=sc8cx)tz6W*U$sOnd~CCCu?uMm}PV}+$4Zg5`;*2SPbNHgjbEh-G!`7Q*z0t zbdv>y;7xb$ZtsZr-BZX8+@O$j^j3I;%kY&-w>3w-TKMLDDo}jxdS*fpk0?~ZE2&sG zITndGtE-~|PmU{RB#B39TytpH32uqJ%5M4A3ce$~hVQdF=pD*gYHBo_VHac`17VoB zK=_$HDlqH(o(e4fMybA$j|JD{=c&L(D`?kZNRLBh?t}T8?5D=47uODVae;@}GmK}0 zoDcST3;1YMw~9iXJBt)_PlFVb0}fbwyFSMG8ty6Gr*e+5*XqEBP*u&RI>UQY6SYle zjT`%OK3+q(X~-14so6SDpU#cZK68L}`73w>Kem*64qXqOmQ2C#G{H&d!qYew85qaailo+qnWQ3%hB!-Y2;vNtq zJy4iO$Q@az@TtekHHsCzDx1+p`006i)*qO=|B!iospU%{yn(W^w5wGlBN(Np@KdV$ za^1%U9(HzaOaJZl(L+uySNknLsNf=ev zBJ_pASwRJyk5d8hQb=^DZc-4K;7y_e!6Chi_(g4m&p%%8@9WO4tBZL9(;VpHcH4Te zu^raO@aiP-O9i6(OB(saidPM0^yY;Z425KCVfPzBpw+5XTOZaNW={-JL~h_IJiXEQ zIir2?{JZza(mCDy1ph(j2o8@>fj-{G%_c6Qu3!8wZo4+7;Obxwah{}!>e$E;b6GdM z3>6CqDwTq-EBGUR$)_8%a$a)*a|3w{ET8XOhC)3VP5Lz4RxMDlRs&Q*1VEyhD0fRfn$mtBE0#(TI)qamTUA-Y?@O{hc2*kC4HdSbpXB+` zwSC?)9&FI)SVL2^49I0Dw`vy6IImIVqka`6fyg>ON#94!wVit&3M$xaoUW2KpPW()r~Ax#?yFN}hfQdbH>ibMk@w&eP;=PAln>t$4RtuOuhb58v!j zvmGxgFeFkZl?7cq!VP_86|<(Z9nGt`l5?lBB6TJ|8ji;20@%ZxXP-$GCZxJWNv92J z*d>39H=+BORU1I0Rp;x)Y-To%gU;W-@p4=(ml#LRSYqk=yTsP2-W&ECkKMm^*Mrt3 zAaf>e4VL1iI~#k|nfyw|1zU%ewr%R8qoey9pAmV*7hB_I@pt=0Xsmiv63F9DzXI(# zMhX4d&&o9=nfWvmI1Ge1?%vRCu$D zXE^W~!Rz`7H4%l6Q@tU*W~HZYaQ7u_qp}}BW2`b(nRH@+q6cuV^GnBsQZhkTKPq#`mmT}@#~rR{g!ytp{6xL~Au zq^9)aZx`+w&E5@rrw1vp@`C&9DMhDAO{C;CmlfGxkPDE$u^R6#Sh3q;2ax^fJX%~= z*2Ydv+rM5nt0ZH7T-zGzo4201BXY;>>x^LP9x@31@V-VOu7dAUc$k9NP_e(3<~G zCrC?JeHytmf2R6A_cls1KEf08XF>4bT)0LmtVlnM;^_5MNYcPxU*}Wo zM3jb!U;<9sxiwAlor?7>rfsp2yNqO^;gw=s)?aJp{ z4+CU}yLiDkv~%mQL?(8*)U&{+BU&qTEZEGfVBV>m2V=!~IvXg=^v?|5El}Y2xA%>M zHd)kc?u!mpVKdpo?fNr^$nDQkp4a}EhISIsJ#3+R-Bp{{Ek?)MKlgI^1W^G^12Dj8 z)xjATadNNBTW-lRvYCh0el+ia@ZtV6ST~7~B^<-7CY%_DbA^tx@<3Xw%zwfl5M!jV z`r;tJcyf$L;@ksMCbH1ty9kM?XL&lCI|FUxqP1f*Co2VRx@ilfvEzAf=9ZL8y>IE& zh~0X$%cNr$il`>&8NP+eVZzKk9UIxSNz+3z3`bq|&4UwABGAp?a!p&X4A&^VmwD9u zecz#SB^h0ceK>xzB|Vg4YA75-n_0?|_Ii?6`l`gutiko`mo0>Ji-K*Nn``aeNcD4pVMAch7~v z<8~!@A69-hACdiTi7$LbkzLm22(ft?H_%?N5P+|WBne-nlHH5UI=7M-=r$b zoc)#0wFwbV7fD`&?Z(Upj1`NdS$QrdVPS1bX|#UsM?dQD?U6~6-MI{YFn*$LYi6I$V?#nOt26J)b{PyV=M?I-tg$f)-;@uJN_ zd$cxBm~~=umh<9O*M5ca*!3|(h1(SI`fdqg>Wa@J>w6BJqs%>`$nyikcDMq8b^$4U z!olAZj*uiBSi6sESM+6xj7N0E@rB1Dl_E6{1Xe!|v%YieCM^s2Gg;Xs{WVcSs7wZ7 zmsLBf$Iu#!22=o(25l}So+MyD>jhqnDOO}VYfJkR1>?f3u&0FHubyp9M7!}U@iEJ(+(g0ACCQ}q)qwvQ}X{j&p7d4cH4BcPGp^O1(8Dd={NtX x6zD4pKXjOd@4p;}p#FY14A%dLO$NxcEyz#9%sRFI?VrA@{?h^bSq7(${0p3HagP81 literal 7154 zcmdT|2UHUYx1JD40I3=jSV#~Mk)jcT(ujDJZ=pZ=zdVcURs2op;`QlXKx@GMUV6-*@lFe99aE1PpNoH~<0x z00{U3n9l)yfD;CT!#FtMa5xtiCpQm*muJly9+9={_z~iwD5SWkn3#n0*3A-<3Q}TX zvOBjZptoZ%7}RDpEmbAWt;!fB)=eN>TwFYBc!YU*g_SmnZB+W#2eTFsbRto&8CD7ouYBCm&Ocknr6B7$+I7GEcie2?03ih@T(8tfkMFKK?MOFU~Wt{ zoeb?L@lc(~7X@U~!+~GKWm8Z8@15fYpNA*PR!PeP7Y?*ZJASmauyTV!!-00YcPaxdTCzndIbtd+p z7G3TpHff{uqV6k`9zdDEdEhveNYG&dT=#-f78X**=X^2?BPz9rQOCWR01?gvxPkGk zJnOTB)E6fc@{4q4XmcdGb-wD>{C5QJ%4x&uJ7ou#OxS0W)U6_2g3)TJ9H}$6q~JGd3{JnM3n6=96ts^!6Hl`HuV&@9ycjy0$|H;sHEl2C9Fw> z#UV^}IY1M6ii~w6nqq;CPaqb*0nw%vsy*~5tli1Q_4W$+J^8>{zaz^zc7JNaUC&&e89BiV5_K4a&+O!O!?82 zZc;q@0SSJ><7mF4E)VXcJ zjDe5HE`dzHBAE*_ExouaQ#jL9S9C`Oqu4nJc1z8aCavuVe!KX9__YR)vZ?!Xf{$um z1%;=yyj=_*qG!Mh-IEn*r8tZ5NvG>G;iTvqo+%QW2eFbX7A-->9(50t>7I$qaWBpix!|qsPH|b))HuWJDl648z;NU(*$}u=0UZSZM*KcXcFMX;%%cF@lNbrF%4sTn0#1GYClFyh%x?qITyQrN#|(qn4#9RFR<%>>YXsQ}p2 zTR(^H8M4GG5&?X_S9%qP!~?Zp4NB+Fv|iX4!35~|rzY(7o2C_rV)na#I@~2KvRg|E z)qjF6|70Y7Z&80QOp6BqO~-hVId5+OM|W`sUTo7YdE`|1`}# z?&G3%k1``QpQRH)@*~;qbG5@F%)WtYtTvwDH$-cJY#;zay1SLs4%d+=#b}4R{L&S-kMtP-?iJOF10#_hzJ<&R`Hz}KkMA{6?+HSD;a$JW__7)822T^3 zF0zVp#A>N2QD_1HR@9Mq%EoRN3=j#|{2c7mw`PY~U($$>u3xT>S|G{IN}@fl1T+() zBR>IC645FWK!EthVlhhX42yhu_zi!I28+%f$Ylb~^d?n@4FvzoN;>CBVKw^$jC_QK z?KgLm?x`$?br-YaTQ5?x-Y+C|>N*9H0s0oV^y|T2wFX~^;nag8>$mu7(Sn@cs93z% zGplklo8FsX?&8c3J6W9hQpdq?^0dz4h8ZTXG^CU7AfXiJC}MpuHX>vXzrr}yyD#(H zaE!A1Io#?#o$7k9a^i#HyPOG-}ilH9HKzl%%=!uiqctNivZvcdo3+|>i zAXk87APayTx;J{<7GnbQ!RHIz!hQ;{(BDy$`LxgN(}jHdA4P^yR-ZV$-zl;JGaj_p z%`M$^IV607A=$rJLCFtK%G-X!VfD>GU~pNV+ut<}l!o~tI60!Il}k&cRZmn;VF!@Y z+ZRwk;g9nbI2+I_rWC+ylTKDOBGg|ax+yg#CYt^-i&7$0%8Lo;N(9SyL*!2J@g6*q zEK*vdsFH2x5z`KRP0E_o6~hW?jl}(uq7&o02FC;*8snCbvm9vF!1Nd6Y^kHWfj#O_ zr+%YLQ;oajS;Esr{)N*z(L!131nAVxR$YM zq2#BSK7Wr;yo}U*?+WRrj|E>j0y1*rZJAUAvWt*3Zz2NA8L^NzWkcbzIRbx!L=bwy9|hIT%g?~B>M+Wp#tEZ; z!YwoPyy%isl9fl%mKXFW>14HI<_~q>CGJ(#GJ24*%HFFescBYXb_*{#)iTUZ$hI`X z?=9{=^xPYHz|Vki(V>Z~*&p83eR@sXHYLHg&q?hTDBsn==ZjX>YCyOn3!{EBp>ZVa zTH93Q^>^o~3_g$6aoSm!uitU3PTlF@kKFEP4dQRZ_(n1~*X@t8rKOXV?`pZ_i+-k> zF9uq#K#lelDJMp?6T|3$3_jnhS`|{MxREh2ozjcyA#3*i_hRxnnpiI{j#${4?0DJc z>Fwh)v#DGcyn@;fX?e7((2ouD9=}z}eJ7a9lAfpAvNFcV9m>6wN_`5uPo6rgGmcu3 zPl2MI#IWl3kC~!sO)csJTLlv+EM@|!ivE+t&EyNO_zasD3X+(>aIQg6CzWU#J-!DV zc&@a`{aS9yMOw18GvKVh3&t-*v1z8bQ6c-8K;$8%g}o-woSd51wM@W}E*GDDY_3h_ zLl@7DRKMn-3=?=LU#z*4TBN}kRy_;E9}~z|22Xb*eb_e21ZEpZwlx-Cf>Fkwt~G>g z1}yik8g}jtHSpcq;cwlnzy$OdSkHvQ&_We7t>Dr$g0;fd_!xi%`>AS6e zGjMW`j%1+LcvQuM@|u+PiW`)ed&F&2pDf+lT4A<7mj|m%gvR=zmmW{W<@!dyCas)} z8nriRKC<=y%LqCA6{ZhQs#P@Kpys#<*vT~B$y7Zb^1&onqYpK31tXSr6sSqSXzoGGy?>c9KTYjmweZu_w`Q>2QldH ztwoay{c~#Gzfh1EaWt;bY09EPDe(p)?zf{e;>x$amF@(&_cvhs^8Y%U=Rb`vd*~{; z#FQm#*bE1aY8N!$B2BIommrP#uw}G_jbuA z)744d{CxXblohkrWe(2QOm}!Zg0!^IJ^Dj=&^WzGd-;Md28Q zJtC{CE4o}i7K|vNmvd_ zikMxg=>1vU?D9ZFNFBTi@Vl-ig0QLy!+V0uZLBTst6fHHu9TveKN{sKf6Vh^cqyW5wIhN&Iw;-t-0Ide?m+lk?e^MhUOMzE`kd0uxPS6^uAiam`*k zN6So7vOj!!=K^1F$p@Bn6n*1+o9xZ#aV)s;e(GXSUAbkG8o>uDqgt{pvl*an1+Kp= z6iljw{Hl7WISBa?mUVZeWu|U$bg{m;a&I0rNmBo~l5|Cn9rRPaFX*jAuf~w^8vWci z@1A6+U$mMi4hUEseZjvoJw)EQ=%Co)lZu!He5b1;&6z{^%iptLK((c;5%SKsVT(RpXOH37>=gp2X?;1wAEmL*t zR~?p(-XAz47HrUpIo{f;h5==#Be?H~IUp~=z_p(>4C!*})(w^9{w^(kQBS{D+GjB* zse494{M3t09mj6qq;6_2kwWJR)q6B`NNLr_*FCw{{@7D^(YTk|n|nD{fIHUN%1T(S zUV;h_cg29iUOz`k`O6(QBuWx1jh+}Wfreh8tWnzw(K3&h@#kFGe$IM@6AKh~56#Ak z%=|t2av(%YGe__D<@FyppBIySp8T+|JBp1gHxjR!r?r|q&t zBEDr+DQi<^ztXli=MoI1=Qe~(B!wGh?!SAKenAcft zss5v)N`q~l&V{WZ$rp3svq?b=pJo2ekApD!oRQY%3j^gmcozte92tet)Xlm72Wv?gre z2$L`Oi (keyArray indexOf: (self selectedSet))) ifTrue: [ + self selectedSet: (keyArray at: ((keyArray indexOf: (self selectedSet)) + 1))] + ifFalse: [self selectedSet: (keyArray at: 1)]. + self showSelectedSet + \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st index 0f8cf7d1..ff7e3dac 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st @@ -1,2 +1,10 @@ drawing -showPreviousSet \ No newline at end of file +showPreviousSet + + | keyArray | + + keyArray := self core stickerStore stickerSets keysInOrder. + (1 ~= (keyArray indexOf: (self selectedSet))) ifTrue: [ + self selectedSet: ((keyArray at: (keyArray indexOf: (self selectedSet)) - 1))] + ifFalse: [self selectedSet: (keyArray at: keyArray size)]. + self showSelectedSet \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st new file mode 100644 index 00000000..4180e1b7 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st @@ -0,0 +1,9 @@ +drawing +showSelectedSet + + | stickers | + self clearItems. + stickers := self core stickerStore stickerSets at: self selectedSet. + self buildStickerListItemsFor: stickers. + self items do: [:anItem | self scroller addMorphBack: anItem]. + \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st index 3ed51469..0bd3ac38 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st @@ -1,8 +1,7 @@ stepping and presenter step - + self shouldRedraw ifTrue: [ - self core stickerStore getInstalledStickers. - self buildStickerListItems. - self items do: [:anItem | self scroller addMorphBack: anItem]. + self selectedSet: ((self core stickerStore stickerSets keysInOrder) at: 1). + self showSelectedSet. self shouldRedraw: false] \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json index 707498c4..6261d942 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json @@ -1,21 +1,28 @@ { "class" : { - }, + "newWith:" : "JK 6/20/2024 23:46" }, "instance" : { "addCloseButton" : "JK 5/21/2024 10:22", "addNextButton" : "JK 6/19/2024 12:03", "addPreviousButton" : "JK 6/19/2024 12:04", "buildStickerListItems" : "JK 6/19/2024 11:27", - "buildStickerListItemsFor:" : "JK 6/19/2024 11:55", + "buildStickerListItemsFor:" : "JK 6/20/2024 12:40", "close" : "JK 5/29/2024 20:09", + "collectInstalledStickers" : " 6/20/2024 11:30:00", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", - "initialize" : "JK 6/19/2024 11:58", + "downloadStickerSetFrom:" : " 6/20/2024 11:30:00", + "initialize" : "JK 6/20/2024 23:42", + "loadStickers" : " 6/20/2024 11:30:00", + "loadStickersFromStore" : " 6/20/2024 11:30:00", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", + "selectedSet" : "JK 6/20/2024 11:39", + "selectedSet:" : "JK 6/20/2024 11:39", "shouldRedraw" : "JK 5/22/2024 20:12", "shouldRedraw:" : "JK 5/22/2024 20:12", - "showNextSet" : "JK 6/19/2024 12:07", - "showPreviousSet" : "JK 6/19/2024 12:07", - "step" : "JK 6/5/2024 12:07", + "showNextSet" : "JK 6/21/2024 00:08", + "showPreviousSet" : "JK 6/21/2024 00:08", + "showSelectedSet" : "JK 6/21/2024 00:09", + "step" : "JK 6/21/2024 00:09", "stepTime" : "JK 5/22/2024 19:59" } } diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json index af0d7d79..cdcc68ac 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json @@ -9,7 +9,8 @@ "closeButton", "shouldRedraw", "selectedChat", - "core" ], + "core", + "selectedSet" ], "name" : "TCUStickerWindow", "pools" : [ ], From 724ef0a5c3409fe871a592acf59f133a0fbd1902 Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Fri, 21 Jun 2024 01:00:54 +0200 Subject: [PATCH 04/17] Remove dead code --- .../TCCStickerStore.class/methodProperties.json | 2 ++ .../TCUPollOption.class/methodProperties.json | 6 +----- .../TCUStickerWindow.class/methodProperties.json | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index e9cea139..a2951708 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -12,6 +12,8 @@ "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", + "stickerIds" : " 6/21/2024 00:59:09", + "stickerIds:" : " 6/21/2024 00:59:09", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", "storeStickerSet:" : "JK 6/19/2024 11:44" } } diff --git a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json index 5009bf76..ab34e379 100644 --- a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json @@ -4,10 +4,6 @@ "new:" : "6/14/2024 00:26:16", "new:with:" : "F.M. 6/5/2024 14:49" }, "instance" : { - "initializeWith:" : " 6/21/2024 00:13:40", "initializeWith:and:" : "TU 6/20/2024 21:56", "mouseDown:" : "TU 6/6/2024 01:46", - "selected" : " 6/21/2024 00:13:40", - "selected:" : " 6/21/2024 00:13:40", - "updateSelection" : "TU 6/14/2024 00:29", - "updateText:" : "6/14/2024 09:29:43" } } + "updateSelection" : "TU 6/14/2024 00:29" } } diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json index b107cff7..2e82a637 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json @@ -9,7 +9,7 @@ "buildStickerListItemsFor:" : "JK 6/20/2024 12:40", "close" : "JK 5/29/2024 20:09", "collectInstalledStickers" : "6/20/2024 11:30:00", - "convertWebp:" : " 6/21/2024 00:13:58", + "convertWebp:" : "6/21/2024 00:13:58", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", "downloadStickerSetFrom:" : "6/20/2024 11:30:00", From 5a19a4f79793574e991e8cf07bfdf362e8b97a1f Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Fri, 21 Jun 2024 14:10:08 +0200 Subject: [PATCH 05/17] fixed stickers. now they can be sent again --- .../TCCFileStore.class/class/imageFormFrom..st | 4 ++++ .../TCCFileStore.class/instance/getFormFor..st | 7 +++++++ .../TCCFileStore.class/instance/getFormPromiseFor..st | 10 ++++++++++ .../TCCFileStore.class/methodProperties.json | 3 +++ .../TCCImageStore.class/methodProperties.json | 10 ++-------- .../TCCRequest.class/methodProperties.json | 2 +- .../TCCStickerStore.class/class/imageFormFrom..st | 9 +++++++++ .../TCCStickerStore.class/methodProperties.json | 9 ++------- .../TCCStickerStore.class/properties.json | 3 +-- .../TCCVideoStore.class/methodProperties.json | 5 +---- .../TCUStickerListItem.class/instance/mouseDown..st | 3 +-- .../TCUStickerListItem.class/methodProperties.json | 2 +- .../instance/buildStickerListItemsFor..st | 3 ++- .../TCUStickerWindow.class/methodProperties.json | 10 ++++------ 14 files changed, 48 insertions(+), 32 deletions(-) create mode 100644 packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st create mode 100644 packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st create mode 100644 packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st create mode 100644 packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st diff --git a/packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st b/packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st new file mode 100644 index 00000000..01f1dc7a --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st @@ -0,0 +1,4 @@ +utility +imageFormFrom: aString + + ^ Form fromFileNamed: aString \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st b/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st new file mode 100644 index 00000000..96625f9b --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st @@ -0,0 +1,7 @@ +utility +getFormFor: anImageId + + | promise | + promise := self getFormPromiseFor: anImageId. + promise wait. + ^ promise value \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st b/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st new file mode 100644 index 00000000..c3738877 --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st @@ -0,0 +1,10 @@ +utility +getFormPromiseFor: anImageId + + | promise | + promise := self at: anImageId ifAbsent: [ + self at: anImageId put: Promise new. + self requestFileFor: anImageId with: (self at: anImageId). + self at: anImageId + ]. + ^ promise >>= [:aPath | self class imageFormFrom: aPath] \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json index 325d5428..d3dada01 100644 --- a/packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json @@ -1,8 +1,11 @@ { "class" : { "extractPathFrom:" : "JK 6/12/2024 19:32", + "imageFormFrom:" : "JK 6/21/2024 13:53", "newWith:" : "pk 6/19/2021 18:09" }, "instance" : { "core" : "pk 6/19/2021 16:13", "core:" : "pk 6/19/2021 16:13", + "getFormFor:" : "JK 6/21/2024 13:30", + "getFormPromiseFor:" : "JK 6/21/2024 13:47", "requestFileFor:with:" : "JK 6/12/2024 19:23" } } diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 2787be05..0e4a6622 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,11 +1,5 @@ { "class" : { - "extractPathFrom:" : "pk 6/19/2021 16:23", - "imageFormFrom:" : "pk 8/5/2021 16:52", - "newWith:" : "6/14/2024 09:21:38" }, + }, "instance" : { - "core" : "6/14/2024 09:21:38", - "core:" : "6/14/2024 09:21:38", - "getFormFor:" : "JK 5/16/2024 22:13", - "getFormPromiseFor:" : "rgw 6/6/2022 18:43", - "requestImageFor:with:" : "JK 6/12/2024 19:46" } } + } } diff --git a/packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json index ccecabd9..a7a484b9 100644 --- a/packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json @@ -19,7 +19,7 @@ "newSendMessage:to:" : "6/7/2024 09:02:10", "newSendMessage:to:asReplyTo:" : "JS 5/20/2022 10:02", "newSendPhoneNumber:" : "RS 6/23/2021 16:34", - "newSendStickerMessage:to:" : "JK 5/28/2024 10:52", + "newSendStickerMessage:to:" : "JK 6/21/2024 14:08", "newSetPollAnswer:message:options:" : "TU 6/6/2024 01:15", "newUser:" : "JB 8/1/2021 11:55", "newWithType:from:" : "rs 6/6/2020 16:21" }, diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st new file mode 100644 index 00000000..bee97c1f --- /dev/null +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st @@ -0,0 +1,9 @@ +utility +imageFormFrom: aString + + | file byteArray | + file := FileStream fileNamed: aString. + file binary. + byteArray := file next: file size. + file close. + ^ (TCCLibWebP decode: byteArray). \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index e9cea139..9f520c99 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,14 +1,9 @@ { "class" : { - "extractPathFrom:" : "pk 6/19/2021 16:23", - "newWith:" : "JK 6/20/2024 22:18", - "stickerFormFrom:" : "JK 6/5/2024 11:15" }, + "imageFormFrom:" : "JK 6/21/2024 13:46", + "newWith:" : "JK 6/20/2024 22:18" }, "instance" : { - "core" : "pk 6/19/2021 16:13", - "core:" : "pk 6/19/2021 16:13", "downloadStickerSet:" : "JK 6/19/2024 11:33", - "getFormFor:" : "JK 6/5/2024 11:12", - "getFormPromiseFor:" : "JK 5/16/2024 21:21", "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json index 9cdb2b68..286ffca0 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/properties.json @@ -6,10 +6,9 @@ ], "commentStamp" : "", "instvars" : [ - "core", "stickerSets" ], "name" : "TCCStickerStore", "pools" : [ ], - "super" : "Dictionary", + "super" : "TCCFileStore", "type" : "normal" } diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index 18a5f48f..8085d52e 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,9 +1,6 @@ { "class" : { - "extractPathFrom:" : "pk 6/19/2021 16:23", - "imageFormFrom:" : "pk 8/5/2021 16:52" }, + }, "instance" : { - "getFormFor:" : "JK 6/12/2024 19:28", - "getFormPromiseFor:" : "JK 6/12/2024 19:30", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } diff --git a/packages/TelegramClient-UI.package/TCUStickerListItem.class/instance/mouseDown..st b/packages/TelegramClient-UI.package/TCUStickerListItem.class/instance/mouseDown..st index 8a02d46a..99ce3f61 100644 --- a/packages/TelegramClient-UI.package/TCUStickerListItem.class/instance/mouseDown..st +++ b/packages/TelegramClient-UI.package/TCUStickerListItem.class/instance/mouseDown..st @@ -1,5 +1,4 @@ event handling mouseDown: anEvent - self selectedChat sendStickerMessage: path. - "Transcript show: self asString." \ No newline at end of file + self selectedChat sendStickerMessage: self path. \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUStickerListItem.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerListItem.class/methodProperties.json index be03645a..08cfdde9 100644 --- a/packages/TelegramClient-UI.package/TCUStickerListItem.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerListItem.class/methodProperties.json @@ -4,7 +4,7 @@ "instance" : { "id" : "JK 6/5/2024 11:46", "id:" : "JK 6/5/2024 11:46", - "mouseDown:" : "JK 5/28/2024 11:57", + "mouseDown:" : "JK 6/21/2024 14:00", "path" : "JK 5/28/2024 09:45", "path:" : "JK 5/28/2024 09:45", "selectedChat" : "JK 5/28/2024 10:20", diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st index 73b075df..91cfa6bb 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st @@ -8,7 +8,8 @@ buildStickerListItemsFor: anArray item := (TCUStickerListItem new image: ((self core stickerStore getFormFor: stickerId) scaledToWidth: 100); id: stickerId; - selectedChat: self selectedChat). + selectedChat: self selectedChat; + path: ((self core stickerStore at: stickerId) value)). item on: #mouseDown send: #sendStickerMessage:event:from: to: self selectedChat withValue: stickerId. stickers add: item]. self items: stickers. diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json index b107cff7..104863d3 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json @@ -6,16 +6,14 @@ "addNextButton" : "JK 6/19/2024 12:03", "addPreviousButton" : "JK 6/19/2024 12:04", "buildStickerListItems" : "JK 6/19/2024 11:27", - "buildStickerListItemsFor:" : "JK 6/20/2024 12:40", + "buildStickerListItemsFor:" : "JK 6/21/2024 14:07", "close" : "JK 5/29/2024 20:09", - "collectInstalledStickers" : "6/20/2024 11:30:00", - "convertWebp:" : " 6/21/2024 00:13:58", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", - "downloadStickerSetFrom:" : "6/20/2024 11:30:00", + "downloadStickerSetFrom:" : " 6/20/2024 11:30:00", "initialize" : "JK 6/20/2024 23:42", - "loadStickers" : "6/20/2024 11:30:00", - "loadStickersFromStore" : "6/20/2024 11:30:00", + "loadStickers" : " 6/20/2024 11:30:00", + "loadStickersFromStore" : " 6/20/2024 11:30:00", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", "selectedSet" : "JK 6/20/2024 11:39", From 3771f0f9ee35f45d587771a4d8f4e66f48160599 Mon Sep 17 00:00:00 2001 From: AlexHo Date: Fri, 21 Jun 2024 14:32:54 +0200 Subject: [PATCH 06/17] see document - messages --- .squot-materialize | 142 +++++++++--------- assets/playbutton.jpg | Bin 7156 -> 7158 bytes file-icon.png | Bin 0 -> 6875 bytes .../.squot-contents | 5 - .../TCCDocumentMessage.class/README.md | 1 + .../class/newFrom..st | 6 + .../instance/asSnippet.st | 4 + .../instance/asText.st | 4 + .../instance/filename..st | 4 + .../instance/filename.st | 4 + .../methodProperties.json | 8 + .../TCCDocumentMessage.class/properties.json | 14 ++ .../TCCMessage.class/class/newMessageWith..st | 1 + .../TCCMessage.class/methodProperties.json | 2 +- .../methodProperties.json | 4 +- .../TelegramClient-UI.package/.squot-contents | 5 - .../TCUDocumentMessage.class/README.md | 1 + .../TCUDocumentMessage.class/class/getIcon.st | 5 + .../class/maxHeight.st | 4 + .../instance/addContent.st | 5 + .../instance/addIcon.st | 7 + .../methodProperties.json | 7 + .../TCUDocumentMessage.class/properties.json | 14 ++ .../TCUMessage.class/class/newFrom..st | 1 + .../TCUMessage.class/methodProperties.json | 2 +- .../TCUPollOption.class/methodProperties.json | 6 +- .../.squot-contents | 5 - .../TCTUAuthenticationTests.class/README.md | 1 - .../instance/setUp.st | 5 - .../instance/testEnteringCodeOpensTelegram.st | 14 -- .../testEnteringPasswordOpensTelegram.st | 15 -- .../testEnteringPhoneNumberAsksForCode.st | 11 -- .../instance/testPressCancelOnAuthCode.st | 11 -- .../instance/testPressCancelOnAuthPassword.st | 12 -- .../testTelegramOpensAuthentication.st | 4 - .../methodProperties.json | 11 -- .../properties.json | 14 -- .../TCTUButtonTests.class/README.md | 1 - .../instance/testHoverOnTitleBar.st | 12 -- .../instance/testMouseHoverOnChatsListItem.st | 11 -- .../testMouseHoverOnRegularButtons.st | 11 -- .../methodProperties.json | 7 - .../TCTUButtonTests.class/properties.json | 14 -- .../TCTUChatInfoPageTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 4 - .../instance/openAnyChatSatisfying..st | 8 - .../instance/openInfoPageInChatWindow.st | 7 - .../instance/partialTestUserList.st | 11 -- .../instance/testBasicGroupChatHasUserList.st | 5 - .../instance/testCanCloseChatInfoPage.st | 10 -- .../instance/testCanOpenChatInfoPage.st | 7 - .../instance/testChatInfoPageIsHidden.st | 5 - .../testDoesDisplayGroupDescription.st | 11 -- .../testPrivateChatHasNoDescription.st | 14 -- .../instance/testPrivateChatHasNoUserList.st | 11 -- .../instance/testSupergroupChatHasUserList.st | 5 - ...UserListNotVisibleInChannelChatInfoPage.st | 6 - .../methodProperties.json | 17 --- .../properties.json | 14 -- .../TCTUChatListItemTests.class/README.md | 1 - .../instance/setUp.st | 6 - .../instance/testChatHasPhoto.st | 7 - .../instance/testChatIsNotPinned.st | 8 - .../instance/testChatIsPinned.st | 8 - .../testChatLastSenderNameIsLoggedInUser.st | 8 - ...testChatLastSenderNameIsNotLoggedInUser.st | 8 - .../testChatWithoutPhotoHasDefaultPhoto.st | 7 - .../methodProperties.json | 11 -- .../properties.json | 14 -- .../TCTUChatMessageListTests.class/README.md | 1 - .../instance/fillWithMessages.st | 6 - .../instance/setUp.st | 7 - .../instance/testAddDateDividerAtBottom.st | 12 -- .../instance/testAddDateDividerAtTop.st | 12 -- .../testAddingOldMessagesDoesNotScroll.st | 15 -- ...hatDoesNotDisplayMessagesFromOtherChats.st | 9 -- .../testDisplayedChatLoadsOldMessage.st | 8 - .../testDisplayedChatReceivesNewMessage.st | 8 - .../instance/testDoNotShowDateDivider.st | 12 -- .../instance/testItemsHaveMessageId.st | 12 -- .../instance/testScrollToReferencedMessage.st | 20 --- .../methodProperties.json | 15 -- .../properties.json | 14 -- .../TCTUChatWindowTests.class/README.md | 1 - .../instance/messageInputField.st | 4 - .../instance/sendButton.st | 4 - .../testSelectAndDeselectMessageToReplyTo.st | 15 -- .../instance/testSentMessageAppearsInList.st | 11 -- .../methodProperties.json | 8 - .../TCTUChatWindowTests.class/properties.json | 14 -- .../TCTUChatsListTests.class/README.md | 1 - .../testChatOrderUpdatesIfPositionChanges.st | 9 -- .../instance/testChatTitleVisible.st | 8 - .../instance/testLastMessageVisible.st | 8 - .../methodProperties.json | 7 - .../TCTUChatsListTests.class/properties.json | 14 -- .../TCTUEmojiTests.class/README.md | 1 - .../class/defaultScreenshotBackgroundColor.st | 4 - .../instance/expectedSqueak5_2Failures.st | 7 - .../instance/testEmbedEmojisInto.st | 9 -- .../instance/testEmojiDoesNotExist.st | 4 - .../instance/testEmojiExists.st | 4 - .../instance/testEmojisArePresent.st | 9 -- .../instance/testFileNameFor.st | 6 - .../instance/testFindFirstEmojiLength.st | 6 - .../instance/testFormFor.st | 6 - .../instance/testSplitCharsAndEmojis.st | 6 - .../instance/testTextFrom.st | 9 -- .../methodProperties.json | 14 -- .../TCTUEmojiTests.class/properties.json | 14 -- .../TCTUMessageTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 11 -- .../handleScreenShotTestFor.with.usedBy..st | 12 -- .../TCTUMessageTests.class/instance/setUp.st | 5 - .../instance/testAddMembersMessage.st | 11 -- .../testAddMembersMessageIsNotUserMessage.st | 11 -- .../instance/testDeleteMemberMessage.st | 11 -- ...testDeleteMemberMessageIsNotUserMessage.st | 11 -- ...stMessageBetweenRequestsAnsweredMessage.st | 19 --- ...ssageColorsDifferentForIncomingOutgoing.st | 12 -- .../instance/testMessageContainsDate.st | 10 -- .../testMessageContainsMessageSender.st | 5 - .../testMessageContainsMessageText.st | 11 -- .../instance/testMessageDisplaysEmojis.st | 11 -- .../testMessageRequestsAnsweredMessage.st | 17 --- .../instance/testMessageShrinksCorrectly.st | 10 -- .../instance/testMouseDownOnMessage.st | 10 -- ...stTextAndPhotoScaleCorrectlyLongCaption.st | 9 -- ...tTextAndPhotoScaleCorrectlyLongUserName.st | 9 -- ...testTextAndPhotoScaleCorrectlyNoCaption.st | 9 -- ...tTextAndPhotoScaleCorrectlyShortCaption.st | 9 -- .../instance/testTextMessageIsUserMessage.st | 9 -- .../methodProperties.json | 25 --- .../TCTUMessageTests.class/properties.json | 14 -- .../TCTUMessageWrapperTests.class/README.md | 1 - .../testDayDividerMessageIdInvalid.st | 9 -- .../instance/testGroupMessageContainsPhoto.st | 8 - .../methodProperties.json | 6 - .../properties.json | 14 -- .../TCTUMiscellaneousTests.class/README.md | 1 - .../instance/testChatMemberCount.st | 15 -- .../instance/testSelectedChatIsHighlighted.st | 6 - .../methodProperties.json | 6 - .../properties.json | 14 -- .../TCTUModalTests.class/README.md | 1 - .../testDifferentTypesHaveDifferentColors.st | 8 - .../instance/testShowsText.st | 5 - .../methodProperties.json | 6 - .../TCTUModalTests.class/properties.json | 14 -- .../TCTUNotificationTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 7 - .../testMutedNotificationNotVisible.st | 8 - .../testNotificationClipsLongMessage.st | 11 -- .../instance/testNotificationConstructor.st | 15 -- .../testNotificationContainsMessage.st | 5 - .../testNotificationContainsSender.st | 5 - .../testNotificationDisplaysEmojis.st | 11 -- .../testNotificationHidesPrivateChatTitle.st | 14 -- .../testNotificationShowsGroupChatTitle.st | 14 -- .../testUnmutedNotificationVisible.st | 9 -- .../methodProperties.json | 14 -- .../properties.json | 14 -- .../TCTUTestCase.class/README.md | 1 - .../TCTUTestCase.class/class/defaultExtent.st | 4 - .../class/defaultScreenshotBackgroundColor.st | 4 - .../class/defaultScreenshotDepth.st | 4 - .../class/defaultTestResultPath.st | 4 - .../instance/assertNotReading.in..st | 4 - .../instance/assertNotReading.inMorph..st | 4 - .../instance/assertReading.in..st | 4 - .../instance/assertReading.inMorph..st | 4 - .../instance/computeHashOf..st | 4 - .../TCTUTestCase.class/instance/core..st | 4 - .../TCTUTestCase.class/instance/core.st | 4 - .../instance/defaultTimeout.st | 4 - .../instance/findByTextContent.in..st | 5 - .../instance/forceSaveScreenshotOf.as.in..st | 10 -- .../instance/openAnyChat.st | 4 - .../instance/openChatWithId..st | 4 - .../TCTUTestCase.class/instance/setUp.st | 10 -- .../instance/takeScreenshotOf..st | 4 - .../TCTUTestCase.class/instance/tearDown.st | 5 - .../TCTUTestCase.class/instance/waitUntil..st | 4 - .../TCTUTestCase.class/methodProperties.json | 23 --- .../TCTUTestCase.class/properties.json | 14 -- 185 files changed, 173 insertions(+), 1446 deletions(-) create mode 100644 file-icon.png delete mode 100644 packages/TelegramClient-Core.package/.squot-contents create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/README.md create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/class/newFrom..st create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/asSnippet.st create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/asText.st create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/filename..st create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/filename.st create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json create mode 100644 packages/TelegramClient-Core.package/TCCDocumentMessage.class/properties.json delete mode 100644 packages/TelegramClient-UI.package/.squot-contents create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/README.md create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/getIcon.st create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/maxHeight.st create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addContent.st create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addIcon.st create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/methodProperties.json create mode 100644 packages/TelegramClient-UI.package/TCUDocumentMessage.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/.squot-contents delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json diff --git a/.squot-materialize b/.squot-materialize index 1ba7c640..cf543e55 100644 --- a/.squot-materialize +++ b/.squot-materialize @@ -1,10 +1,4 @@ [ - SquotPlaintextMapper { - #path : FSAbsolutePath [ - '.squot' - ], - #encoding : 'TXT' - }, SquotPlaintextMapper { #path : FSAbsolutePath [ '.github', @@ -14,27 +8,43 @@ }, SquotPlaintextMapper { #path : FSAbsolutePath [ - '.github', - 'ISSUE_TEMPLATE', - 'feature_request.md' + '.smalltalk.release.ston' ], #encoding : 'TXT' }, + SquotCypressMapper { + #package : MCPackage { + #name : 'TelegramClientTests-Core' + }, + #path : FSAbsolutePath [ + 'packages' + ] + }, + SquotCypressMapper { + #package : MCPackage { + #name : 'TelegramClientTests-Misc' + }, + #path : FSAbsolutePath [ + 'packages' + ] + }, SquotPlaintextMapper { #path : FSAbsolutePath [ - '.gitignore' + '.smalltalk.lint.ston' ], #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ - 'CONTRIBUTING.md' + '.github', + 'ISSUE_TEMPLATE', + 'bug_report.md' ], #encoding : 'TXT' }, SquotCypressMapper { #package : MCPackage { - #name : 'TelegramClientTests-UI' + #name : 'TelegramClient-UI' }, #path : FSAbsolutePath [ 'packages' @@ -42,96 +52,101 @@ }, SquotPlaintextMapper { #path : FSAbsolutePath [ - '.smalltalk.ston' + '.github', + 'ISSUE_TEMPLATE', + 'feature_request.md' ], #encoding : 'TXT' }, - SquotCypressMapper { - #package : MCPackage { - #name : 'BaselineOfTelegramClient' - }, + SquotImageMapper { #path : FSAbsolutePath [ - 'packages' - ] + 'assets', + 'logo.png' + ], + #encoding : Class [ #PNGReadWriter ] }, SquotPlaintextMapper { #path : FSAbsolutePath [ - 'README.md' + '.gitignore' ], #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ - '.smalltalk.release.ston' + 'LICENSE' ], #encoding : 'TXT' }, - SquotPlaintextMapper { + SquotImageMapper { #path : FSAbsolutePath [ - '.github', - 'ISSUE_TEMPLATE', - 'bug_report.md' + 'assets', + 'playbutton.jpg' ], - #encoding : 'TXT' + #encoding : Class [ #JPEGReadWriter2 ] }, - SquotCypressMapper { - #package : MCPackage { - #name : 'TelegramClient-UI' - }, + SquotImageMapper { #path : FSAbsolutePath [ - 'packages' - ] + 'assets', + 'play_circle_outline_icon.png' + ], + #encoding : @23 + }, + SquotPlaintextMapper { + #path : FSAbsolutePath [ + 'CONTRIBUTING.md' + ], + #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ '.github', 'workflows', - 'main.yml' + 'ci-linter.yml' ], #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ - '.github', - 'stale.yml' + 'README.md' ], #encoding : 'TXT' }, - SquotCypressMapper { - #package : MCPackage { - #name : 'TelegramClientTests-Misc' - }, + SquotPlaintextMapper { #path : FSAbsolutePath [ - 'packages' - ] + '.github', + 'workflows', + 'main.yml' + ], + #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ '.github', - 'pull_request_template.md' + 'stale.yml' ], #encoding : 'TXT' }, SquotImageMapper { #path : FSAbsolutePath [ - 'assets', - 'logo.png' + 'file-icon.png' ], - #encoding : Class [ #PNGReadWriter ] + #encoding : @23 }, SquotCypressMapper { #package : MCPackage { - #name : 'TelegramClientTests-Core' + #name : 'TelegramClientTests-UI' }, #path : FSAbsolutePath [ 'packages' ] }, - SquotPlaintextMapper { + SquotCypressMapper { + #package : MCPackage { + #name : 'BaselineOfTelegramClient' + }, #path : FSAbsolutePath [ - '.smalltalk.lint.ston' - ], - #encoding : 'TXT' + 'packages' + ] }, SquotPlaintextMapper { #path : FSAbsolutePath [ @@ -142,15 +157,7 @@ }, SquotPlaintextMapper { #path : FSAbsolutePath [ - 'LICENSE' - ], - #encoding : 'TXT' - }, - SquotPlaintextMapper { - #path : FSAbsolutePath [ - '.github', - 'workflows', - 'release.yml' + '.smalltalk.ston' ], #encoding : 'TXT' }, @@ -162,26 +169,25 @@ 'packages' ] }, - SquotImageMapper { + SquotPlaintextMapper { #path : FSAbsolutePath [ - 'assets', - 'playbutton.jpg' + '.squot' ], - #encoding : Class [ #JPEGReadWriter2 ] + #encoding : 'TXT' }, SquotPlaintextMapper { #path : FSAbsolutePath [ '.github', 'workflows', - 'ci-linter.yml' + 'release.yml' ], #encoding : 'TXT' }, - SquotImageMapper { + SquotPlaintextMapper { #path : FSAbsolutePath [ - 'assets', - 'play_circle_outline_icon.png' + '.github', + 'pull_request_template.md' ], - #encoding : @40 + #encoding : 'TXT' } ] \ No newline at end of file diff --git a/assets/playbutton.jpg b/assets/playbutton.jpg index a52a92c40dd440cc4ab177b22a7a725611018ad8..861291196eb905436978aa63d0e8ebd3c6737225 100644 GIT binary patch delta 4414 zcmcgwdpuNY+g=)GoYiJB#yP6l#`&02$R_OM9GghnmXT9(h}mV0sL|vQE0T)Aag}*&#jD=az zW9}5Elbk*qLfhZuq^E4Duny_8BbCmX!EXpbba4r2cCQHZ4lTf^Zj8wz0h-1*s7&IJ zTXSEXnLqhC?WS$ighr#t{K#d3+Q|IgEZ@R`kTY(1v&L==%*TK>T7&q={2elF*zXL! zBq!T$Jtc%(cFEk~Ne{KPb@8RO0fr?eLo#$Z8@ZbRr~|t)pdemZFdn|Mbf)NwngLTc z-{A{qOs4MCyp3Z*Oe~xPd=@fss_H2}+~upDiV!TkYCij{2K#I=gj)TER$F;HFY}z$ z?DGy{s8{MZ8~Db3;g`*0r93N%)rw5|JWaviHP#TfN|E!Xn*s{3tdlA39eD&TYm`xM zIx-7rd{59Wg2p6_k5AQ^S2UAioZJ%X~~*R)VZu6{C*by#fa0Q2 zk2&{?H8ltKygWQRzlg^$vQ~cH+Dbak@E9y$E)uUSUhhBppgcr802~;|=^qR1A4n@s z*~Bpi8T^d}@nQ}Z>X4i$5>iKsaf}hu^Vx1s%eoBlw`3(W2G&Pb8I42jsRED0?5S@dXN_xOdzXMz_x*nr5C7sXOoQ{>T-qXtD#25VE5 zV$(t1MZ%B;+u;bYM>02sZ`yOk&RK}rbEPg=9xcapm`YF*WddwSt$=r^DTsDH5sA1j z4?~auE|gTS$aNaHSdVHJct5|S@$%?$1zm3;rI`AxE})4~@%d##sKG<;giUn@Qko5j zX5j?SsRPnHDq>E%9W2CvuZ*kR-%C8`$P3k(T6N{RmnCEM^3$U*6WmT*HzBpXk`~-Qd9UisvIKjDb19P6cl30lPD1PXEYXedibLfp zFc$;W$05;=62hk1J`yDu6LA}k-uPb?5LulRZuJ&@Emy1 zJN%;E@c24&dcuV8Y8%^vj4X0!5B1Dx@)*@~rv2iSepL(02I_`H+Fd1Wd3R!wgDdd0 z;SUhM+S!`9IU7g??brZSfziV-MY?a<(YkY2sP9EmYA3GR<(6vOBlt=zHqI~E!riLE z&gzfkPus0u@wv>)z1sp$-hbTe*D@8S=ejjh1vG5X`RK8WDQnV2u!OwAy2{60Gb_R4 zxX}&k*-`TmaslLk5Yy)}lRy~@iPtc6(Pk`0W)!8< zznHmw%OM!Xyw3&}L_KE}q%EK*Q6<%qnsr&9u8+asOrq_gpMpZ`Z+@Wy;q*Wm&v#K7mNEzEU|Mmzr5Osm7=Ga-GU93CQoY^Lz zv{KFzYb@M}+`kylJ>8{6H0|C<6v@|zwPel^^#W(Sb}iKE%H$(I)avvNhI>e+o%fAJ zcKKxC$8z^?#WT`-ad3G9c zKWs!#-Uy3fZFi*fnRF72`lK8zkVp72d4xXXN3L{GDskRsIJp+ST?5m69kc=`MdiL~%_R8z5&*QI3*MkeqRoUJ_E?q&21D zqPa+XnMZK`n+iUq<%NxQ#GMZJENX1@{plk{TOphCaUaEe78NgR`t1&u|z{>_73w z7e^LRgS{&WZ4sI;P^<&SG1=8z>hI3!FCHzAo~{?FLx1Rw%sruQrc{qikdVE1s^_9h zXgFFD=v|f(Br<*2z?HBupUpHJkVpEKutP-ZI~Uj7C>YDs_0-yDaFwURxZ=Cz-Gk$= z+}HrJD`z{xU)=yNVxwv7&xbPVlz^DLQmWV-dYR=ZzOz7ti|cl#?3^c$LyyYSe#(e@ zETk=h+IA)Z^gW%VKtGLQW2-`FTgU`7RUG3l28-SOL-|yv2JEn?shnAp7OIvD9XVZq z)@iLTo_J&a2CM^H$ii_hbPHN4E@;=#kT4%&(yqBablvrW-lxrVC+*6}HVcMu4=)M@ z104Pp!5uW~JsLx!W4@sUuNb9pk|~vmeU18X#O^eh^*ISXxQK`61Y7cZ6f99SLHA=q z?wGtAZ~tEk@P`0M^8nHCQvc7=XBd6t9711BPj%lqdP0?T|K z&C8j$P0X31x#JxdUzgv^)A}7nLoF*c^e2h!HqK*g1*sO%mg}m%3oVQA{2& z2U8wD;q?3;$ce%@E}Su@WsRcf{mE1!Mi1;t&K-Ys8}3Wn7ruRXon>GfZKW?EE%b8- z*HzvY!4@iMktMBU)Vx$vIcF6%Lay1%KtW|J#2!z#0(DGTpBkJx(LE zg(|(+J^wM_pbLF}!CifKlt$S3LrR5HcI!!@HGO^ViL8jB0!!Hlyb_ZK2%67U&bZV* zmz$fCdyn{T)XrwcFhemdS~0sC@)k#doXAQXJ433u?_W_m-`gv2*JiZtbU#8FRO=-e zOE$WP{8ndFBm5|XUe~o)FBWr>rBiL-@@T>;-)+Lah^$n!$m7Hz4M&YXeS&uWA1&mt zio;Ij0mT2UFhRcE7_`!>bsPnsJZn)(>*KFf3wC6^Y+&WoA6rr$>)JH!+ z3b%F1Ghq(teS)64xV2O{G;<{3y-3*fyP?9{xZd$11G8jDjw)WcB})dI2*>mY)J1K|8^LtG{%*qF#xp8Edy5FB4916%urJ82<-a`el~!E zcWbZiS`>VOGhH;MN1!x$`Qoztp2J|9}l#|GAx82DzL|)0oHK_4y!+=S6{~Y{0*Mp~B~e zwf=#me*J?7Zg945)e4T?`$61t;+S=hGd=gkH6t%;B{X-h>GbB6 zSpM>olv?yGPmqVf?+VkhY*!A)Sk;`;9KR|v-u!md&dgKAPbNLz>NH0b;5ZnJbW+3y zVT0k~MH!udyd)*LcS6OWW8%H3pw28yFQheu~IAyVBQJzKSuqFAgJ6 zl!3`uulpj;hv5phzQ5hDKxqPJ50zs>1ZE?N>+Ze}FL~H0&X|4I5DLP+vxT#LQLb}15bA8&GH3Df^jw3;YUvS~ z50s}jz&5*dlciLqH8mUaV@<+QL4ULwm%};4m=g8(1Dh$-ioik-U~*6?@*w1gJ_f0C pi$gwWUFg|f9nSBC>rgoyf#1|!k8eJ2@uA}Pg8lzoZp zOf`}u8e3#14PN_Lvdny=zW4XN-}^g`@B9Ax{y3lKexBn#p8LA*>%7kEd{&M#j~Ao3 zA%36~H{7VfapwmyA&m4Z^@hD3>xNxXUSz4gfV-G(WnM9g9&J>xr(efLuO^dD$8sC^5Fd<)bdvYz!9bw|; z^=YOPJew^=CMraLSROd&z{9%@cS}m`jb|mNjHD$$OkKC4V=+i@9*M&DaQSZ>T=mI&l0?q<}&Gkt; zjWk~BM1*KGJ)UHzX9!b=fI~0|f;^cBv;xk)XCfytlcp43>J)BAHYLm_%YAXM|FMzS z1|_eAL7Bog&&|zhoSO9UezaPO+*hi61^K4D)}eq6;5`V}B41wfFwI7PqpbQcly;;E zVGZEa?GOL&u>3Vi5r3-X?#UIU7TaDeBbojXl#AvITn5aMUal18dX~5X0O69b3;q7* zZLe!9wbUvXr0=t$Lt9Fioa`CezN&iGv-2-_t}z+$+0vf!MnQGqzJ zoMHf6y{8gfps1t{iEISiu@}D}@89M}$^$!{Z(h(j(!~Z!nXVGbck*hR#8Gb=XhVfM z*)@C%MSG_jz9P10Q@v3#<8K*Oft%*;8Aqv9zz<%AHPbbKpM(4jJi1vy4&}SyHBT59 zsijMZTyNQsv`?K(e5=As)wpQQiygC1i?RZ$QJZ(x30uCX?xI9-(_;R7l@Erx&v;V& z$<;IG-}p8^EPEppp3RL`U;}k_8!Wb+J%#` ziC%J^{kvplc+*6ow^HLa z*P&3NJ~+ywK~Pw$Ie*eN?#LBG8l5$vy!t4f1wA-lBxT)~X{6g2KoIu1HDKA@Xl^6+ zv52*F9j$BcrT&w(oGb%>1B8+GUpwm(fUyj=(5y<*wCyBdji1r!v5fmr^Sh4Dbb`1} zZ2o7Agk0W8OP#tn#-+9O#rF`>L-e3X0 z&VUR-Y2uT`58o}GHrK>Z2qOn6VX%;>R8U1!M1QB7GgF;YDh0#oW>ZLs7&p&W&s%Yu zCsFT-U6M+XYoWKCd#;tbE;<-g!d4!zf&8<98S(xiGXGu45FbP1bR zTc*xM-e#)ghnOs#B^#Q8g*#dW6OI=>=Lx+;4N^rdlUO2ck)#QeZO&x>OFkT9hG9P-4uqawHqb6wyHdB8 zs_zr`o9m{nIbose8FiAOE&qP`nYpa0cix~!cRoe5cfB1TrPHm-uf9^7W_TCNM0@=%(QsY1!)ch8ok!EXK&1c1!x z(pdl)p_s+Wa?hg4);w_6%6Cm6WUvA0%2r#NZCWa>=h(_~(qY(P)&l2c#7P0$M$vAA z%(C4#uWQPplF-QIrU8fkp|X7uK-+WQ!%tfZWs`62&E+I9k$eISkB)=ax<-Y=qA zIz~)Fk-Tg9F6~%+pZb2E5(XlyN=(7~QGI3emb;1uj!e{7!-z>(4u_mO`G3-MKR9F@ zQSkhW|D$Qgs1vEm8_$#0g{_qe*5X{p@rjP|KfK9(78`gr&@El1n8`UsPz^3jK>m@* z2HrP3X9GRLTOM2I{#*4XZl5(59CEQQyW-ljyQL*5V=p3MXi^q{+arADrDAS;ife>Y zT9=kx(rla=g zCh}7Z%>E%CyYgr5E^n1*h^v|AtnE=-x2=whjHK7Tq>9Q-(_+U-_vq3bp17A%m;;Wt zfhJv(csluIv9IlaX2}66x`KNx=sm)09^EI?@)@W>I)D9Nr$kE>BMVwew$W+aCW<=ad1F z1ytRE`_12DyG^0mv^=H>mXDs(yBCtWInI>QtDv(&O0+_e{p`g?u(p0U?5LFk%;%zFK6O;$U)ieNo<} z3rBpF!WZJ)BuX|L>;R?@#J#~~ezE`L=%sf{7Ntz=kDF`V?UOcRcct&T-qj;VI~NS)yR01JzpNylOlthKNn8OY7Jo)NH_qaqX;-RN%PJ87pL3+I&ozv=cN ztYD}eJ)@i1^fLKX<&RNtBLV$MAlRU_Y$edLufOSA+g>k!HlS@p@O50UcOu?8u~p=G zWX3A2UWC)7wC@vOJ@hnaD}$0L6~(J5l@LpG`Oh?n8~I^Pv=(0TiOVHLNheICn)5Iv zr$661IPx-EcV(lqk(sx6faACo2`jD`M4BK;G$yN{Sh1s_O)Gls(I$_sUGTOYGyVt` zL#4p8yQN$O6t`93lOs@oXyv#uj6@N!R%t6^|GAF#-NkB$^jVieNh=NM!7OuQsVGh? z$upRxM11n}noHr|BCmbd}=hrG8_TJ1n{C)`QfPd9Oz{ z_wAeect6RY&Ug0M5pxht2t`8*-|s5>7z+0Mt@|-0?U~X8w_0MwLgP?sVcJ}N<&Q&b z?jDE%2Sp{pcEoPzFMEI`*j`CELBV}9@Vgw9uPSinVg|pUJajL1UNAZMLHUp?$HG3b z&s@)8r54(4Q0)dX<@)u5(raJw4uQVwX-s>Vsh;M0xIIj~s-m*gr6Qo?QpL01ZOHs$ zZbJCMUi};!Ai5LLTs1%VNASl!>k{1 zcD;q}*nhvS&M8NKOTH3GFbHgzFY;_){1(UtZXG@mj+)GCadNC^&tToR7u=Cp486w{ zavu%z6H9P7a+M7fg2HSdW3;TGRynf|HQ=7oyX-eeIM%uk+B7qgwy)emPJ65&Hkb^Y)rBcJF@xDjKJ- diff --git a/file-icon.png b/file-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..761424995de4b5912ec0469c1df3e1301658854e GIT binary patch literal 6875 zcmcgxd0bORyJl&Lh&6&1tQLcaTGxoSf`ADs3W})31rRk_w5W(&l}!m8DlRC607X$L z#EME$7B@se5>Oy0VpL=+g_s})LnGa_xrW|?sxC+yZ@azGxN;*KJPl` zoLaZW`IC_oM(XJ3e6rHT$z4ZBH(p0aPiKSye3NBuXQHDs;nGT{B^yGwwKkOmrT=pG z#EYhl2B(kB9{16Kcs;}C9u}7`jZ2Em$$Z#s5Ff@CP z`y})77#-|jO}*-7qo|7!rc%lkbzMqjy4rI+mo?jT{TCXTP~LTf-9c&nh#7kiDf?F3kfAV zu&uGG@2AVn*h^d~cP^ECAG!ZTcs!bo1vML#@uC&}zUEQDN-57BivCgaC^ev?&WqlVCyC* zmQs<@>itH>_JWUtyna&pLN0p5XJcfQS$ImXWKXM@&jxQ}Sm5bzZzCMwQYe|(x)!z} zeDokvm_tM;BvK5;Yr0A|9O5gXYJ5z&Tw+=6Z@2<1QHc3MnS}cyKOQ(=MBCBxIp9Ud zpa?dczU(7SkFZEJgb?DF0<6Ka0{Fhs&jZAJ^PXXja3WU)m(6*#A@qpD(_HzMx2}iC zLN?cHcSuBcfZ*J(p1s1`>HKAFLR+~~pE~J>g?M`|F!bOv#sGnrK>x?YH2*u~`4eJ# zG{abObAI^t?k@h@AtF*WSk+q=-@bs6ij_;@W~iAc?@g%98PGKYZGIagaJ(QB=81=q zJsKKBP3-V~T(?Kx9qLZbDFsduosU55Bkc<78_ig}iW}ibM61r);q=jbG2P`QRMWw; zLxk2OhC+7f<2r*oNxw-fbcXo_Lnm%W4ucMtMq|pdk1iF3c1e`w2+-N;R9H{0&kzKB zcLBtF5sW_p+vCM%_7*<3qE!rs6LUE@dmo<}?3goE!kN*}n-wswwaJ52-wPLft~=wg zC8VRr&9bSW6zHnChxJUPemzqT-uQwssgGkji1&VM_0qZ&>}$}?AsbGL<+RHWf-~>W zBExUH7&i;-Rcr%3Gstn(Mh(4C=VMnOF^G+B<&P{kG4>AA0p zW1sBgXzCr0b(|$T4Y+~=y@NCFv-Y(~xCgF`5YA9B)70Fck4t$YWNq{@%>?5+vBxgQ zCq$(*8=5!kEGJyDgv+cjiGMsU!Nq28e}Ld#!fo)V7bhZ<28CfWyq$=U zObg?P!wC1gbcJ_|P`^^XKtFMgWp#}SbdnN1nNa?V{E)thbY?Uo!E987BbUXtXsu5f zGX%X)Uxpc!LW|tG04;PZM?0yjm)I%rA~|dO^<_$2*D!E~2)Zz14BG-4HogYM2J{m& zb$Es)qAOA*358Z3VVqD7J#h^3jUV%GYw>9aeyP)&oaLqTXlM$nA=__a6$v|i@J|!$pkLw#-Sy`$8k#F}U06$4K*8bhk4@u8h;pV*gboiE z5Rs*Z6?@1|maEf|-(alu60I#$e-qsn^W1Y9`r>k=iI`q7v!UyC7}Nxt5)L`J3B9VM z4haeQIQ{!77+SxfH4lFK*d2yBrO4&Gkvn5texb;KXTKUBf9m%=6??U`AgZsUWPrpa zA}=ql-G~=ySvA&k|Kp5`Re!8!LVF{&QP?ozH)^?pn^k|Xy-;3ROt0u5)ZZ3WP_j6E zLP^PDw72O?+C=rg0aW}FW`p|%swf+A7p3ZdUa_}DtANOM$RaqWJM5iy=xjUW|Fhc_ zNnJA!Sui))85^IItqQXr2a^RfiQu%khUnBNa>KRkVVPyvEQN4bw~ezN7M@t+=rkmpVWkISAuWLA|!spSl2!eUpG;+fHf%aLeRgK%dm^jc@;~j)vcz| zWdU;r7K_IvR@Ws|23Kf})f>}m7tJ*_k%kuRj6y^Ywwt~wepSNO@6zgO z=TtBn8<_Hq6LMLPlUMInPI=6n(QLB(GG#l(QbctaPFr?E*&Dxji$6y6!okq zM#7D21(Ytitc2YA>fBQs#z7}!aZ<}o)U4Ih!E9@w1tYyGzOJjENcbj^l;|ulyA(TF zYkjN9<~k*-?_{z8#=YDAq;?dE;-!{b{mc|^Qrh3fc%Uf2OieTvHIc^meeI1XTLrj` zPY~zFZzH0Qc`M+S+oM~glxD5bJnKQUH3cyx9Ci_mG)s&A&(iW7H6SMVx5 zQP_$+S2~e`r~RKLUDy`Mi%^!uAa)Pt%(LJu-*rx0FjpDSHyvahPQ{QP=;r`MC(J3_tFtBLMEnACMh` zS@g+~V%aq~ZJBoQ<|52-_+_hbK_#q3d~yD&yFynfiYVwn zEoF7uEt@+Svo$F5aQ)o!7vERY+_d-;swF0$Y4kIwtzzNjRtPJWH#P;X?AR2+Iw_ft zNhy(vO0nd#+SC*9704UTB9fUIxUl+AgD|U=MrA~A^B?Z20&r+8q({*h6VN}rl#i{D zQP}p+`nE7M`nkhk*;iHAQkbYH*Oj$qyY_$qIG~am@09j|`EXZG`_?V#*u{Zi;3L5@ zTG{ZXTgrg1&&TZ`r@ux#vm})}&dTXqb+6NVK+BcjBH+5!XvX`}W*?GYm|LHFpJoPiIWRdknsxe@`vbcyUu zr9Nmi)G8oSsO$&r@cZ}Q|5P2bTMoRTz#_;v+agfdviDzdk*gpJUrhXQbBvOG8-#K<2-Ul31SKKqei)I z2{O^)DPV3P?2ZHEC<=Cd3X}{uLKM zSwkX2w#7<3-?~Sx5aSrT2~B>y0$haR@nT77F&gh8=wsnlEc!Vb)e!0(c-X<#uip{5 z7$Yke*PRjJXvubjHzbva22`(UR!p$$IQeR;CPRq$%01tl5Tv9}BX79z4uez=Kaand%<3ZyWVI|PN~J7 zp#IpTWq!?TMiMdg*FGb012z&x)WPp>!#gqOVE91k{jFm@9gACzFH5pwUO z>EPuVHgG>nas5H0jsbZv(iWy+>ai%hE({!?&m=G6A|18`8I^H~c7lzCFb99;hrL3|0ArihbU)_~tFLFQn>eauN~?R>gl+_WncS{4H#S zT)7zD_x{)A?tfa|cLtH3_F$ff*95D~H!TEL!KziQHAk-Vo+b|M7C+;3HObHYsLA*N zv2~)Heo|M zdfAwxGNkxwh<_@PLHY6FRE_?5p?;luZApH^QARw>=wN{*C#A`QE*z# z0BN2i5w@M0^r`|I3WVv+1s%cxDeX-oXCAz52hW5TAChqOpfubT9Sx2|v%#Wv=r3$f zkMoxE&+;X=Q#~e;*m>M{(qR=UvS)k2rf6Y^`6!}}DwDda*9L+UG34F)HhvHavv2IG zB*OO8&7_|dnbr^BV6R{(XdSpxH)&JW5I}w zB`7y|?~LxQ1TQj{qyyV-Sk24IOOMVOneigWRFF1fg0MP75NDr zZ($|ivN#W0lyfS~Li-s^q=su!^7#Fqtw|t4c0z_EYuzrk9OSnerLGF;W!SU$^x%;RhabUx{A8}i* z(ZF%ZX;8b3FZQ*iIT-L>~wf^+UXke6d+Y;Oc^@>RsIGgUw?#Eo@0<&5*AZv_bKLxP4L;F_q|xJIYGjZx_|8 z$Y@pK1JA7r_ug(S^cIy$lEk+Y#phJM)1YHrUl1$a{c9p)iYO$x|LYf518V2-x4P9V zHUmvtAew~5qbK9%tT%MK_BU>`1*<$7Y@VVo>_n&PZTbuFE&A-u+34XDy!eb#*bbX{ zWimE6Wo{FP2zY>&U6Je<9QR%mAfN_K(m|6x4jnf7d?B}R#bLk3DzF26eCJ#fm!?`4 zv3~(Sp&=h!!e_>UC~9H1QJD91km`lNVX^1I-wE)sr+dn+4)lguKU$q7+8p781`5>` z&3e<}=W|W2A7ix488~_2C$wi*bKfG~Uh>Q1V8=29(dg@w*-d}z1}>HWDZDd?C5^So zPx4551Epce=Azz$Xl!LAHLA0RCPE^F6ccocbNdyoz>lP1?dIO3 zH>QFAC0Y!CdrbuMZa&#M2f}Xrue;Xfm21cyntSI0BUZ!J$zM!J1##Ez`A(~DY$CiX zpdpwKyOh?M{pkq{zK8;ri2h)QN8^d@uO^", + "instvars" : [ + "filename" ], + "name" : "TCCDocumentMessage", + "pools" : [ + ], + "super" : "TCCMessage", + "type" : "normal" } diff --git a/packages/TelegramClient-Core.package/TCCMessage.class/class/newMessageWith..st b/packages/TelegramClient-Core.package/TCCMessage.class/class/newMessageWith..st index 18134d32..d11aa676 100644 --- a/packages/TelegramClient-Core.package/TCCMessage.class/class/newMessageWith..st +++ b/packages/TelegramClient-Core.package/TCCMessage.class/class/newMessageWith..st @@ -8,6 +8,7 @@ newMessageWith: aJsonObject ['messagePhoto'] -> [TCCPhotoMessage newFrom: aJsonObject]. ['messageVideo'] -> [TCCVideoMessage newFrom: aJsonObject]. ['messageSticker'] -> [TCCStickerMessage newFrom: aJsonObject]. + ['messageDocument'] -> [TCCDocumentMessage newFrom: aJsonObject]. ['messageChatAddMembers'] -> [TCCAddMembersMessage newFrom: aJsonObject]. ['messageChatDeleteMember'] -> [TCCDeleteMemberMessage newFrom: aJsonObject]. } otherwise: [TCCNotSupportedMessage new] \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCMessage.class/methodProperties.json index 952409a2..1c3ba826 100644 --- a/packages/TelegramClient-Core.package/TCCMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCMessage.class/methodProperties.json @@ -2,7 +2,7 @@ "class" : { "maxReplySnippetSize" : "rgw 5/12/2022 16:05", "newFromMessageEvent:in:with:" : "rgw 6/2/2022 09:01", - "newMessageWith:" : "TU 6/14/2024 09:39", + "newMessageWith:" : "AH 6/21/2024 14:29", "timeStampToDateAndTime:" : "JB 5/16/2021 09:42" }, "instance" : { "asReplySnippet" : "rgw 5/12/2022 16:05", diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index a2951708..51a8a6bb 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -12,8 +12,8 @@ "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", - "stickerIds" : " 6/21/2024 00:59:09", - "stickerIds:" : " 6/21/2024 00:59:09", + "stickerIds" : "6/21/2024 00:59:09", + "stickerIds:" : "6/21/2024 00:59:09", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", "storeStickerSet:" : "JK 6/19/2024 11:44" } } diff --git a/packages/TelegramClient-UI.package/.squot-contents b/packages/TelegramClient-UI.package/.squot-contents deleted file mode 100644 index 239ddebb..00000000 --- a/packages/TelegramClient-UI.package/.squot-contents +++ /dev/null @@ -1,5 +0,0 @@ -SquotTrackedObjectMetadata { - #objectClassName : #PackageInfo, - #objectsReplacedByNames : true, - #serializer : #SquotCypressCodeSerializer -} \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/README.md b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/README.md new file mode 100644 index 00000000..6682e55d --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/README.md @@ -0,0 +1 @@ +a single text message displayed in a TCUMessageList \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/getIcon.st b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/getIcon.st new file mode 100644 index 00000000..d45b0990 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/getIcon.st @@ -0,0 +1,5 @@ +asset +getIcon + + ^ (GitAssetLoader for: 'TelegramClient') loadForm: 'file-icon.png' + diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/maxHeight.st b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/maxHeight.st new file mode 100644 index 00000000..1f6efb16 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/class/maxHeight.st @@ -0,0 +1,4 @@ +default values +maxHeight + + ^ 200 \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addContent.st b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addContent.st new file mode 100644 index 00000000..0709ffb1 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addContent.st @@ -0,0 +1,5 @@ +constructing +addContent + + self addIcon. + self addText \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addIcon.st b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addIcon.st new file mode 100644 index 00000000..94ac59d7 --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/instance/addIcon.st @@ -0,0 +1,7 @@ +constructing +addIcon + + | iconForm | + iconForm := self class getIcon. + iconForm := iconForm scaledToHeight: self class maxHeight. + self addMorphBack: iconForm asMorph diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/methodProperties.json new file mode 100644 index 00000000..37bd35cc --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/methodProperties.json @@ -0,0 +1,7 @@ +{ + "class" : { + "getIcon" : "AH 6/21/2024 14:08", + "maxHeight" : "AH 6/21/2024 14:32" }, + "instance" : { + "addContent" : "AH 6/21/2024 14:07", + "addIcon" : "AH 6/21/2024 14:10" } } diff --git a/packages/TelegramClient-UI.package/TCUDocumentMessage.class/properties.json b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/properties.json new file mode 100644 index 00000000..a6b5626a --- /dev/null +++ b/packages/TelegramClient-UI.package/TCUDocumentMessage.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "TelegramClient-UI", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "TCUDocumentMessage", + "pools" : [ + ], + "super" : "TCUUserMessage", + "type" : "normal" } diff --git a/packages/TelegramClient-UI.package/TCUMessage.class/class/newFrom..st b/packages/TelegramClient-UI.package/TCUMessage.class/class/newFrom..st index 6ef7fbee..63d47746 100644 --- a/packages/TelegramClient-UI.package/TCUMessage.class/class/newFrom..st +++ b/packages/TelegramClient-UI.package/TCUMessage.class/class/newFrom..st @@ -7,6 +7,7 @@ newFrom: aCoreMessage [TCCPhotoMessage] -> [TCUPhotoMessage]. [TCCVideoMessage] -> [TCUVideoMessage]. [TCCStickerMessage] -> [TCUStickerMessage]. + [TCCDocumentMessage] -> [TCUDocumentMessage]. [TCCAddMembersMessage] -> [TCUInfoMessage]. [TCCDeleteMemberMessage] -> [TCUInfoMessage]. [TCCAnimatedStickerMessage] -> [TCUAnimatedStickerMessage]. diff --git a/packages/TelegramClient-UI.package/TCUMessage.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUMessage.class/methodProperties.json index 35e5f89e..0e6cb3b4 100644 --- a/packages/TelegramClient-UI.package/TCUMessage.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUMessage.class/methodProperties.json @@ -2,7 +2,7 @@ "class" : { "defaultBottomMargin" : "aka 7/14/2022 16:20", "defaultMargins" : "aka 7/14/2022 16:20", - "newFrom:" : "TU 6/14/2024 09:39" }, + "newFrom:" : "AH 6/21/2024 14:31" }, "instance" : { "handlesMouseDown:" : "js 7/31/2022 11:13", "isUserMessage" : "rgw 7/21/2022 14:07", diff --git a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json index ab34e379..e180fc6e 100644 --- a/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUPollOption.class/methodProperties.json @@ -4,6 +4,10 @@ "new:" : "6/14/2024 00:26:16", "new:with:" : "F.M. 6/5/2024 14:49" }, "instance" : { + "initializeWith:" : " 6/21/2024 13:51:11", "initializeWith:and:" : "TU 6/20/2024 21:56", "mouseDown:" : "TU 6/6/2024 01:46", - "updateSelection" : "TU 6/14/2024 00:29" } } + "selected" : " 6/21/2024 13:51:11", + "selected:" : " 6/21/2024 13:51:11", + "updateSelection" : "TU 6/14/2024 00:29", + "updateText:" : " 6/21/2024 13:51:11" } } diff --git a/packages/TelegramClientTests-UI.package/.squot-contents b/packages/TelegramClientTests-UI.package/.squot-contents deleted file mode 100644 index 239ddebb..00000000 --- a/packages/TelegramClientTests-UI.package/.squot-contents +++ /dev/null @@ -1,5 +0,0 @@ -SquotTrackedObjectMetadata { - #objectClassName : #PackageInfo, - #objectsReplacedByNames : true, - #serializer : #SquotCypressCodeSerializer -} \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md deleted file mode 100644 index 7366b93a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUAuthentication. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st deleted file mode 100644 index b46a398e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st +++ /dev/null @@ -1,5 +0,0 @@ -running -setUp - - super setUp. - self wantsToTest: (TCUTelegram newWithCore: self core). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st deleted file mode 100644 index c54f42d7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testEnteringCodeOpensTelegram - - | inputField authenticationWindow | - authenticationWindow := self subject currentWindow. - authenticationWindow - showPhoneNumberStep; - showAuthCodeStep. - inputField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - inputField sendKeys: '934505'. - self assertReading: '934505' in: self subject. - authenticationWindow logInCompleted. - - self deny: self subject currentWindow = authenticationWindow. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st deleted file mode 100644 index 126ae1d6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testEnteringPasswordOpensTelegram - - | passwordField authenticationWindow | - authenticationWindow := self subject currentWindow. - authenticationWindow - showPhoneNumberStep; - showAuthCodeStep; - showAuthPasswordStep. - passwordField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - passwordField sendKeys: '934505'. - self assertReading: '934505' in: self subject. - authenticationWindow logInCompleted. - - self deny: self subject currentWindow = authenticationWindow. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st deleted file mode 100644 index de3389d3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testEnteringPhoneNumberAsksForCode - - | inputField | - self subject currentWindow showPhoneNumberStep. - inputField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - inputField sendKeys: '+49 934 505'. - self assertReading: '+49 934 505' in: self subject. - (self subject createWrapperFor: {self subject currentWindow buttonNext}) click. - self assert: inputField contents isEmpty. - self assertReading: 'Verify' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st deleted file mode 100644 index 808a0bd0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testPressCancelOnAuthCode - - | button nextButton | - nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. - self subject currentWindow - showPhoneNumberStep; - showAuthCodeStep. - button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. - button click. - self assert: nextButton visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st deleted file mode 100644 index f160da3a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testPressCancelOnAuthPassword - - | button nextButton | - nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. - self subject currentWindow - showPhoneNumberStep; - showAuthCodeStep; - showAuthPasswordStep. - button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. - button click. - self assert: nextButton visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st deleted file mode 100644 index 224c0740..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testTelegramOpensAuthentication - - self assert: TCUAuthenticationWindow equals: (self subject currentWindow class). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json deleted file mode 100644 index e0b733ea..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "setUp" : "RS 7/17/2021 12:56", - "testEnteringCodeOpensTelegram" : "aka 5/21/2022 13:02", - "testEnteringPasswordOpensTelegram" : "aka 5/21/2022 14:01", - "testEnteringPhoneNumberAsksForCode" : "aka 5/21/2022 13:29", - "testPressCancelOnAuthCode" : "ek 8/5/2022 15:27", - "testPressCancelOnAuthPassword" : "ek 8/5/2022 15:27", - "testTelegramOpensAuthentication" : "RS 7/17/2021 12:55" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json deleted file mode 100644 index a81392ce..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUAuthenticationTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md deleted file mode 100644 index da007ebd..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Test hover and pressed behavior of buttonlike objects. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st deleted file mode 100644 index 499fa066..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st +++ /dev/null @@ -1,12 +0,0 @@ -hovering -testHoverOnTitleBar - - | titleBar normalColor | - - self openAnyChat. - titleBar := self subject chatWindow titleBar. - normalColor := titleBar color. - titleBar mouseEnter: EventMorph new. - self deny: normalColor = titleBar color. - titleBar mouseLeave: EventMorph new. - self assert: normalColor = titleBar color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st deleted file mode 100644 index ce91d62d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st +++ /dev/null @@ -1,11 +0,0 @@ -hovering -testMouseHoverOnChatsListItem - - | chatListItem oldColor | - - chatListItem := TCUChatListItem new. - oldColor := chatListItem color. - chatListItem mouseEnter: EventMorph new. - self deny: oldColor = chatListItem color. - chatListItem mouseLeave: EventMorph new. - self assert: oldColor = chatListItem color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st deleted file mode 100644 index ce874115..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st +++ /dev/null @@ -1,11 +0,0 @@ -hovering -testMouseHoverOnRegularButtons - - | button normalColor | - - button := TCUButton new. - normalColor := button color. - button mouseEnter: EventMorph new. - self deny: normalColor = button color. - button mouseLeave: EventMorph new. - self assert: normalColor = button color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json deleted file mode 100644 index b420a992..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testHoverOnTitleBar" : "ek 6/22/2022 19:19", - "testMouseHoverOnChatsListItem" : "ek 8/5/2022 15:28", - "testMouseHoverOnRegularButtons" : "ek 6/22/2022 18:19" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json deleted file mode 100644 index 33fbbd8d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "ek 6/19/2022 19:00", - "instvars" : [ - ], - "name" : "TCTUButtonTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md deleted file mode 100644 index 0e3eb803..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUChatInfoPage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index e0fcf5b1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,4 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #(#testPrivateChatHasNoDescription) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st deleted file mode 100644 index 3a2e3cd3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st +++ /dev/null @@ -1,8 +0,0 @@ -navigating -openAnyChatSatisfying: aClosure - - | chat | - - chat := self core chatsHandler chats detect: [:aChat | aClosure value: aChat]. - - self openChatWithId: chat id. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st deleted file mode 100644 index e992848f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st +++ /dev/null @@ -1,7 +0,0 @@ -navigating -openInfoPageInChatWindow - - | titleBar | - - titleBar := (self subject findByClass: TCUChatWindow) morphs collect: [:chatWindow | chatWindow titleBar]. - (self subject createWrapperFor: titleBar) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st deleted file mode 100644 index 9b64ab83..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -partialTestUserList - - | chatInfoPage | - self openInfoPageInChatWindow. - - chatInfoPage := (self subject findByClass: TCUChatInfoPage) morphs anyOne. - - chatInfoPage chat members do: [:aMember | - self assertReading: aMember fullName in: (self subject findByClass: TCUUserList). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st deleted file mode 100644 index e2d77e07..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testBasicGroupChatHasUserList - - self openAnyChatSatisfying: [ :aChat | aChat isBasicGroup]. - self partialTestUserList. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st deleted file mode 100644 index 6e1f242e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testCanCloseChatInfoPage - - self openAnyChat. - self openInfoPageInChatWindow. - - self assert: (self subject findByClass: TCUChatInfoPage) visible. - - (self subject findByName: 'infoBackButton') click. - self assert: (self subject findByClass: TCUChatInfoPage) visible not. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st deleted file mode 100644 index 06e36904..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testCanOpenChatInfoPage - - self openAnyChat. - self openInfoPageInChatWindow. - - self assert: (self subject findByClass: TCUChatInfoPage) visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st deleted file mode 100644 index 38483e90..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testChatInfoPageIsHidden - - self openAnyChat. - self assert: (self subject findByClass: TCUChatInfoPage) visible not. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st deleted file mode 100644 index a1212ed7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDoesDisplayGroupDescription - - | groupChat | - - self waitUntil: [self core chatsHandler chats anySatisfy: [:c | c isGroup]]. - groupChat := (self core chatsHandler chats detect: [:chat | chat isGroup]). - - self openChatWithId: groupChat id. - - self assertReading: groupChat description in: (self subject findByClass: TCUChatInfoPage). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st deleted file mode 100644 index 1a2f9919..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testPrivateChatHasNoDescription - - | groupChat chatInfoPage | - - self waitUntil: [self core chatsHandler chats anySatisfy: [:c | c isPrivate]]. - groupChat := (self core chatsHandler chats detect: [:chat | chat isPrivate]). - - self openChatWithId: groupChat id. - self openInfoPageInChatWindow. - - chatInfoPage := (self subject findByClass: TCUChatInfoPage) morphs anyOne. - self forceSaveScreenshotOf: chatInfoPage as: 'testPrivateChatHasNoDescription' in: self class defaultTestResultPath. - self assert: 225928729 equals: (self computeHashOf: (self takeScreenshotOf: chatInfoPage)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st deleted file mode 100644 index e13bf8b7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testPrivateChatHasNoUserList - - | chatInfoPage | - - self openAnyChatSatisfying: [ :aChat | aChat isPrivate]. - self openInfoPageInChatWindow. - - chatInfoPage := self subject findByClass: TCUChatInfoPage. - - self assert: (chatInfoPage findByClass: TCUUserList) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st deleted file mode 100644 index fb542780..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testSupergroupChatHasUserList - - self openAnyChatSatisfying: [ :aChat | aChat isSuperGroup and: [aChat isChannel not]]. - self partialTestUserList. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st deleted file mode 100644 index cd829561..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testUserListNotVisibleInChannelChatInfoPage - - self openAnyChatSatisfying: [ :aChat | aChat isChannel]. - self openInfoPageInChatWindow. - self assert: (self subject findByClass: TCUUserList) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json deleted file mode 100644 index 132669f5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "TR 6/2/2021 15:14", - "openAnyChatSatisfying:" : "RS 8/1/2021 12:56", - "openInfoPageInChatWindow" : "RS 6/6/2021 15:48", - "partialTestUserList" : "tom.richter 7/17/2021 17:13", - "testBasicGroupChatHasUserList" : "tr 7/25/2021 18:08", - "testCanCloseChatInfoPage" : "JB 6/7/2021 09:30", - "testCanOpenChatInfoPage" : "RS 6/6/2021 15:50", - "testChatInfoPageIsHidden" : "RS 6/6/2021 15:50", - "testDoesDisplayGroupDescription" : "RS 8/1/2021 12:56", - "testPrivateChatHasNoDescription" : "rgw 6/6/2022 18:11", - "testPrivateChatHasNoUserList" : "RK 8/2/2021 18:39", - "testSupergroupChatHasUserList" : "tr 7/25/2021 18:08", - "testUserListNotVisibleInChannelChatInfoPage" : "RK 8/2/2021 18:39" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json deleted file mode 100644 index 477596f1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUChatInfoPageTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md deleted file mode 100644 index 43ea4b56..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests TCUChatListItem \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st deleted file mode 100644 index 9286a235..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st +++ /dev/null @@ -1,6 +0,0 @@ -running -setUp - - self core: (TCTUMockCore newWithTeleClient: TCTMMockTdlibClient new). - self core userStore: TCTMMocks mockUserStore. - self core chatsHandler chats: (TCTMMocks mockChatsFor: self core). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st deleted file mode 100644 index 68951550..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testChatHasPhoto - - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - self wantsToTest: (TCUChatListItem newWithChat: self core chatsHandler chats first width: 500). - 0.1 seconds wait. - self assert: (self subject findByClass: ImageMorph) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st deleted file mode 100644 index 26f016db..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatIsNotPinned - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat isPinned]) first. - self core chatsHandler updateChatPosition: (TCTMMocks mockUpdateChatPositionEventForNotPinnedChatWithId: chat id). - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertNotReading: 'pinned' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st deleted file mode 100644 index 3a2f1b78..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatIsPinned - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat isPinned]) first. - self core chatsHandler updateChatPosition: (TCTMMocks mockUpdateChatPositionEventForPinnedChatWithId: chat id). - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'pinned' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st deleted file mode 100644 index 37faa611..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatLastSenderNameIsLoggedInUser - - | chat | - chat := TCTMMocks mockPrivateChatLastMessageIsLoggedInUser. - chat core: self core. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'You:' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st deleted file mode 100644 index 303b24d8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatLastSenderNameIsNotLoggedInUser - - | chat | - chat := TCTMMocks mockPrivateChat. - chat core: self core. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'Test User:' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st deleted file mode 100644 index 5f011d8b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testChatWithoutPhotoHasDefaultPhoto - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat hasPhoto]) first. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assert: (self subject findByClass: ImageMorph) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json deleted file mode 100644 index 18af45e3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "setUp" : "ek 8/5/2022 15:29", - "testChatHasPhoto" : "js 6/30/2022 16:01", - "testChatIsNotPinned" : "ek 8/5/2022 15:30", - "testChatIsPinned" : "ek 8/5/2022 15:30", - "testChatLastSenderNameIsLoggedInUser" : "ek 8/5/2022 15:31", - "testChatLastSenderNameIsNotLoggedInUser" : "ek 8/5/2022 15:31", - "testChatWithoutPhotoHasDefaultPhoto" : "ek 8/5/2022 15:31" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json deleted file mode 100644 index bc9bfe06..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "rgw 6/2/2022 16:17", - "instvars" : [ - ], - "name" : "TCTUChatListItemTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md deleted file mode 100644 index 1dd4b031..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessageList \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st deleted file mode 100644 index f9aae269..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st +++ /dev/null @@ -1,6 +0,0 @@ -running -fillWithMessages - - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'First message'). - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'Second message'). - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'Third message'). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st deleted file mode 100644 index c2e2ec41..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st +++ /dev/null @@ -1,7 +0,0 @@ -running -setUp - - super setUp. - self wantsToTest: TCUChatMessageList new. - self subject displayChat: self core chatsHandler chats first. - self fillWithMessages. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st deleted file mode 100644 index 7a005369..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testAddDateDividerAtBottom - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assertReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st deleted file mode 100644 index 9e526816..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testAddDateDividerAtTop - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addOldestMessage: newMessage. - self subject chat addOldestMessage: oldMessage. - - self assertReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st deleted file mode 100644 index 2bc5da7d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testAddingOldMessagesDoesNotScroll - - | loadedMessage secondTCUMessage currentOffset previousOffset | - - secondTCUMessage := self subject scroller submorphs second. - self subject scrollToShow: secondTCUMessage. - - loadedMessage := (TCTMMocks mockTextMessageWith: self core) text: 'Loaded Message'. - self subject addAtTop: loadedMessage. - - previousOffset := self subject vScrollBar value. - self subject scrollToShow: secondTCUMessage. - currentOffset := self subject vScrollBar value. - self assert: previousOffset equals: currentOffset. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st deleted file mode 100644 index a83e9a93..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testChatDoesNotDisplayMessagesFromOtherChats - - | newMessage otherChat | - - otherChat := self core chatsHandler chats detect: [:chat | chat id ~= self subject chat id]. - newMessage := (TCTMMocks mockMessageIn: otherChat with: self core) text: 'New message'. - self subject chat addNewestMessage: newMessage. - self assertNotReading: newMessage asText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st deleted file mode 100644 index 6565327d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDisplayedChatLoadsOldMessage - - | loadedMessage | - - loadedMessage := (TCTMMocks mockTextMessageWith: self core) text: 'Loaded message'. - self subject chat addOldestMessage: loadedMessage. - self assertReading: loadedMessage asText inMorph: self subject scroller submorphs first. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st deleted file mode 100644 index b2a8170b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDisplayedChatReceivesNewMessage - - | newMessage | - - newMessage := (TCTMMocks mockTextMessageWith: self core) text: 'New message'. - self subject chat addNewestMessage: newMessage. - self assertReading: newMessage asText inMorph: self subject scroller submorphs last. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st deleted file mode 100644 index 5391c465..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testDoNotShowDateDivider - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376462360. "14.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assertNotReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st deleted file mode 100644 index a4c2a85f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testItemsHaveMessageId - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assert: (self subject items select: [:item | (item respondsTo: #messageId) not]) isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st deleted file mode 100644 index 3aacc95d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st +++ /dev/null @@ -1,20 +0,0 @@ -testing -testScrollToReferencedMessage - - | referencedMessage referencingMessage referencedOffset | - referencedMessage := (TCTMMocks mockTextMessageWith: self core withId: 1) - text: 'Referenced Message'; - chat: self subject chat. - referencingMessage := (TCTMMocks mockTextMessageWith: self core withId: 2 replyTo: 1) - text: 'Referencing Message'; - chat: self subject chat. - self subject chat addOldestMessage: referencedMessage. - self subject chat addNewestMessage: referencingMessage. - - self subject scrollToShow: self subject scroller submorphs first. - referencedOffset := self subject vScrollBar value. - self subject scrollToNewestMessage. - - (self subject findByClass: TCUReplySnippet) click. - - self assert: referencedOffset equals: self subject vScrollBar value. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json deleted file mode 100644 index 7431347f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "fillWithMessages" : "ek 8/5/2022 15:32", - "setUp" : "js 7/31/2022 19:10", - "testAddDateDividerAtBottom" : "js 7/31/2022 17:48", - "testAddDateDividerAtTop" : "js 7/31/2022 17:48", - "testAddingOldMessagesDoesNotScroll" : "aka 7/14/2022 15:30", - "testChatDoesNotDisplayMessagesFromOtherChats" : "RS 8/1/2021 12:57", - "testDisplayedChatLoadsOldMessage" : "per 6/28/2021 16:23", - "testDisplayedChatReceivesNewMessage" : "per 6/28/2021 16:23", - "testDoNotShowDateDivider" : "js 7/31/2022 19:11", - "testItemsHaveMessageId" : "js 7/31/2022 20:15", - "testScrollToReferencedMessage" : "rgw 8/5/2022 10:53" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json deleted file mode 100644 index c7814882..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 6/26/2021 10:24", - "instvars" : [ - ], - "name" : "TCTUChatMessageListTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md deleted file mode 100644 index 681b4031..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUChatWindow \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st deleted file mode 100644 index d09e2fda..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -messageInputField - - ^ (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph readOnly not and: [textMorph isLocked not]] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st deleted file mode 100644 index ba627cbc..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -sendButton - - ^ self subject findByName: 'sendMessage' \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st deleted file mode 100644 index 0249bf53..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testSelectAndDeselectMessageToReplyTo - - | newMessage chatWindow | - - self openChatWithId: 1. - chatWindow := self subject chatWindow. - newMessage := (TCTMMocks mockTextMessageWith: self core) text: 'New message'. - chatWindow selectedChat addNewestMessage: newMessage. - - self assertNotReading: newMessage text inMorph: chatWindow inputBar. - chatWindow selectedChat selectedReplyToMessageId: newMessage id. - self assertReading: newMessage text inMorph: chatWindow inputBar. - chatWindow selectedChat selectedReplyToMessageId: newMessage id. - self assertNotReading: newMessage text inMorph: chatWindow inputBar. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st deleted file mode 100644 index 338ed73c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testSentMessageAppearsInList - - self core client onRequestType: 'sendMessage' respond: (TCTMMocks mockUpdateNewMessageJsonEventFrom: 1). - self openChatWithId: 1. - self messageInputField sendKeys: TCTMMocks mockText. - self assertReading: TCTMMocks mockText in: self subject. - self sendButton click. - 0.5 seconds wait. - self deny: (self messageInputField text contains: TCTMMocks mockText). - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json deleted file mode 100644 index aff5ecc5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "messageInputField" : "rgw 7/1/2022 11:32", - "sendButton" : "JB 7/19/2021 12:44", - "testSelectAndDeselectMessageToReplyTo" : "JS 5/22/2022 19:23", - "testSentMessageAppearsInList" : "rgw 7/1/2022 11:33" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json deleted file mode 100644 index 082a38aa..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 7/19/2021 12:42", - "instvars" : [ - ], - "name" : "TCTUChatWindowTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md deleted file mode 100644 index 0638ffba..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUChatsList diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st deleted file mode 100644 index 04f51ea2..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testChatOrderUpdatesIfPositionChanges - - | chat | - chat := self core chatsHandler chats last. - chat position: 0. "no chat has a position so this should become the first chat" - self core chatsHandler chats notify. - (self subject findByClass: TCUChatsList) step. - self assert: chat id equals: self subject chatsList items first chatId. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st deleted file mode 100644 index a09025e8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatTitleVisible - - 1 to: self core chatsHandler chats size do: [:index | - self - assertReading: (self core chatsHandler chats at: index) title - in: (self subject createWrapperFor: {self subject chatsList items at: index}). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st deleted file mode 100644 index 66f56e9c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testLastMessageVisible - - 1 to: self core chatsHandler chats size do: [:index | - self - assertReading: (self core chatsHandler chats at: index) lastMessageText - in: (self subject createWrapperFor: {self subject chatsList items at: index}). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json deleted file mode 100644 index d38fda13..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testChatOrderUpdatesIfPositionChanges" : "rgw 7/26/2022 10:24", - "testChatTitleVisible" : "JB 8/6/2021 15:52", - "testLastMessageVisible" : "aka 7/10/2022 11:13" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json deleted file mode 100644 index 09767928..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 8/6/2021 15:53", - "instvars" : [ - ], - "name" : "TCTUChatsListTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md deleted file mode 100644 index 14099f1f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUEmojiHelper \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st deleted file mode 100644 index 8b1a2300..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotBackgroundColor - - ^ Color white \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index a1a7b91f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,7 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testTextFrom - #testEmbedEmojisInto - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st deleted file mode 100644 index 21604d9f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testEmbedEmojisInto - - | text morph | - text := TCUEmojiHelper embedEmojisInto: TCTMMocks mockEmojiString. - morph := text asMorph. - - self forceSaveScreenshotOf: morph as: 'testEmbedEmojisInto' in: self class defaultTestResultPath. - self assert: 145611152 equals: (self computeHashOf: (self takeScreenshotOf: morph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st deleted file mode 100644 index bad60719..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testEmojiDoesNotExist - - self deny: (TCUEmojiHelper emojiExists: TCTMMocks mockInvalidEmoji). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st deleted file mode 100644 index deeee0dc..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testEmojiExists - - self assert: (TCUEmojiHelper emojiExists: TCTMMocks mockValidEmoji). diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st deleted file mode 100644 index f334e2e4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testEmojisArePresent - - | emojiDirectory | - - emojiDirectory := FileDirectory default directoryNamed: TCUEmojiHelper defaultFolderName. - - self assert: TCUEmojiHelper areEmojisPresent. - self assert: emojiDirectory hasFiles. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st deleted file mode 100644 index c4231c2f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFileNameFor - - self - assert: TCTMMocks mockValidEmoji - equals: (TCUEmojiHelper fileNameFor: TCTMMocks mockSingleEmojiSequence). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st deleted file mode 100644 index 21715fb5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFindFirstEmojiLength - - self - assert: TCTMMocks mockFirstEmojiLength1 - equals: (TCUEmojiHelper findFirstEmojiLengthIn: TCTMMocks mockEmojiSequence1). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st deleted file mode 100644 index fd60f270..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFormFor - - self assert: 61367704 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockValidEmoji)). - self assert: 235263786 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockInvalidEmoji)). - self assert: 235263786 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockInvalidEmoji , '-neither-does-this')). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st deleted file mode 100644 index e01a2748..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testSplitCharsAndEmojis - - self - assert: TCTMMocks mockSplitCharsAndEmojis - equals: (TCUEmojiHelper splitCharsAndEmojisIn: TCTMMocks mockEmojiString). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st deleted file mode 100644 index e5117f47..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextFrom - - | text morph | - text := TCUEmojiHelper textFrom: TCTMMocks mockEmojiSequence1. - morph := text asMorph. - - self forceSaveScreenshotOf: morph as: #testTextFrom in: self class defaultTestResultPath. - self assert: 187336834 equals: (self computeHashOf: (self takeScreenshotOf: morph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json deleted file mode 100644 index ff9e2f97..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "class" : { - "defaultScreenshotBackgroundColor" : "pk 7/4/2021 15:17" }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/10/2021 16:30", - "testEmbedEmojisInto" : "RK 7/6/2021 11:05", - "testEmojiDoesNotExist" : "pk 7/9/2021 16:18", - "testEmojiExists" : "pk 7/9/2021 16:07", - "testEmojisArePresent" : "pk 7/9/2021 16:10", - "testFileNameFor" : "pk 7/10/2021 16:31", - "testFindFirstEmojiLength" : "pk 7/10/2021 15:59", - "testFormFor" : "pk 7/9/2021 16:09", - "testSplitCharsAndEmojis" : "pk 7/10/2021 15:23", - "testTextFrom" : "pk 7/10/2021 16:30" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json deleted file mode 100644 index 5796096a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "RK 7/4/2021 15:40", - "instvars" : [ - ], - "name" : "TCTUEmojiTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md deleted file mode 100644 index 9f7222db..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessage. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index cbbade84..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,11 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testMessageShrinksCorrectly - #testTextAndPhotoScaleCorrectlyLongCaption - #testTextAndPhotoScaleCorrectlyLongUserName - #testTextAndPhotoScaleCorrectlyNoCaption - #testTextAndPhotoScaleCorrectlyShortCaption - #testMessageDisplaysEmojis - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st deleted file mode 100644 index 71a3e70c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st +++ /dev/null @@ -1,12 +0,0 @@ -testing -handleScreenShotTestFor: aPhotoMessage with: aHash usedBy: aTestsName - - | messageMorph | - - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - - aPhotoMessage core: self core. - messageMorph := TCUMessage newFrom: aPhotoMessage. - - self forceSaveScreenshotOf: messageMorph as: aTestsName in: self class defaultTestResultPath. - self assert: aHash equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st deleted file mode 100644 index bd370928..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -setUp - - super setUp. - TCTMMocks writeMockImage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st deleted file mode 100644 index 9e1804b9..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testAddMembersMessage - - | addMembersEvent addMembersMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - addMembersEvent := TCTMMocks mockMessageAddMembersFrom: {TCTMMocks mockUser1 id} to: chat id. - addMembersMessage := TCCMessage newFromMessageEvent: addMembersEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: addMembersMessage). - self assertReading: 'Added: Test User' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st deleted file mode 100644 index 4209c170..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testAddMembersMessageIsNotUserMessage - - | addMembersEvent addMembersMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - addMembersEvent := TCTMMocks mockMessageAddMembersFrom: {TCTMMocks mockUser1 id} to: chat id. - addMembersMessage := TCCMessage newFromMessageEvent: addMembersEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: addMembersMessage). - self deny: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st deleted file mode 100644 index 0799c8c4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDeleteMemberMessage - - | deleteMemberEvent deleteMemberMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - deleteMemberEvent := TCTMMocks mockMessageDeleteMemberWith: TCTMMocks mockUser1 id from: chat id. - deleteMemberMessage := TCCMessage newFromMessageEvent: deleteMemberEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: deleteMemberMessage). - self assertReading: 'Removed: Test User' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st deleted file mode 100644 index 3cfa3800..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDeleteMemberMessageIsNotUserMessage - - | deleteMemberEvent deleteMemberMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - deleteMemberEvent := TCTMMocks mockMessageDeleteMemberWith: TCTMMocks mockUser1 id from: chat id. - deleteMemberMessage := TCCMessage newFromMessageEvent: deleteMemberEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: deleteMemberMessage). - self deny: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st deleted file mode 100644 index 55ed56e6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st +++ /dev/null @@ -1,19 +0,0 @@ -testing -testMessageBetweenRequestsAnsweredMessage - - | replyMessage betweenMessage chat | - chat := self core chatsHandler chats first. - self core client onRequestType: 'getMessage' respond: (TCTMMocks mockMessageJsonFrom: chat id). - replyMessage := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - replyMessage text: 'reply message'; - id: (TCTMMocks mockMessageId + 2). - - betweenMessage := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - betweenMessage text: 'between message'; - id: (TCTMMocks mockMessageId + 1). - - chat addNewestMessage: replyMessage. - self wantsToTest: (TCUMessage newFrom: replyMessage). - 0.5 seconds wait. - self assertNotReading: 'Message not loaded' in: self subject. - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st deleted file mode 100644 index 4562218b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testMessageColorsDifferentForIncomingOutgoing - - | incomingMessage outgoingMessage | - - outgoingMessage := TCTMMocks mockTextMessageWith: self core. - incomingMessage := TCTMMocks mockTextMessageWith: self core. - - outgoingMessage isOutgoing: true. - incomingMessage isOutgoing: false. - - self deny: (TCUMessage newFrom: outgoingMessage) color = (TCUMessage newFrom: incomingMessage) color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st deleted file mode 100644 index 44f5f947..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMessageContainsDate - - | message | - - message := (TCTMMocks mockTextMessageWith: self core). - message date: message date asUTC. - - self wantsToTest: (TCUMessage newFrom: message). - self assertReading: '15:57' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st deleted file mode 100644 index bce24de3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testMessageContainsMessageSender - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockUser1 fullName in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st deleted file mode 100644 index 2452500d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testMessageContainsMessageText - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockPhotoMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockNotSupportedMessageWith: self core)). - self assertReading: TCCNotSupportedMessage infoText in: self subject. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st deleted file mode 100644 index 6cb12e79..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testMessageDisplaysEmojis - - | message messageMorph | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockEmojiString. - - messageMorph := TCUMessage newFrom: message. - - self forceSaveScreenshotOf: messageMorph as: 'testMessageDisplaysEmojis' in: self class defaultTestResultPath. - self assert: 214134281 equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st deleted file mode 100644 index 5bd6b0b6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st +++ /dev/null @@ -1,17 +0,0 @@ -testing -testMessageRequestsAnsweredMessage - - | message chat | - - chat := self core chatsHandler chats first. - self core client onRequestType: 'getMessage' respond: (TCTMMocks mockMessageJsonFrom: chat id). - - message := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - message text: 'reply message'; - id: (TCTMMocks mockMessageId + 1). - chat addNewestMessage: message. - - self wantsToTest: (TCUMessage newFrom: message). - 0.5 seconds wait. - self assertNotReading: 'Message not loaded' in: self subject. - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st deleted file mode 100644 index 029edab1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMessageShrinksCorrectly - - | message messageMorph | - - message := TCTMMocks mockTextMessageWith: self core. - messageMorph := TCUMessage newFrom: message. - - self forceSaveScreenshotOf: messageMorph as: 'testMessageShrinksCorrectly' in: self class defaultTestResultPath. - self assert: 129344219 equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st deleted file mode 100644 index b3649ce0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMouseDownOnMessage - - | message messageMorph | - - message := TCTMMocks mockTextMessageWith: self core. - messageMorph := TCUMessage newFrom: message. - messageMorph mouseDown: EventMorph new. - - self assert: message chat selectedReplyToMessageId = messageMorph messageModel id. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st deleted file mode 100644 index 682f9659..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyLongCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: 'This is a very very very very veeeeeeeeeeery long caption with many irregularly sized words. It even consists of two sentences and definitely bothers the Linter.'. - - self handleScreenShotTestFor: photoMessage with: 45364912 usedBy: 'testTextAndPhotoScaleCorrectly_longCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st deleted file mode 100644 index 8dc0abca..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyLongUserName - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage userId: TCTMMocks mockUser2 id. - - self handleScreenShotTestFor: photoMessage with: 127316392 usedBy: 'testTextAndPhotoScaleCorrectly_longUserName'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st deleted file mode 100644 index 6d2fd44f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyNoCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: ''. - - self handleScreenShotTestFor: photoMessage with: 2254673 usedBy: 'testTextAndPhotoScaleCorrectly_noCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st deleted file mode 100644 index 461a40f2..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyShortCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: 'vry shrt'. - - self handleScreenShotTestFor: photoMessage with: 76064036 usedBy: 'testTextAndPhotoScaleCorrectly_shortCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st deleted file mode 100644 index 71403b31..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextMessageIsUserMessage - - | message | - - message := (TCTMMocks mockTextMessageWith: self core). - - self wantsToTest: (TCUMessage newFrom: message). - self assert: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json deleted file mode 100644 index 1a784bfb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/6/2021 12:25", - "handleScreenShotTestFor:with:usedBy:" : "RK 6/26/2021 10:15", - "setUp" : "rgw 6/6/2022 18:42", - "testAddMembersMessage" : "ek 8/5/2022 15:37", - "testAddMembersMessageIsNotUserMessage" : "ek 8/5/2022 15:38", - "testDeleteMemberMessage" : "ek 8/5/2022 15:38", - "testDeleteMemberMessageIsNotUserMessage" : "ek 8/5/2022 15:38", - "testMessageBetweenRequestsAnsweredMessage" : "ek 8/5/2022 15:40", - "testMessageColorsDifferentForIncomingOutgoing" : "tom.richter 6/26/2021 17:23", - "testMessageContainsDate" : "tom.richter 6/26/2021 17:23", - "testMessageContainsMessageSender" : "tom.richter 6/26/2021 17:23", - "testMessageContainsMessageText" : "rgw 6/6/2022 18:41", - "testMessageDisplaysEmojis" : "RK 7/6/2021 11:04", - "testMessageRequestsAnsweredMessage" : "ek 8/5/2022 15:43", - "testMessageShrinksCorrectly" : "tom.richter 6/26/2021 21:04", - "testMouseDownOnMessage" : "JS 5/22/2022 18:54", - "testTextAndPhotoScaleCorrectlyLongCaption" : "rgw 8/5/2022 10:33", - "testTextAndPhotoScaleCorrectlyLongUserName" : "rgw 8/5/2022 10:34", - "testTextAndPhotoScaleCorrectlyNoCaption" : "rgw 8/5/2022 10:34", - "testTextAndPhotoScaleCorrectlyShortCaption" : "rgw 8/5/2022 10:34", - "testTextMessageIsUserMessage" : "ek 8/5/2022 15:44" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json deleted file mode 100644 index 21071fda..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 6/7/2021 09:37", - "instvars" : [ - ], - "name" : "TCTUMessageTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md deleted file mode 100644 index d5a656b7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessageWrapper. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st deleted file mode 100644 index d041bb86..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testDayDividerMessageIdInvalid - - | date message | - date := (DateAndTime fromUnixTime: 1376462359) asDate. "14.8.13" - message := TCUDayDividerMessage newFromDate: date. - self wantsToTest: (TCUDayDividerMessageWrapper newFromMessage: message withWidth: 500). - - self assert: self subject messageId < 0. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st deleted file mode 100644 index 05695963..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testGroupMessageContainsPhoto - - | message | - message := TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core inChat: TCTMMocks mockBasicGroupChat). - self wantsToTest: (TCUUserMessageWrapper newFromMessage: message withWidth: 500). - 0.1 seconds wait. - self assert: (self subject morphs first submorphs anySatisfy: [:aMorph | aMorph isImageMorph]). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json deleted file mode 100644 index 32383070..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testDayDividerMessageIdInvalid" : "js 7/31/2022 20:37", - "testGroupMessageContainsPhoto" : "ek 8/5/2022 15:46" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json deleted file mode 100644 index 773f8a0b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JS 6/11/2022 11:48", - "instvars" : [ - ], - "name" : "TCTUMessageWrapperTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md deleted file mode 100644 index 02ccbedf..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -These tests should be recategorized. diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st deleted file mode 100644 index 2b3b98d1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testChatMemberCount - - ((self subject findByClass: TCUChatListItem)morphs) do: [ - :chatListItem | | chatWindowWrapper | - chatWindowWrapper := self subject findByClass: TCUChatWindow. - (MTFMorphWrapper newWith: {chatListItem}) click. - 0.1 seconds wait. - chatListItem chat isPrivate - ifTrue: [ - self assertNotReading: 'Members: ' in: chatWindowWrapper. - ] ifFalse: [ - self assertReading: ('Members: ', chatListItem chat memberCount asString) in: chatWindowWrapper. - ] - ] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st deleted file mode 100644 index 4ff3b56f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testSelectedChatIsHighlighted - - self assert: (self subject chatsList items allSatisfy: [:item | item color = Color white]). - self openChatWithId: 1. - self deny: (self subject chatsList items detect: [:item | item chatId = 1]) color = Color white. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json deleted file mode 100644 index 264dfc5c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testChatMemberCount" : "TR 6/13/2021 14:41", - "testSelectedChatIsHighlighted" : "JB 7/18/2021 13:32" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json deleted file mode 100644 index b2288408..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/2/2021 15:34", - "instvars" : [ - ], - "name" : "TCTUMiscellaneousTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md deleted file mode 100644 index b4de30bb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUModal. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st deleted file mode 100644 index 6cfc4af8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDifferentTypesHaveDifferentColors - - | errorModal informationModal | - - informationModal := TCUModal newWithText: 'Test Modal' type: 'information'. - errorModal := TCUModal newWithText: 'Test Modal' type: 'error'. - self deny: informationModal color = errorModal color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st deleted file mode 100644 index 7009571e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testShowsText - - self wantsToTest: (TCUModal newWithText: 'Test Modal' type: 'information'). - self assertReading: 'Test Modal' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json deleted file mode 100644 index d2aeff3e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testDifferentTypesHaveDifferentColors" : "JB 6/7/2021 12:20", - "testShowsText" : "JB 6/7/2021 12:18" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json deleted file mode 100644 index c05ae034..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUModalTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md deleted file mode 100644 index 1ae06ab4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUNotification. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index 0940dc20..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,7 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testNotificationDisplaysEmojis - #testNotificationClipsLongMessage - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st deleted file mode 100644 index ce0f698f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testMutedNotificationNotVisible - - | message | - message := TCTMMocks mockTextMessageWith: self core. - message chat: TCTMMocks mockMutedPrivateChat. - TCUMainWindow basicNew newMessageReceived: message. - self deny: ((Project current world submorphOfClass: TCUNotification) notNil). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st deleted file mode 100644 index 0faa816f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testNotificationClipsLongMessage - - | message notification | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockLongText. - - notification := TCUNotification newWithMessage: message. - - self forceSaveScreenshotOf: notification as: 'testNotificationClipsLongMessage' in: self class defaultTestResultPath. - self assert: 88799637 equals: (self computeHashOf: (self takeScreenshotOf: notification)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st deleted file mode 100644 index a9ab6356..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testNotificationConstructor - - | chat message notification | - - chat := TCTMMocks mockPrivateChat. - message := TCCTextMessage new - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id; - text: 'm'. - notification := TCUNotification newWithMessage: message. - - self assert: chat equals: notification chat. - self assert: message equals: notification messageModel. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st deleted file mode 100644 index 0a82329a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testNotificationContainsMessage - - self wantsToTest: (TCUNotification newWithMessage: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st deleted file mode 100644 index 4fa31488..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testNotificationContainsSender - - self wantsToTest: (TCUNotification newWithMessage: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockUser1 fullName in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st deleted file mode 100644 index 6b3174a7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testNotificationDisplaysEmojis - - | message notification | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockEmojiString. - - notification := TCUNotification newWithMessage: message. - - self forceSaveScreenshotOf: notification as: 'testNotificationDisplaysEmojis' in: self class defaultTestResultPath. - self assert: 249874410 equals: (self computeHashOf: (self takeScreenshotOf: notification)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st deleted file mode 100644 index 41153e2d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testNotificationHidesPrivateChatTitle - - | chat message | - - chat := TCTMMocks mockPrivateChat. - message := TCCTextMessage new - text: 'test'; - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id. - - self wantsToTest: (TCUNotification newWithMessage: message). - self assertNotReading: TCTMMocks mockPrivateChat title in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st deleted file mode 100644 index 47c2110b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testNotificationShowsGroupChatTitle - - | chat message | - - chat := TCTMMocks mockBasicGroupChat. - message := TCCTextMessage new - text: 'test'; - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id. - - self wantsToTest: (TCUNotification newWithMessage: message). - self assertReading: TCTMMocks mockBasicGroupChat title in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st deleted file mode 100644 index a2778f5a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testUnmutedNotificationVisible - - | message | - message := TCTMMocks mockTextMessageWith: self core. - message chat: TCTMMocks mockPrivateChat. - TCUMainWindow basicNew newMessageReceived: message. - 1 seconds wait. - self assert: ((Project current world submorphOfClass: TCUNotification) notNil). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json deleted file mode 100644 index 62df2f6f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/17/2021 12:33", - "testMutedNotificationNotVisible" : "tom.richter 6/26/2021 17:22", - "testNotificationClipsLongMessage" : "pk 7/17/2021 12:21", - "testNotificationConstructor" : "pk 8/5/2021 16:06", - "testNotificationContainsMessage" : "tom.richter 6/26/2021 17:22", - "testNotificationContainsSender" : "tom.richter 6/26/2021 17:21", - "testNotificationDisplaysEmojis" : "pk 7/17/2021 12:06", - "testNotificationHidesPrivateChatTitle" : "TR 6/22/2021 09:53", - "testNotificationShowsGroupChatTitle" : "TR 6/22/2021 09:54", - "testUnmutedNotificationVisible" : "tom.richter 6/26/2021 17:19" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json deleted file mode 100644 index bfcadf27..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/2/2021 15:33", - "instvars" : [ - ], - "name" : "TCTUNotificationTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md deleted file mode 100644 index 0bd58e79..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Provides helper methods for testing UI features diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st deleted file mode 100644 index 0b52ad8e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultExtent - - ^ 1200 @ 800 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st deleted file mode 100644 index 16a0c050..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotBackgroundColor - - ^ Color black \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st deleted file mode 100644 index f244f8eb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotDepth - - ^ 32 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st deleted file mode 100644 index 1b532838..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultTestResultPath - - ^ 'telegramTestResults' \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st deleted file mode 100644 index c055c298..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertNotReading: aString in: aMorphWrapper - - self assert: (self findByTextContent: aString in: aMorphWrapper) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st deleted file mode 100644 index b3b86e86..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertNotReading: aString inMorph: aMorph - - self assertNotReading: aString in: (MTFMorphWrapper newWith: {aMorph}). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st deleted file mode 100644 index fa0c656e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertReading: aString in: aMorphWrapper - - self assert: (self findByTextContent: aString in: aMorphWrapper) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st deleted file mode 100644 index 8b13d48e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertReading: aString inMorph: aMorph - - self assertReading: aString in: (MTFMorphWrapper newWith: {aMorph}). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st deleted file mode 100644 index aeaf0d6c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st +++ /dev/null @@ -1,4 +0,0 @@ -image handling -computeHashOf: aForm - - ^ aForm bits asByteArray hash \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st deleted file mode 100644 index bd19251b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -core: aCore - - core := aCore \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st deleted file mode 100644 index 7652dd8d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -core - - ^ core \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st deleted file mode 100644 index b2403e94..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -defaultTimeout - - ^ 30 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st deleted file mode 100644 index 0d3cba20..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st +++ /dev/null @@ -1,5 +0,0 @@ -navigating -findByTextContent: aString in: aMorphWrapper - - ^ aMorphWrapper findByCriteria: [ :morph | - (morph respondsTo: #text) and: [morph text asString includesSubstring: aString]] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st deleted file mode 100644 index 8020ff1e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st +++ /dev/null @@ -1,10 +0,0 @@ -image handling -forceSaveScreenshotOf: aMorph as: aFileName in: aDirName - - | imageForm directory | - imageForm := self takeScreenshotOf: aMorph. - directory := FileDirectory default directoryNamed: aDirName. - directory assureExistence. - - directory deleteFileNamed: aFileName , '.png'. - imageForm writePNGfileNamed: (directory fullNameFor: aFileName , '.png'). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st deleted file mode 100644 index 364d2333..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st +++ /dev/null @@ -1,4 +0,0 @@ -navigating -openAnyChat - - (self subject findByClass: TCUChatListItem) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st deleted file mode 100644 index 1584a1bf..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st +++ /dev/null @@ -1,4 +0,0 @@ -navigating -openChatWithId: anId - - (self subject findByCriteria: [ :morph | (morph respondsTo: #chatId) and: [morph chatId = anId]]) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st deleted file mode 100644 index e48a606f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st +++ /dev/null @@ -1,10 +0,0 @@ -running -setUp - - self core: (TCTUMockCore newWithTeleClient: TCTMMockTdlibClient new). - self core userStore: TCTMMocks mockUserStore. - self core chatsHandler chats: (TCTMMocks mockChatsFor: self core). - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - TCUEmojiHelper ensureEmojisArePresent. - self wantsToTest: (TCUMainWindow newWithCore: self core). - (self subject findByClass: TCUChatsList) step. diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st deleted file mode 100644 index 8a19b860..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st +++ /dev/null @@ -1,4 +0,0 @@ -image handling -takeScreenshotOf: aMorph - - ^ aMorph imageForm: self class defaultScreenshotDepth backgroundColor: self class defaultScreenshotBackgroundColor forRectangle: aMorph bounds \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st deleted file mode 100644 index aa224182..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st +++ /dev/null @@ -1,5 +0,0 @@ -running -tearDown - - self deleteMorphs. - self core freeClient. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st deleted file mode 100644 index 380c1a7d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st +++ /dev/null @@ -1,4 +0,0 @@ -utility -waitUntil: aBlock - - aBlock whileFalse: [1 seconds wait]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json deleted file mode 100644 index f78f2edd..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "class" : { - "defaultExtent" : "JB 5/24/2021 16:54", - "defaultScreenshotBackgroundColor" : "JB 5/24/2021 16:21", - "defaultScreenshotDepth" : "JB 5/24/2021 16:20", - "defaultTestResultPath" : "RS 5/23/2021 17:12" }, - "instance" : { - "assertNotReading:in:" : "RS 5/31/2021 07:54", - "assertNotReading:inMorph:" : "JS 5/22/2022 19:17", - "assertReading:in:" : "TR 6/9/2021 14:55", - "assertReading:inMorph:" : "JB 6/26/2021 10:02", - "computeHashOf:" : "RS 5/23/2021 16:19", - "core" : "TR 6/2/2021 15:09", - "core:" : "TR 6/2/2021 15:10", - "defaultTimeout" : "RK 7/4/2021 13:55", - "findByTextContent:in:" : "RS 5/31/2021 07:55", - "forceSaveScreenshotOf:as:in:" : "RS 5/26/2021 13:29", - "openAnyChat" : "JB 7/18/2021 12:22", - "openChatWithId:" : "JB 7/18/2021 12:57", - "setUp" : "ek 8/5/2022 15:47", - "takeScreenshotOf:" : "JB 5/24/2021 16:21", - "tearDown" : "RS 6/25/2021 12:38", - "waitUntil:" : "RS 6/6/2021 13:00" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json deleted file mode 100644 index e88a96d0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - "Screenshots" ], - "commentStamp" : "RK 5/18/2021 11:36", - "instvars" : [ - "core" ], - "name" : "TCTUTestCase", - "pools" : [ - ], - "super" : "MTFTestCase", - "type" : "normal" } From ec9891705e90af84e3848c0f36f37fa59827b08c Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sat, 22 Jun 2024 13:40:38 +0200 Subject: [PATCH 07/17] refactored Image/Sticker/VideoStore and deleted some dead code in TCUStickerWindow --- .../TCCImageStore.class/methodProperties.json | 10 ++-------- .../TCCStickerStore.class/methodProperties.json | 8 +------- .../TCCVideoStore.class/methodProperties.json | 5 +---- .../TCUStickerWindow.class/methodProperties.json | 8 +++----- .../instance/testChatCorrectlyConstructedFromJson.st | 2 +- .../TCTCChatTests.class/methodProperties.json | 2 +- .../TCTMMocks.class/class/mockChatEvent.st | 2 +- .../TCTMMocks.class/methodProperties.json | 2 +- 8 files changed, 11 insertions(+), 28 deletions(-) diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 825b3aaf..0e4a6622 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,11 +1,5 @@ { "class" : { - "extractPathFrom:" : " 6/21/2024 14:11:19", - "imageFormFrom:" : " 6/21/2024 14:11:19", - "newWith:" : " 6/21/2024 14:11:19" }, + }, "instance" : { - "core" : " 6/21/2024 14:11:19", - "core:" : " 6/21/2024 14:11:19", - "getFormFor:" : " 6/21/2024 14:11:19", - "getFormPromiseFor:" : " 6/21/2024 14:11:19", - "requestImageFor:with:" : " 6/21/2024 14:11:19" } } + } } diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index f4c73fa8..e44c644b 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,15 +1,9 @@ { "class" : { - "extractPathFrom:" : " 6/21/2024 14:11:19", "imageFormFrom:" : "JK 6/21/2024 13:46", - "newWith:" : "JK 6/20/2024 22:18", - "stickerFormFrom:" : " 6/21/2024 14:11:19" }, + "newWith:" : "JK 6/20/2024 22:18" }, "instance" : { - "core" : " 6/21/2024 14:11:19", - "core:" : " 6/21/2024 14:11:19", "downloadStickerSet:" : "JK 6/19/2024 11:33", - "getFormFor:" : " 6/21/2024 14:11:19", - "getFormPromiseFor:" : " 6/21/2024 14:11:19", "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index 85d28b40..8085d52e 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,9 +1,6 @@ { "class" : { - "extractPathFrom:" : " 6/21/2024 14:11:19", - "imageFormFrom:" : " 6/21/2024 14:11:19" }, + }, "instance" : { - "getFormFor:" : " 6/21/2024 14:11:19", - "getFormPromiseFor:" : " 6/21/2024 14:11:19", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json index 4c80aa87..104863d3 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json @@ -8,14 +8,12 @@ "buildStickerListItems" : "JK 6/19/2024 11:27", "buildStickerListItemsFor:" : "JK 6/21/2024 14:07", "close" : "JK 5/29/2024 20:09", - "collectInstalledStickers" : " 6/21/2024 14:11:19", - "convertWebp:" : " 6/21/2024 14:11:19", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", - "downloadStickerSetFrom:" : "6/20/2024 11:30:00", + "downloadStickerSetFrom:" : " 6/20/2024 11:30:00", "initialize" : "JK 6/20/2024 23:42", - "loadStickers" : "6/20/2024 11:30:00", - "loadStickersFromStore" : "6/20/2024 11:30:00", + "loadStickers" : " 6/20/2024 11:30:00", + "loadStickersFromStore" : " 6/20/2024 11:30:00", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", "selectedSet" : "JK 6/20/2024 11:39", diff --git a/packages/TelegramClientTests-Core.package/TCTCChatTests.class/instance/testChatCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCChatTests.class/instance/testChatCorrectlyConstructedFromJson.st index 1eb6f985..e6446e2a 100644 --- a/packages/TelegramClientTests-Core.package/TCTCChatTests.class/instance/testChatCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCChatTests.class/instance/testChatCorrectlyConstructedFromJson.st @@ -2,7 +2,7 @@ testing testChatCorrectlyConstructedFromJson | mockChat | - + mockChat := TCCChat newFromChatEvent: (TCTMMocks mockChatEvent at: 'chat'). self assert: 'MockChat' equals: mockChat title. diff --git a/packages/TelegramClientTests-Core.package/TCTCChatTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCChatTests.class/methodProperties.json index 484f07d4..afce88d3 100644 --- a/packages/TelegramClientTests-Core.package/TCTCChatTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCChatTests.class/methodProperties.json @@ -8,7 +8,7 @@ "testAddMessage" : "rgw 8/5/2022 09:47", "testAddNewestMessage" : "aka 7/10/2022 12:30", "testAddOldestMessage" : "aka 7/10/2022 12:31", - "testChatCorrectlyConstructedFromJson" : "js 6/18/2022 10:46", + "testChatCorrectlyConstructedFromJson" : "JK 6/21/2024 15:23", "testChatNoPhotoCorrectlyConstructedFromJson" : "rgw 6/2/2022 16:17", "testGetMessageById" : "rgw 8/5/2022 09:41", "testHandleMessageRequest" : "aka 6/15/2022 11:54", diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockChatEvent.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockChatEvent.st index 4e6fd605..0872227e 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockChatEvent.st +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockChatEvent.st @@ -20,7 +20,7 @@ mockChatEvent }). 'photo' -> (JsonObject newFrom: { '@type' -> 'chatPhotoInfo'. - 'small' -> (JsonObject newFrom: { + 'big' -> (JsonObject newFrom: { '@type' -> 'file'. 'id' -> self mockImageId }). diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json index d3ef0c57..54aef707 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json @@ -3,7 +3,7 @@ "mockBasicGroupChat" : "rgw 6/2/2022 12:06", "mockBasicGroupFullInfoJson" : "per 6/10/2021 19:41", "mockChannelSupergroupChat" : "rgw 6/2/2022 12:07", - "mockChatEvent" : "rgw 6/2/2022 15:45", + "mockChatEvent" : "JK 6/21/2024 15:22", "mockChatEventMutedFor:" : "rgw 6/2/2022 11:48", "mockChatEventNoPhoto" : "rgw 6/2/2022 15:23", "mockChatHistoryJsonContainingMessageId:inChat:" : "aka 6/15/2022 11:49", From 161b1d9dc7f4c1d49f328256396078a869849e33 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 12:06:02 +0200 Subject: [PATCH 08/17] added Construction and Identification tests for video, sticker and document messages --- .../methodProperties.json | 2 +- .../methodProperties.json | 2 +- .../TCCImageStore.class/methodProperties.json | 16 ++++----- .../methodProperties.json | 2 +- .../methodProperties.json | 12 +++---- .../methodProperties.json | 2 +- .../TCCVideoStore.class/methodProperties.json | 8 ++--- ...ckerMessageCorrectlyConstructedFromJson.st | 10 ++++++ ...edStickerMessageTypeIdentifiedCorrectly.st | 10 ++++++ ...mentMessageCorrectlyConstructedFromJson.st | 10 ++++++ ...tDocumentMessageTypeIdentifiedCorrectly.st | 10 ++++++ ...ickerMessageCorrectlyContructedFromJson.st | 12 +++++++ ...icStickerMessageTypeIdentifiedCorrectly.st | 10 ++++++ ...ideoMessageCorrectlyConstructedFromJson.st | 15 ++++++++ ...testVideoMessageTypeIdentifiedCorrectly.st | 10 ++++++ .../methodProperties.json | 12 +++++-- .../mockAnimatedStickerMessageJsonFrom..st | 27 ++++++++++++++ .../class/mockDocumentFileName.st | 4 +++ .../class/mockDocumentMessageJsonFrom..st | 31 ++++++++++++++++ .../mockStaticStickerMessageJsonFrom..st | 26 ++++++++++++++ .../class/mockStickerHeight.st | 4 +++ .../TCTMMocks.class/class/mockStickerId.st | 4 +++ .../TCTMMocks.class/class/mockStickerWidth.st | 4 +++ .../TCTMMocks.class/class/mockVideoHeight.st | 4 +++ .../TCTMMocks.class/class/mockVideoId.st | 4 +++ .../class/mockVideoMessageJsonFrom..st | 35 +++++++++++++++++++ .../TCTMMocks.class/class/mockVideoWidth.st | 4 +++ .../TCTMMocks.class/methodProperties.json | 11 ++++++ 28 files changed, 277 insertions(+), 24 deletions(-) create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageTypeIdentifiedCorrectly.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageTypeIdentifiedCorrectly.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageTypeIdentifiedCorrectly.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageTypeIdentifiedCorrectly.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockAnimatedStickerMessageJsonFrom..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentFileName.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentMessageJsonFrom..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStaticStickerMessageJsonFrom..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerHeight.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerWidth.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoHeight.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoId.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoMessageJsonFrom..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoWidth.st diff --git a/packages/TelegramClient-Core.package/TCCAnimatedStickerMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCAnimatedStickerMessage.class/methodProperties.json index 94ac2e20..5e689158 100644 --- a/packages/TelegramClient-Core.package/TCCAnimatedStickerMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCAnimatedStickerMessage.class/methodProperties.json @@ -1,6 +1,6 @@ { "class" : { - "newFrom:" : "JK 5/31/2024 11:40" }, + "newFrom:" : "JK 6/23/2024 11:47" }, "instance" : { "asSnippet" : "RK 6/26/2021 11:37", "asText" : "rgw 5/12/2022 14:28", diff --git a/packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json index c8fa7ac3..d7c6e18f 100644 --- a/packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json @@ -1,6 +1,6 @@ { "class" : { - "newFrom:" : "AH 6/21/2024 14:02" }, + "newFrom:" : "JK 6/23/2024 11:52" }, "instance" : { "asSnippet" : "AH 6/21/2024 13:54", "asText" : "AH 6/21/2024 13:54", diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 1c76e329..62838e4e 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,11 +1,11 @@ { "class" : { - "extractPathFrom:" : " 6/22/2024 13:42:57", - "imageFormFrom:" : " 6/22/2024 13:42:57", - "newWith:" : " 6/22/2024 13:42:57" }, + "extractPathFrom:" : "6/22/2024 13:42:57", + "imageFormFrom:" : "6/22/2024 13:42:57", + "newWith:" : "6/22/2024 13:42:57" }, "instance" : { - "core" : " 6/22/2024 13:42:57", - "core:" : " 6/22/2024 13:42:57", - "getFormFor:" : " 6/22/2024 13:42:57", - "getFormPromiseFor:" : " 6/22/2024 13:42:57", - "requestImageFor:with:" : " 6/22/2024 13:42:57" } } + "core" : "6/22/2024 13:42:57", + "core:" : "6/22/2024 13:42:57", + "getFormFor:" : "6/22/2024 13:42:57", + "getFormPromiseFor:" : "6/22/2024 13:42:57", + "requestImageFor:with:" : "6/22/2024 13:42:57" } } diff --git a/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json index ed660cbb..cce0f495 100644 --- a/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json @@ -1,7 +1,7 @@ { "class" : { "newAnimatedStickerFrom:" : "JK 5/31/2024 11:36", - "newFrom:" : "JK 5/31/2024 11:11" }, + "newFrom:" : "JK 6/23/2024 11:39" }, "instance" : { "asSnippet" : "JK 5/16/2024 16:00", "asText" : "JK 5/16/2024 16:00", diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index 0d0a00e3..73ccc8df 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,15 +1,15 @@ { "class" : { - "extractPathFrom:" : " 6/22/2024 13:42:57", + "extractPathFrom:" : "6/22/2024 13:42:57", "imageFormFrom:" : "JK 6/21/2024 13:46", "newWith:" : "JK 6/20/2024 22:18", - "stickerFormFrom:" : " 6/22/2024 13:42:57" }, + "stickerFormFrom:" : "6/22/2024 13:42:57" }, "instance" : { - "core" : " 6/22/2024 13:42:57", - "core:" : " 6/22/2024 13:42:57", + "core" : "6/22/2024 13:42:57", + "core:" : "6/22/2024 13:42:57", "downloadStickerSet:" : "JK 6/19/2024 11:33", - "getFormFor:" : " 6/22/2024 13:42:57", - "getFormPromiseFor:" : " 6/22/2024 13:42:57", + "getFormFor:" : "6/22/2024 13:42:57", + "getFormPromiseFor:" : "6/22/2024 13:42:57", "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", diff --git a/packages/TelegramClient-Core.package/TCCVideoMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoMessage.class/methodProperties.json index 97f21586..76822336 100644 --- a/packages/TelegramClient-Core.package/TCCVideoMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoMessage.class/methodProperties.json @@ -1,6 +1,6 @@ { "class" : { - "newFrom:" : "JK 6/12/2024 11:28" }, + "newFrom:" : "JK 6/23/2024 11:14" }, "instance" : { "asSnippet" : "JK 6/12/2024 11:31", "asText" : "TR 6/20/2021 10:41", diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index 8e21d628..f000adb9 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,9 +1,9 @@ { "class" : { - "extractPathFrom:" : " 6/22/2024 13:42:57", - "imageFormFrom:" : " 6/22/2024 13:42:57" }, + "extractPathFrom:" : "6/22/2024 13:42:57", + "imageFormFrom:" : "6/22/2024 13:42:57" }, "instance" : { - "getFormFor:" : " 6/22/2024 13:42:57", - "getFormPromiseFor:" : " 6/22/2024 13:42:57", + "getFormFor:" : "6/22/2024 13:42:57", + "getFormPromiseFor:" : "6/22/2024 13:42:57", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st new file mode 100644 index 00000000..258d481a --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st @@ -0,0 +1,10 @@ +testing +testAnimatedStickerMessageCorrectlyConstructedFromJson + + | stickerMessageEvent chat stickerMessage | + + chat := TCTMMocks mockPrivateChat. + stickerMessageEvent := TCTMMocks mockAnimatedStickerMessageJsonFrom: chat id. + stickerMessage := TCCMessage newFromMessageEvent: stickerMessageEvent in: chat with: self core. + + self assert: TCTMMocks mockValidEmoji equals: stickerMessage text. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageTypeIdentifiedCorrectly.st new file mode 100644 index 00000000..ab40c68d --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageTypeIdentifiedCorrectly.st @@ -0,0 +1,10 @@ +testing +testAnimatedStickerMessageTypeIdentifiedCorrectly + + | stickerMessageEvent chat stickerMessage | + + chat := TCTMMocks mockPrivateChat. + stickerMessageEvent := TCTMMocks mockAnimatedStickerMessageJsonFrom: chat id. + stickerMessage := TCCMessage newFromMessageEvent: stickerMessageEvent in: chat with: self core. + + self assert: TCCAnimatedStickerMessage equals: stickerMessage class. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st new file mode 100644 index 00000000..d6cc108b --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st @@ -0,0 +1,10 @@ +testing +testDocumentMessageCorrectlyConstructedFromJson + + | documentMessageEvent chat documentMessage | + + chat := TCTMMocks mockPrivateChat. + documentMessageEvent := TCTMMocks mockDocumentMessageJsonFrom: chat id. + documentMessage := TCCMessage newFromMessageEvent: documentMessageEvent in: chat with: self core. + + self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageTypeIdentifiedCorrectly.st new file mode 100644 index 00000000..2bb53d97 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageTypeIdentifiedCorrectly.st @@ -0,0 +1,10 @@ +testing +testDocumentMessageTypeIdentifiedCorrectly + + | documentMessageEvent chat documentMessage | + + chat := TCTMMocks mockPrivateChat. + documentMessageEvent := TCTMMocks mockDocumentMessageJsonFrom: chat id. + documentMessage := TCCMessage newFromMessageEvent: documentMessageEvent in: chat with: self core. + + self assert: TCCDocumentMessage equals: documentMessage class. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st new file mode 100644 index 00000000..dd056198 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st @@ -0,0 +1,12 @@ +testing +testStaticStickerMessageCorrectlyContructedFromJson + + | stickerMessageEvent chat stickerMessage | + + chat := TCTMMocks mockPrivateChat. + stickerMessageEvent := TCTMMocks mockStaticStickerMessageJsonFrom: chat id. + stickerMessage := TCCMessage newFromMessageEvent: stickerMessageEvent in: chat with: self core. + + self assert: TCTMMocks mockStickerId equals: stickerMessage stickerId. + self assert: TCTMMocks mockStickerWidth equals: stickerMessage width. + self assert: TCTMMocks mockStickerHeight equals: stickerMessage height. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageTypeIdentifiedCorrectly.st new file mode 100644 index 00000000..9a2dc036 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageTypeIdentifiedCorrectly.st @@ -0,0 +1,10 @@ +testing +testStaticStickerMessageTypeIdentifiedCorrectly + + | stickerMessageEvent chat stickerMessage | + + chat := TCTMMocks mockPrivateChat. + stickerMessageEvent := TCTMMocks mockStaticStickerMessageJsonFrom: chat id. + stickerMessage := TCCMessage newFromMessageEvent: stickerMessageEvent in: chat with: self core. + + self assert: TCCStickerMessage equals: stickerMessage class. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st new file mode 100644 index 00000000..c65831a2 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st @@ -0,0 +1,15 @@ +testing +testVideoMessageCorrectlyConstructedFromJson + + | videoMessageEvent chat videoMessage | + + chat := TCTMMocks mockPrivateChat. + videoMessageEvent := TCTMMocks mockVideoMessageJsonFrom: chat id. + videoMessage := TCCMessage newFromMessageEvent: videoMessageEvent in: chat with: self core. + + self assert: TCTMMocks mockText equals: videoMessage caption. + self assert: videoMessage hasCaption. + self assert: TCTMMocks mockImageId equals: videoMessage thumbnailId. + self assert: TCTMMocks mockPhotoHeight equals: videoMessage height. + self assert: TCTMMocks mockPhotoWidth equals: videoMessage width. + self assert: TCTMMocks mockVideoId equals: videoMessage videoId. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageTypeIdentifiedCorrectly.st new file mode 100644 index 00000000..0c8136c7 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageTypeIdentifiedCorrectly.st @@ -0,0 +1,10 @@ +testing +testVideoMessageTypeIdentifiedCorrectly + + | videoMessageEvent chat videoMessage | + + chat := TCTMMocks mockPrivateChat. + videoMessageEvent := TCTMMocks mockVideoMessageJsonFrom: chat id. + videoMessage := TCCMessage newFromMessageEvent: videoMessageEvent in: chat with: self core. + + self assert: TCCVideoMessage equals: videoMessage class. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index d01d14f7..16572765 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -2,6 +2,10 @@ "class" : { }, "instance" : { + "testAnimatedStickerMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 11:49", + "testAnimatedStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:45", + "testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 12:01", + "testDocumentMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:55", "testMessageAddMembersCorrectlyConstructedFromJson" : "ek 8/5/2022 15:07", "testMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:28", "testMessageDeleteMemberCorrectlyConstructedFromJson" : "ek 8/5/2022 15:08", @@ -14,8 +18,12 @@ "testMessageWithMessageSenderChatCorrectlyConstructedFromJson" : "js 7/31/2022 10:29", "testNotSupportedMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:29", "testPhotoMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:29", - "testPhotoMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:29", + "testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26", "testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36", "testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13", + "testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 11:43", + "testStaticStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:30", "testTextMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:30", - "testTextMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:30" } } + "testTextMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:30", + "testVideoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 11:12", + "testVideoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:24" } } diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockAnimatedStickerMessageJsonFrom..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockAnimatedStickerMessageJsonFrom..st new file mode 100644 index 00000000..10593a0e --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockAnimatedStickerMessageJsonFrom..st @@ -0,0 +1,27 @@ +message - json +mockAnimatedStickerMessageJsonFrom: aChatId + "@linter-ignore" + + ^ (JsonObject newFrom: { + '@type' -> 'message'. + 'id' -> self mockMessageId. + 'chat_id' -> aChatId. + 'sender_id' -> (JsonObject newFrom: { + '@type' -> 'messageSenderUser'. + 'user_id' -> self mockUser1 id + }). + 'content' -> (JsonObject newFrom: { + '@type' -> 'messageSticker'. + 'sticker' -> (JsonObject newFrom: { + 'is_animated' -> true. + 'height' -> self mockStickerHeight. + 'width' -> self mockStickerWidth. + 'sticker' -> (JsonObject newFrom: { + 'id' -> self mockStickerId + }). + 'emoji' -> self mockValidEmoji + }). + }). + 'is_outgoing' -> false. + 'date' -> self mockMessageTimestamp + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentFileName.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentFileName.st new file mode 100644 index 00000000..7efbb512 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentFileName.st @@ -0,0 +1,4 @@ +message - json +mockDocumentFileName + + ^ 'test_document.pdf' \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentMessageJsonFrom..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentMessageJsonFrom..st new file mode 100644 index 00000000..714bd2db --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockDocumentMessageJsonFrom..st @@ -0,0 +1,31 @@ +message - json +mockDocumentMessageJsonFrom: aChatId + "@linter-ignore" + + ^ (JsonObject newFrom: { + '@type' -> 'message'. + 'id' -> self mockMessageId. + 'chat_id' -> aChatId. + 'sender_id' -> (JsonObject newFrom: { + '@type' -> 'messageSenderUser'. + 'user_id' -> self mockUser1 id + }). + 'content' -> (JsonObject newFrom: { + '@type' -> 'messageDocument'. + 'caption' -> (JsonObject newFrom: { + 'text' -> self mockText + }). + 'document' -> (JsonObject newFrom: { + 'file_name' -> self mockDocumentFileName. + 'thumbnail' -> (JsonObject newFrom:{ + 'file' -> (JsonObject newFrom: { + 'id' -> self mockImageId + }). + 'width' -> self mockPhotoWidth. + 'height' -> self mockPhotoHeight + }). + }). + }). + 'is_outgoing' -> false. + 'date' -> self mockMessageTimestamp + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStaticStickerMessageJsonFrom..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStaticStickerMessageJsonFrom..st new file mode 100644 index 00000000..e1b23741 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStaticStickerMessageJsonFrom..st @@ -0,0 +1,26 @@ +message - json +mockStaticStickerMessageJsonFrom: aChatId + "@linter-ignore" + + ^ (JsonObject newFrom: { + '@type' -> 'message'. + 'id' -> self mockMessageId. + 'chat_id' -> aChatId. + 'sender_id' -> (JsonObject newFrom: { + '@type' -> 'messageSenderUser'. + 'user_id' -> self mockUser1 id + }). + 'content' -> (JsonObject newFrom: { + '@type' -> 'messageSticker'. + 'sticker' -> (JsonObject newFrom: { + 'is_animated' -> false. + 'height' -> self mockStickerHeight. + 'width' -> self mockStickerWidth. + 'sticker' -> (JsonObject newFrom: { + 'id' -> self mockStickerId + }). + }). + }). + 'is_outgoing' -> false. + 'date' -> self mockMessageTimestamp + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerHeight.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerHeight.st new file mode 100644 index 00000000..8ed49d81 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerHeight.st @@ -0,0 +1,4 @@ +image +mockStickerHeight + + ^ 100 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId.st new file mode 100644 index 00000000..6b0bdee8 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId.st @@ -0,0 +1,4 @@ +image +mockStickerId + + ^ 24 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerWidth.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerWidth.st new file mode 100644 index 00000000..8bd67d45 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerWidth.st @@ -0,0 +1,4 @@ +image +mockStickerWidth + + ^ 100 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoHeight.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoHeight.st new file mode 100644 index 00000000..1a1afed3 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoHeight.st @@ -0,0 +1,4 @@ +message +mockVideoHeight + + ^ 265 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoId.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoId.st new file mode 100644 index 00000000..ddc9cd1a --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoId.st @@ -0,0 +1,4 @@ +image +mockVideoId + + ^ 42 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoMessageJsonFrom..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoMessageJsonFrom..st new file mode 100644 index 00000000..190889a6 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoMessageJsonFrom..st @@ -0,0 +1,35 @@ +message - json +mockVideoMessageJsonFrom: aChatId + "@linter-ignore" + + ^ (JsonObject newFrom: { + '@type' -> 'message'. + 'id' -> self mockMessageId. + 'chat_id' -> aChatId. + 'sender_id' -> (JsonObject newFrom: { + '@type' -> 'messageSenderUser'. + 'user_id' -> self mockUser1 id + }). + 'content' -> (JsonObject newFrom: { + '@type' -> 'messageVideo'. + 'caption' -> (JsonObject newFrom: { + 'text' -> self mockText + }). + 'video' -> (JsonObject newFrom: { + 'height' -> self mockVideoHeight. + 'width' -> self mockVideoWidth. + 'thumbnail' -> (JsonObject newFrom:{ + 'file' -> (JsonObject newFrom: { + 'id' -> self mockImageId + }). + 'width' -> self mockPhotoWidth. + 'height' -> self mockPhotoHeight + }). + 'video' -> (JsonObject newFrom:{ + 'id' -> self mockVideoId + }). + }). + }). + 'is_outgoing' -> false. + 'date' -> self mockMessageTimestamp + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoWidth.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoWidth.st new file mode 100644 index 00000000..74921deb --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockVideoWidth.st @@ -0,0 +1,4 @@ +message +mockVideoWidth + + ^ 521 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json index 54aef707..11d79f08 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json @@ -1,5 +1,6 @@ { "class" : { + "mockAnimatedStickerMessageJsonFrom:" : "JK 6/23/2024 11:49", "mockBasicGroupChat" : "rgw 6/2/2022 12:06", "mockBasicGroupFullInfoJson" : "per 6/10/2021 19:41", "mockChannelSupergroupChat" : "rgw 6/2/2022 12:07", @@ -9,6 +10,8 @@ "mockChatHistoryJsonContainingMessageId:inChat:" : "aka 6/15/2022 11:49", "mockChats" : "LR 7/16/2022 12:52", "mockChatsFor:" : "JB 7/18/2021 13:15", + "mockDocumentFileName" : "JK 6/23/2024 12:00", + "mockDocumentMessageJsonFrom:" : "JK 6/23/2024 12:01", "mockEmojiSequence1" : "pk 7/10/2021 15:22", "mockEmojiSequence2" : "pk 7/10/2021 15:23", "mockEmojiString" : "pk 7/11/2021 20:23", @@ -43,6 +46,10 @@ "mockPrivateChatLastMessageIsLoggedInUser" : "LR 7/16/2022 12:25", "mockSingleEmojiSequence" : "pk 7/10/2021 15:21", "mockSplitCharsAndEmojis" : "pk 7/10/2021 15:23", + "mockStaticStickerMessageJsonFrom:" : "JK 6/23/2024 11:40", + "mockStickerHeight" : "JK 6/23/2024 11:39", + "mockStickerId" : "JK 6/23/2024 11:39", + "mockStickerWidth" : "JK 6/23/2024 11:39", "mockSupergroupChat" : "rgw 6/2/2022 12:07", "mockSupergroupMembersJson" : "per 6/10/2021 20:53", "mockText" : "TR 6/25/2021 21:15", @@ -73,6 +80,10 @@ "mockUserStore" : "LR 7/16/2022 12:58", "mockUsers" : "LR 7/16/2022 12:25", "mockValidEmoji" : "pk 7/9/2021 16:07", + "mockVideoHeight" : "JK 6/23/2024 11:11", + "mockVideoId" : "JK 6/23/2024 11:10", + "mockVideoMessageJsonFrom:" : "JK 6/23/2024 11:14", + "mockVideoWidth" : "JK 6/23/2024 11:11", "writeMockImage" : "pk 6/19/2021 17:36" }, "instance" : { } } From 475e5128326b1ccd73a9b02f59a088b95f43430a Mon Sep 17 00:00:00 2001 From: AlexHo Date: Sun, 23 Jun 2024 13:01:25 +0200 Subject: [PATCH 09/17] rename StickerWindow and DayDividerMessage --- .../TelegramClient-UI.package/.squot-contents | 5 ---- .../instance/createDayDividerForDate..st | 2 +- .../methodProperties.json | 2 +- .../instance/buttonStickerPressed.st | 2 +- .../TCUChatWindow.class/methodProperties.json | 2 +- .../README.md | 0 .../class/defaultBorderWidth.st | 0 .../class/defaultLayoutInset.st | 0 .../class/newFromDate..st | 0 .../instance/content..st | 0 .../instance/content.st | 0 .../instance/initialize.st | 0 .../methodProperties.json | 0 .../properties.json | 2 +- .../README.md | 0 .../class/newWith..st | 0 .../instance/addCloseButton.st | 0 .../instance/addNextButton.st | 0 .../instance/addPreviousButton.st | 0 .../instance/buildStickerListItems.st | 0 .../instance/buildStickerListItemsFor..st | 0 .../instance/close.st | 0 .../instance/collectInstalledStickers.st | 0 .../instance/convertWebp..st | 0 .../instance/core..st | 0 .../instance/core.st | 0 .../instance/downloadStickerSetFrom..st | 0 .../instance/initialize.st | 0 .../instance/loadStickers.st | 0 .../instance/loadStickersFromStore.st | 0 .../instance/selectedChat..st | 0 .../instance/selectedChat.st | 0 .../instance/selectedSet..st | 0 .../instance/selectedSet.st | 0 .../instance/shouldRedraw..st | 0 .../instance/shouldRedraw.st | 0 .../instance/showNextSet.st | 0 .../instance/showPreviousSet.st | 0 .../instance/showSelectedSet.st | 0 .../instance/step.st | 0 .../instance/stepTime.st | 0 .../methodProperties.json | 4 +-- .../properties.json | 2 +- .../.squot-contents | 5 ---- .../TCTUAuthenticationTests.class/README.md | 1 - .../instance/setUp.st | 5 ---- .../instance/testEnteringCodeOpensTelegram.st | 14 ----------- .../testEnteringPasswordOpensTelegram.st | 15 ----------- .../testEnteringPhoneNumberAsksForCode.st | 11 -------- .../instance/testPressCancelOnAuthCode.st | 11 -------- .../instance/testPressCancelOnAuthPassword.st | 12 --------- .../testTelegramOpensAuthentication.st | 4 --- .../methodProperties.json | 11 -------- .../properties.json | 14 ----------- .../TCTUButtonTests.class/README.md | 1 - .../instance/testHoverOnTitleBar.st | 12 --------- .../instance/testMouseHoverOnChatsListItem.st | 11 -------- .../testMouseHoverOnRegularButtons.st | 11 -------- .../methodProperties.json | 7 ------ .../TCTUButtonTests.class/properties.json | 14 ----------- .../TCTUChatInfoPageTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 4 --- .../instance/openAnyChatSatisfying..st | 8 ------ .../instance/openInfoPageInChatWindow.st | 7 ------ .../instance/partialTestUserList.st | 11 -------- .../instance/testBasicGroupChatHasUserList.st | 5 ---- .../instance/testCanCloseChatInfoPage.st | 10 -------- .../instance/testCanOpenChatInfoPage.st | 7 ------ .../instance/testChatInfoPageIsHidden.st | 5 ---- .../testDoesDisplayGroupDescription.st | 11 -------- .../testPrivateChatHasNoDescription.st | 14 ----------- .../instance/testPrivateChatHasNoUserList.st | 11 -------- .../instance/testSupergroupChatHasUserList.st | 5 ---- ...UserListNotVisibleInChannelChatInfoPage.st | 6 ----- .../methodProperties.json | 17 ------------- .../properties.json | 14 ----------- .../TCTUChatListItemTests.class/README.md | 1 - .../instance/setUp.st | 6 ----- .../instance/testChatHasPhoto.st | 7 ------ .../instance/testChatIsNotPinned.st | 8 ------ .../instance/testChatIsPinned.st | 8 ------ .../testChatLastSenderNameIsLoggedInUser.st | 8 ------ ...testChatLastSenderNameIsNotLoggedInUser.st | 8 ------ .../testChatWithoutPhotoHasDefaultPhoto.st | 7 ------ .../methodProperties.json | 11 -------- .../properties.json | 14 ----------- .../TCTUChatMessageListTests.class/README.md | 1 - .../instance/fillWithMessages.st | 6 ----- .../instance/setUp.st | 7 ------ .../instance/testAddDateDividerAtBottom.st | 12 --------- .../instance/testAddDateDividerAtTop.st | 12 --------- .../testAddingOldMessagesDoesNotScroll.st | 15 ----------- ...hatDoesNotDisplayMessagesFromOtherChats.st | 9 ------- .../testDisplayedChatLoadsOldMessage.st | 8 ------ .../testDisplayedChatReceivesNewMessage.st | 8 ------ .../instance/testDoNotShowDateDivider.st | 12 --------- .../instance/testItemsHaveMessageId.st | 12 --------- .../instance/testScrollToReferencedMessage.st | 20 --------------- .../methodProperties.json | 15 ----------- .../properties.json | 14 ----------- .../TCTUChatWindowTests.class/README.md | 1 - .../instance/messageInputField.st | 4 --- .../instance/sendButton.st | 4 --- .../testSelectAndDeselectMessageToReplyTo.st | 15 ----------- .../instance/testSentMessageAppearsInList.st | 11 -------- .../methodProperties.json | 8 ------ .../TCTUChatWindowTests.class/properties.json | 14 ----------- .../TCTUChatsListTests.class/README.md | 1 - .../testChatOrderUpdatesIfPositionChanges.st | 9 ------- .../instance/testChatTitleVisible.st | 8 ------ .../instance/testLastMessageVisible.st | 8 ------ .../methodProperties.json | 7 ------ .../TCTUChatsListTests.class/properties.json | 14 ----------- .../TCTUEmojiTests.class/README.md | 1 - .../class/defaultScreenshotBackgroundColor.st | 4 --- .../instance/expectedSqueak5_2Failures.st | 7 ------ .../instance/testEmbedEmojisInto.st | 9 ------- .../instance/testEmojiDoesNotExist.st | 4 --- .../instance/testEmojiExists.st | 4 --- .../instance/testEmojisArePresent.st | 9 ------- .../instance/testFileNameFor.st | 6 ----- .../instance/testFindFirstEmojiLength.st | 6 ----- .../instance/testFormFor.st | 6 ----- .../instance/testSplitCharsAndEmojis.st | 6 ----- .../instance/testTextFrom.st | 9 ------- .../methodProperties.json | 14 ----------- .../TCTUEmojiTests.class/properties.json | 14 ----------- .../TCTUMessageTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 11 -------- .../handleScreenShotTestFor.with.usedBy..st | 12 --------- .../TCTUMessageTests.class/instance/setUp.st | 5 ---- .../instance/testAddMembersMessage.st | 11 -------- .../testAddMembersMessageIsNotUserMessage.st | 11 -------- .../instance/testDeleteMemberMessage.st | 11 -------- ...testDeleteMemberMessageIsNotUserMessage.st | 11 -------- ...stMessageBetweenRequestsAnsweredMessage.st | 19 -------------- ...ssageColorsDifferentForIncomingOutgoing.st | 12 --------- .../instance/testMessageContainsDate.st | 10 -------- .../testMessageContainsMessageSender.st | 5 ---- .../testMessageContainsMessageText.st | 11 -------- .../instance/testMessageDisplaysEmojis.st | 11 -------- .../testMessageRequestsAnsweredMessage.st | 17 ------------- .../instance/testMessageShrinksCorrectly.st | 10 -------- .../instance/testMouseDownOnMessage.st | 10 -------- ...stTextAndPhotoScaleCorrectlyLongCaption.st | 9 ------- ...tTextAndPhotoScaleCorrectlyLongUserName.st | 9 ------- ...testTextAndPhotoScaleCorrectlyNoCaption.st | 9 ------- ...tTextAndPhotoScaleCorrectlyShortCaption.st | 9 ------- .../instance/testTextMessageIsUserMessage.st | 9 ------- .../methodProperties.json | 25 ------------------- .../TCTUMessageTests.class/properties.json | 14 ----------- .../TCTUMessageWrapperTests.class/README.md | 1 - .../testDayDividerMessageIdInvalid.st | 9 ------- .../instance/testGroupMessageContainsPhoto.st | 8 ------ .../methodProperties.json | 6 ----- .../properties.json | 14 ----------- .../TCTUMiscellaneousTests.class/README.md | 1 - .../instance/testChatMemberCount.st | 15 ----------- .../instance/testSelectedChatIsHighlighted.st | 6 ----- .../methodProperties.json | 6 ----- .../properties.json | 14 ----------- .../TCTUModalTests.class/README.md | 1 - .../testDifferentTypesHaveDifferentColors.st | 8 ------ .../instance/testShowsText.st | 5 ---- .../methodProperties.json | 6 ----- .../TCTUModalTests.class/properties.json | 14 ----------- .../TCTUNotificationTests.class/README.md | 1 - .../instance/expectedSqueak5_2Failures.st | 7 ------ .../testMutedNotificationNotVisible.st | 8 ------ .../testNotificationClipsLongMessage.st | 11 -------- .../instance/testNotificationConstructor.st | 15 ----------- .../testNotificationContainsMessage.st | 5 ---- .../testNotificationContainsSender.st | 5 ---- .../testNotificationDisplaysEmojis.st | 11 -------- .../testNotificationHidesPrivateChatTitle.st | 14 ----------- .../testNotificationShowsGroupChatTitle.st | 14 ----------- .../testUnmutedNotificationVisible.st | 9 ------- .../methodProperties.json | 14 ----------- .../properties.json | 14 ----------- .../TCTUTestCase.class/README.md | 1 - .../TCTUTestCase.class/class/defaultExtent.st | 4 --- .../class/defaultScreenshotBackgroundColor.st | 4 --- .../class/defaultScreenshotDepth.st | 4 --- .../class/defaultTestResultPath.st | 4 --- .../instance/assertNotReading.in..st | 4 --- .../instance/assertNotReading.inMorph..st | 4 --- .../instance/assertReading.in..st | 4 --- .../instance/assertReading.inMorph..st | 4 --- .../instance/computeHashOf..st | 4 --- .../TCTUTestCase.class/instance/core..st | 4 --- .../TCTUTestCase.class/instance/core.st | 4 --- .../instance/defaultTimeout.st | 4 --- .../instance/findByTextContent.in..st | 5 ---- .../instance/forceSaveScreenshotOf.as.in..st | 10 -------- .../instance/openAnyChat.st | 4 --- .../instance/openChatWithId..st | 4 --- .../TCTUTestCase.class/instance/setUp.st | 10 -------- .../instance/takeScreenshotOf..st | 4 --- .../TCTUTestCase.class/instance/tearDown.st | 5 ---- .../TCTUTestCase.class/instance/waitUntil..st | 4 --- .../TCTUTestCase.class/methodProperties.json | 23 ----------------- .../TCTUTestCase.class/properties.json | 14 ----------- 202 files changed, 8 insertions(+), 1376 deletions(-) delete mode 100644 packages/TelegramClient-UI.package/.squot-contents rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/README.md (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/class/defaultBorderWidth.st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/class/defaultLayoutInset.st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/class/newFromDate..st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/instance/content..st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/instance/content.st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/instance/initialize.st (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/methodProperties.json (100%) rename packages/TelegramClient-UI.package/{TCUDayDividerMessage.class => TCUDayDivider.class}/properties.json (87%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/README.md (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/class/newWith..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/addCloseButton.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/addNextButton.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/addPreviousButton.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/buildStickerListItems.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/buildStickerListItemsFor..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/close.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/collectInstalledStickers.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/convertWebp..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/core..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/core.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/downloadStickerSetFrom..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/initialize.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/loadStickers.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/loadStickersFromStore.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/selectedChat..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/selectedChat.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/selectedSet..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/selectedSet.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/shouldRedraw..st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/shouldRedraw.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/showNextSet.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/showPreviousSet.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/showSelectedSet.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/step.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/instance/stepTime.st (100%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/methodProperties.json (91%) rename packages/TelegramClient-UI.package/{TCUStickerWindow.class => TCUStickerList.class}/properties.json (89%) delete mode 100644 packages/TelegramClientTests-UI.package/.squot-contents delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json delete mode 100644 packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json diff --git a/packages/TelegramClient-UI.package/.squot-contents b/packages/TelegramClient-UI.package/.squot-contents deleted file mode 100644 index 239ddebb..00000000 --- a/packages/TelegramClient-UI.package/.squot-contents +++ /dev/null @@ -1,5 +0,0 @@ -SquotTrackedObjectMetadata { - #objectClassName : #PackageInfo, - #objectsReplacedByNames : true, - #serializer : #SquotCypressCodeSerializer -} \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/createDayDividerForDate..st b/packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/createDayDividerForDate..st index 455a377f..4982b608 100644 --- a/packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/createDayDividerForDate..st +++ b/packages/TelegramClient-UI.package/TCUChatMessageList.class/instance/createDayDividerForDate..st @@ -2,6 +2,6 @@ stepping and presenter createDayDividerForDate: aDate | messageItem | - messageItem := TCUDayDividerMessage newFromDate: aDate. + messageItem := TCUDayDivider newFromDate: aDate. ^ TCUDayDividerMessageWrapper newFromMessage: messageItem withWidth: self scroller width \ No newline at end of file diff --git a/packages/TelegramClient-UI.package/TCUChatMessageList.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUChatMessageList.class/methodProperties.json index 81ebcbe1..95826ab2 100644 --- a/packages/TelegramClient-UI.package/TCUChatMessageList.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUChatMessageList.class/methodProperties.json @@ -11,7 +11,7 @@ "chat" : "js 7/31/2020 16:39", "chat:" : "js 7/31/2020 16:39", "core" : "JB 6/26/2021 10:22", - "createDayDividerForDate:" : "js 7/31/2022 10:20", + "createDayDividerForDate:" : "AH 6/23/2024 13:00", "createMessageItemFrom:" : "js 7/31/2022 10:02", "displayChat:" : "RS 7/17/2021 11:54", "initialize" : "RS 7/17/2021 17:40", diff --git a/packages/TelegramClient-UI.package/TCUChatWindow.class/instance/buttonStickerPressed.st b/packages/TelegramClient-UI.package/TCUChatWindow.class/instance/buttonStickerPressed.st index d0b752ed..1f33e24a 100644 --- a/packages/TelegramClient-UI.package/TCUChatWindow.class/instance/buttonStickerPressed.st +++ b/packages/TelegramClient-UI.package/TCUChatWindow.class/instance/buttonStickerPressed.st @@ -3,7 +3,7 @@ buttonStickerPressed | stickerWindow | self stickerWindow ifNil: [ - stickerWindow := (TCUStickerWindow newWith: (self owner core)) + stickerWindow := (TCUStickerList newWith: (self owner core)) position: (self position + (700 @ 50)); selectedChat: self selectedChat. self stickerWindow: stickerWindow. diff --git a/packages/TelegramClient-UI.package/TCUChatWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUChatWindow.class/methodProperties.json index 7b5f739d..bbd4f729 100644 --- a/packages/TelegramClient-UI.package/TCUChatWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUChatWindow.class/methodProperties.json @@ -18,7 +18,7 @@ "addTitleBar" : "RS 5/29/2021 18:12", "addWelcomeMessage" : "RK 8/4/2021 12:07", "buttonSendPressed" : "ek 6/19/2022 19:07", - "buttonStickerPressed" : "JK 6/20/2024 23:46", + "buttonStickerPressed" : "AH 6/23/2024 13:00", "chatMessageList" : "JB 7/6/2021 14:02", "chatMessageList:" : "JB 7/6/2021 14:02", "clear" : "JK 5/29/2024 20:29", diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/README.md b/packages/TelegramClient-UI.package/TCUDayDivider.class/README.md similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/README.md rename to packages/TelegramClient-UI.package/TCUDayDivider.class/README.md diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/defaultBorderWidth.st b/packages/TelegramClient-UI.package/TCUDayDivider.class/class/defaultBorderWidth.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/defaultBorderWidth.st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/class/defaultBorderWidth.st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/defaultLayoutInset.st b/packages/TelegramClient-UI.package/TCUDayDivider.class/class/defaultLayoutInset.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/defaultLayoutInset.st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/class/defaultLayoutInset.st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/newFromDate..st b/packages/TelegramClient-UI.package/TCUDayDivider.class/class/newFromDate..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/class/newFromDate..st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/class/newFromDate..st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/content..st b/packages/TelegramClient-UI.package/TCUDayDivider.class/instance/content..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/content..st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/instance/content..st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/content.st b/packages/TelegramClient-UI.package/TCUDayDivider.class/instance/content.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/content.st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/instance/content.st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/initialize.st b/packages/TelegramClient-UI.package/TCUDayDivider.class/instance/initialize.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/instance/initialize.st rename to packages/TelegramClient-UI.package/TCUDayDivider.class/instance/initialize.st diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUDayDivider.class/methodProperties.json similarity index 100% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/methodProperties.json rename to packages/TelegramClient-UI.package/TCUDayDivider.class/methodProperties.json diff --git a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/properties.json b/packages/TelegramClient-UI.package/TCUDayDivider.class/properties.json similarity index 87% rename from packages/TelegramClient-UI.package/TCUDayDividerMessage.class/properties.json rename to packages/TelegramClient-UI.package/TCUDayDivider.class/properties.json index ad647b1e..d368f948 100644 --- a/packages/TelegramClient-UI.package/TCUDayDividerMessage.class/properties.json +++ b/packages/TelegramClient-UI.package/TCUDayDivider.class/properties.json @@ -7,7 +7,7 @@ "commentStamp" : "aka 7/14/2022 15:07", "instvars" : [ "content" ], - "name" : "TCUDayDividerMessage", + "name" : "TCUDayDivider", "pools" : [ ], "super" : "RectangleMorph", diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/README.md b/packages/TelegramClient-UI.package/TCUStickerList.class/README.md similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/README.md rename to packages/TelegramClient-UI.package/TCUStickerList.class/README.md diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/class/newWith..st b/packages/TelegramClient-UI.package/TCUStickerList.class/class/newWith..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/class/newWith..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/class/newWith..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addCloseButton.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/addCloseButton.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addCloseButton.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/addCloseButton.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/addNextButton.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addNextButton.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/addNextButton.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/addPreviousButton.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/addPreviousButton.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/addPreviousButton.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/buildStickerListItems.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItems.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/buildStickerListItems.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/buildStickerListItemsFor..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/buildStickerListItemsFor..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/buildStickerListItemsFor..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/close.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/close.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/close.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/close.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/collectInstalledStickers.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/collectInstalledStickers.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/collectInstalledStickers.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/collectInstalledStickers.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/convertWebp..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/convertWebp..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/convertWebp..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/convertWebp..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/core..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/core..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/core..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/core..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/core.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/core.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/core.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/core.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/downloadStickerSetFrom..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/downloadStickerSetFrom..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/downloadStickerSetFrom..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/downloadStickerSetFrom..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/initialize.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/initialize.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/initialize.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/loadStickers.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/loadStickers.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/loadStickers.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/loadStickers.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/loadStickersFromStore.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/loadStickersFromStore.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/loadStickersFromStore.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/loadStickersFromStore.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedChat..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedChat..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedChat..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedChat..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedChat.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedChat.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedChat.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedChat.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedSet..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedSet..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedSet.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/selectedSet.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/selectedSet.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/shouldRedraw..st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/shouldRedraw..st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/shouldRedraw..st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/shouldRedraw..st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/shouldRedraw.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/shouldRedraw.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/shouldRedraw.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/shouldRedraw.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/showNextSet.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showNextSet.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/showNextSet.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/showPreviousSet.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showPreviousSet.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/showPreviousSet.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/showSelectedSet.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/showSelectedSet.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/showSelectedSet.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/step.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/step.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/step.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/stepTime.st b/packages/TelegramClient-UI.package/TCUStickerList.class/instance/stepTime.st similarity index 100% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/instance/stepTime.st rename to packages/TelegramClient-UI.package/TCUStickerList.class/instance/stepTime.st diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json similarity index 91% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json rename to packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json index 1bc2a740..fcb91cce 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json @@ -8,8 +8,8 @@ "buildStickerListItems" : "JK 6/19/2024 11:27", "buildStickerListItemsFor:" : "JK 6/21/2024 14:07", "close" : "JK 5/29/2024 20:09", - "collectInstalledStickers" : " 6/22/2024 13:42:57", - "convertWebp:" : " 6/22/2024 13:42:57", + "collectInstalledStickers" : "6/22/2024 13:42:57", + "convertWebp:" : "6/22/2024 13:42:57", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", "downloadStickerSetFrom:" : "6/20/2024 11:30:00", diff --git a/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json b/packages/TelegramClient-UI.package/TCUStickerList.class/properties.json similarity index 89% rename from packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json rename to packages/TelegramClient-UI.package/TCUStickerList.class/properties.json index cdcc68ac..982d4e89 100644 --- a/packages/TelegramClient-UI.package/TCUStickerWindow.class/properties.json +++ b/packages/TelegramClient-UI.package/TCUStickerList.class/properties.json @@ -11,7 +11,7 @@ "selectedChat", "core", "selectedSet" ], - "name" : "TCUStickerWindow", + "name" : "TCUStickerList", "pools" : [ ], "super" : "TCUList", diff --git a/packages/TelegramClientTests-UI.package/.squot-contents b/packages/TelegramClientTests-UI.package/.squot-contents deleted file mode 100644 index 239ddebb..00000000 --- a/packages/TelegramClientTests-UI.package/.squot-contents +++ /dev/null @@ -1,5 +0,0 @@ -SquotTrackedObjectMetadata { - #objectClassName : #PackageInfo, - #objectsReplacedByNames : true, - #serializer : #SquotCypressCodeSerializer -} \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md deleted file mode 100644 index 7366b93a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUAuthentication. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st deleted file mode 100644 index b46a398e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/setUp.st +++ /dev/null @@ -1,5 +0,0 @@ -running -setUp - - super setUp. - self wantsToTest: (TCUTelegram newWithCore: self core). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st deleted file mode 100644 index c54f42d7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringCodeOpensTelegram.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testEnteringCodeOpensTelegram - - | inputField authenticationWindow | - authenticationWindow := self subject currentWindow. - authenticationWindow - showPhoneNumberStep; - showAuthCodeStep. - inputField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - inputField sendKeys: '934505'. - self assertReading: '934505' in: self subject. - authenticationWindow logInCompleted. - - self deny: self subject currentWindow = authenticationWindow. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st deleted file mode 100644 index 126ae1d6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPasswordOpensTelegram.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testEnteringPasswordOpensTelegram - - | passwordField authenticationWindow | - authenticationWindow := self subject currentWindow. - authenticationWindow - showPhoneNumberStep; - showAuthCodeStep; - showAuthPasswordStep. - passwordField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - passwordField sendKeys: '934505'. - self assertReading: '934505' in: self subject. - authenticationWindow logInCompleted. - - self deny: self subject currentWindow = authenticationWindow. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st deleted file mode 100644 index de3389d3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testEnteringPhoneNumberAsksForCode.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testEnteringPhoneNumberAsksForCode - - | inputField | - self subject currentWindow showPhoneNumberStep. - inputField := (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph isLocked not and: textMorph visible]. - inputField sendKeys: '+49 934 505'. - self assertReading: '+49 934 505' in: self subject. - (self subject createWrapperFor: {self subject currentWindow buttonNext}) click. - self assert: inputField contents isEmpty. - self assertReading: 'Verify' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st deleted file mode 100644 index 808a0bd0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthCode.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testPressCancelOnAuthCode - - | button nextButton | - nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. - self subject currentWindow - showPhoneNumberStep; - showAuthCodeStep. - button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. - button click. - self assert: nextButton visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st deleted file mode 100644 index f160da3a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testPressCancelOnAuthPassword.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testPressCancelOnAuthPassword - - | button nextButton | - nextButton := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Next' ]. - self subject currentWindow - showPhoneNumberStep; - showAuthCodeStep; - showAuthPasswordStep. - button := (self subject findByClass: TCUButton) findByCriteria: [:textMorph | textMorph text asText = 'Cancel' ]. - button click. - self assert: nextButton visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st deleted file mode 100644 index 224c0740..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/instance/testTelegramOpensAuthentication.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testTelegramOpensAuthentication - - self assert: TCUAuthenticationWindow equals: (self subject currentWindow class). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json deleted file mode 100644 index e0b733ea..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/methodProperties.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "setUp" : "RS 7/17/2021 12:56", - "testEnteringCodeOpensTelegram" : "aka 5/21/2022 13:02", - "testEnteringPasswordOpensTelegram" : "aka 5/21/2022 14:01", - "testEnteringPhoneNumberAsksForCode" : "aka 5/21/2022 13:29", - "testPressCancelOnAuthCode" : "ek 8/5/2022 15:27", - "testPressCancelOnAuthPassword" : "ek 8/5/2022 15:27", - "testTelegramOpensAuthentication" : "RS 7/17/2021 12:55" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json deleted file mode 100644 index a81392ce..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUAuthenticationTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUAuthenticationTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md deleted file mode 100644 index da007ebd..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Test hover and pressed behavior of buttonlike objects. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st deleted file mode 100644 index 499fa066..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testHoverOnTitleBar.st +++ /dev/null @@ -1,12 +0,0 @@ -hovering -testHoverOnTitleBar - - | titleBar normalColor | - - self openAnyChat. - titleBar := self subject chatWindow titleBar. - normalColor := titleBar color. - titleBar mouseEnter: EventMorph new. - self deny: normalColor = titleBar color. - titleBar mouseLeave: EventMorph new. - self assert: normalColor = titleBar color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st deleted file mode 100644 index ce91d62d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnChatsListItem.st +++ /dev/null @@ -1,11 +0,0 @@ -hovering -testMouseHoverOnChatsListItem - - | chatListItem oldColor | - - chatListItem := TCUChatListItem new. - oldColor := chatListItem color. - chatListItem mouseEnter: EventMorph new. - self deny: oldColor = chatListItem color. - chatListItem mouseLeave: EventMorph new. - self assert: oldColor = chatListItem color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st deleted file mode 100644 index ce874115..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/instance/testMouseHoverOnRegularButtons.st +++ /dev/null @@ -1,11 +0,0 @@ -hovering -testMouseHoverOnRegularButtons - - | button normalColor | - - button := TCUButton new. - normalColor := button color. - button mouseEnter: EventMorph new. - self deny: normalColor = button color. - button mouseLeave: EventMorph new. - self assert: normalColor = button color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json deleted file mode 100644 index b420a992..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/methodProperties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testHoverOnTitleBar" : "ek 6/22/2022 19:19", - "testMouseHoverOnChatsListItem" : "ek 8/5/2022 15:28", - "testMouseHoverOnRegularButtons" : "ek 6/22/2022 18:19" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json deleted file mode 100644 index 33fbbd8d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUButtonTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "ek 6/19/2022 19:00", - "instvars" : [ - ], - "name" : "TCTUButtonTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md deleted file mode 100644 index 0e3eb803..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUChatInfoPage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index e0fcf5b1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,4 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #(#testPrivateChatHasNoDescription) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st deleted file mode 100644 index 3a2e3cd3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openAnyChatSatisfying..st +++ /dev/null @@ -1,8 +0,0 @@ -navigating -openAnyChatSatisfying: aClosure - - | chat | - - chat := self core chatsHandler chats detect: [:aChat | aClosure value: aChat]. - - self openChatWithId: chat id. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st deleted file mode 100644 index e992848f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/openInfoPageInChatWindow.st +++ /dev/null @@ -1,7 +0,0 @@ -navigating -openInfoPageInChatWindow - - | titleBar | - - titleBar := (self subject findByClass: TCUChatWindow) morphs collect: [:chatWindow | chatWindow titleBar]. - (self subject createWrapperFor: titleBar) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st deleted file mode 100644 index 9b64ab83..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/partialTestUserList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -partialTestUserList - - | chatInfoPage | - self openInfoPageInChatWindow. - - chatInfoPage := (self subject findByClass: TCUChatInfoPage) morphs anyOne. - - chatInfoPage chat members do: [:aMember | - self assertReading: aMember fullName in: (self subject findByClass: TCUUserList). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st deleted file mode 100644 index e2d77e07..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testBasicGroupChatHasUserList.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testBasicGroupChatHasUserList - - self openAnyChatSatisfying: [ :aChat | aChat isBasicGroup]. - self partialTestUserList. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st deleted file mode 100644 index 6e1f242e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanCloseChatInfoPage.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testCanCloseChatInfoPage - - self openAnyChat. - self openInfoPageInChatWindow. - - self assert: (self subject findByClass: TCUChatInfoPage) visible. - - (self subject findByName: 'infoBackButton') click. - self assert: (self subject findByClass: TCUChatInfoPage) visible not. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st deleted file mode 100644 index 06e36904..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testCanOpenChatInfoPage.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testCanOpenChatInfoPage - - self openAnyChat. - self openInfoPageInChatWindow. - - self assert: (self subject findByClass: TCUChatInfoPage) visible. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st deleted file mode 100644 index 38483e90..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testChatInfoPageIsHidden.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testChatInfoPageIsHidden - - self openAnyChat. - self assert: (self subject findByClass: TCUChatInfoPage) visible not. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st deleted file mode 100644 index a1212ed7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testDoesDisplayGroupDescription.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDoesDisplayGroupDescription - - | groupChat | - - self waitUntil: [self core chatsHandler chats anySatisfy: [:c | c isGroup]]. - groupChat := (self core chatsHandler chats detect: [:chat | chat isGroup]). - - self openChatWithId: groupChat id. - - self assertReading: groupChat description in: (self subject findByClass: TCUChatInfoPage). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st deleted file mode 100644 index 1a2f9919..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoDescription.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testPrivateChatHasNoDescription - - | groupChat chatInfoPage | - - self waitUntil: [self core chatsHandler chats anySatisfy: [:c | c isPrivate]]. - groupChat := (self core chatsHandler chats detect: [:chat | chat isPrivate]). - - self openChatWithId: groupChat id. - self openInfoPageInChatWindow. - - chatInfoPage := (self subject findByClass: TCUChatInfoPage) morphs anyOne. - self forceSaveScreenshotOf: chatInfoPage as: 'testPrivateChatHasNoDescription' in: self class defaultTestResultPath. - self assert: 225928729 equals: (self computeHashOf: (self takeScreenshotOf: chatInfoPage)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st deleted file mode 100644 index e13bf8b7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testPrivateChatHasNoUserList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testPrivateChatHasNoUserList - - | chatInfoPage | - - self openAnyChatSatisfying: [ :aChat | aChat isPrivate]. - self openInfoPageInChatWindow. - - chatInfoPage := self subject findByClass: TCUChatInfoPage. - - self assert: (chatInfoPage findByClass: TCUUserList) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st deleted file mode 100644 index fb542780..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testSupergroupChatHasUserList.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testSupergroupChatHasUserList - - self openAnyChatSatisfying: [ :aChat | aChat isSuperGroup and: [aChat isChannel not]]. - self partialTestUserList. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st deleted file mode 100644 index cd829561..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/instance/testUserListNotVisibleInChannelChatInfoPage.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testUserListNotVisibleInChannelChatInfoPage - - self openAnyChatSatisfying: [ :aChat | aChat isChannel]. - self openInfoPageInChatWindow. - self assert: (self subject findByClass: TCUUserList) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json deleted file mode 100644 index 132669f5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/methodProperties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "TR 6/2/2021 15:14", - "openAnyChatSatisfying:" : "RS 8/1/2021 12:56", - "openInfoPageInChatWindow" : "RS 6/6/2021 15:48", - "partialTestUserList" : "tom.richter 7/17/2021 17:13", - "testBasicGroupChatHasUserList" : "tr 7/25/2021 18:08", - "testCanCloseChatInfoPage" : "JB 6/7/2021 09:30", - "testCanOpenChatInfoPage" : "RS 6/6/2021 15:50", - "testChatInfoPageIsHidden" : "RS 6/6/2021 15:50", - "testDoesDisplayGroupDescription" : "RS 8/1/2021 12:56", - "testPrivateChatHasNoDescription" : "rgw 6/6/2022 18:11", - "testPrivateChatHasNoUserList" : "RK 8/2/2021 18:39", - "testSupergroupChatHasUserList" : "tr 7/25/2021 18:08", - "testUserListNotVisibleInChannelChatInfoPage" : "RK 8/2/2021 18:39" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json deleted file mode 100644 index 477596f1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatInfoPageTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUChatInfoPageTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md deleted file mode 100644 index 43ea4b56..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests TCUChatListItem \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st deleted file mode 100644 index 9286a235..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/setUp.st +++ /dev/null @@ -1,6 +0,0 @@ -running -setUp - - self core: (TCTUMockCore newWithTeleClient: TCTMMockTdlibClient new). - self core userStore: TCTMMocks mockUserStore. - self core chatsHandler chats: (TCTMMocks mockChatsFor: self core). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st deleted file mode 100644 index 68951550..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatHasPhoto.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testChatHasPhoto - - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - self wantsToTest: (TCUChatListItem newWithChat: self core chatsHandler chats first width: 500). - 0.1 seconds wait. - self assert: (self subject findByClass: ImageMorph) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st deleted file mode 100644 index 26f016db..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsNotPinned.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatIsNotPinned - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat isPinned]) first. - self core chatsHandler updateChatPosition: (TCTMMocks mockUpdateChatPositionEventForNotPinnedChatWithId: chat id). - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertNotReading: 'pinned' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st deleted file mode 100644 index 3a2f1b78..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatIsPinned.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatIsPinned - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat isPinned]) first. - self core chatsHandler updateChatPosition: (TCTMMocks mockUpdateChatPositionEventForPinnedChatWithId: chat id). - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'pinned' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st deleted file mode 100644 index 37faa611..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsLoggedInUser.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatLastSenderNameIsLoggedInUser - - | chat | - chat := TCTMMocks mockPrivateChatLastMessageIsLoggedInUser. - chat core: self core. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'You:' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st deleted file mode 100644 index 303b24d8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatLastSenderNameIsNotLoggedInUser.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatLastSenderNameIsNotLoggedInUser - - | chat | - chat := TCTMMocks mockPrivateChat. - chat core: self core. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assertReading: 'Test User:' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st deleted file mode 100644 index 5f011d8b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/instance/testChatWithoutPhotoHasDefaultPhoto.st +++ /dev/null @@ -1,7 +0,0 @@ -testing -testChatWithoutPhotoHasDefaultPhoto - - | chat | - chat := (self core chatsHandler chats reject: [:aChat | aChat hasPhoto]) first. - self wantsToTest: (TCUChatListItem newWithChat: chat width: TCUChatsList defaultWidth). - self assert: (self subject findByClass: ImageMorph) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json deleted file mode 100644 index 18af45e3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/methodProperties.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "setUp" : "ek 8/5/2022 15:29", - "testChatHasPhoto" : "js 6/30/2022 16:01", - "testChatIsNotPinned" : "ek 8/5/2022 15:30", - "testChatIsPinned" : "ek 8/5/2022 15:30", - "testChatLastSenderNameIsLoggedInUser" : "ek 8/5/2022 15:31", - "testChatLastSenderNameIsNotLoggedInUser" : "ek 8/5/2022 15:31", - "testChatWithoutPhotoHasDefaultPhoto" : "ek 8/5/2022 15:31" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json deleted file mode 100644 index bc9bfe06..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatListItemTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "rgw 6/2/2022 16:17", - "instvars" : [ - ], - "name" : "TCTUChatListItemTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md deleted file mode 100644 index 1dd4b031..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessageList \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st deleted file mode 100644 index f9aae269..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/fillWithMessages.st +++ /dev/null @@ -1,6 +0,0 @@ -running -fillWithMessages - - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'First message'). - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'Second message'). - self subject addAtBottom: ((TCTMMocks mockTextMessageWith: self core) text: 'Third message'). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st deleted file mode 100644 index c2e2ec41..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/setUp.st +++ /dev/null @@ -1,7 +0,0 @@ -running -setUp - - super setUp. - self wantsToTest: TCUChatMessageList new. - self subject displayChat: self core chatsHandler chats first. - self fillWithMessages. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st deleted file mode 100644 index 7a005369..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtBottom.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testAddDateDividerAtBottom - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assertReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st deleted file mode 100644 index 9e526816..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddDateDividerAtTop.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testAddDateDividerAtTop - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addOldestMessage: newMessage. - self subject chat addOldestMessage: oldMessage. - - self assertReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st deleted file mode 100644 index 2bc5da7d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testAddingOldMessagesDoesNotScroll.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testAddingOldMessagesDoesNotScroll - - | loadedMessage secondTCUMessage currentOffset previousOffset | - - secondTCUMessage := self subject scroller submorphs second. - self subject scrollToShow: secondTCUMessage. - - loadedMessage := (TCTMMocks mockTextMessageWith: self core) text: 'Loaded Message'. - self subject addAtTop: loadedMessage. - - previousOffset := self subject vScrollBar value. - self subject scrollToShow: secondTCUMessage. - currentOffset := self subject vScrollBar value. - self assert: previousOffset equals: currentOffset. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st deleted file mode 100644 index a83e9a93..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testChatDoesNotDisplayMessagesFromOtherChats.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testChatDoesNotDisplayMessagesFromOtherChats - - | newMessage otherChat | - - otherChat := self core chatsHandler chats detect: [:chat | chat id ~= self subject chat id]. - newMessage := (TCTMMocks mockMessageIn: otherChat with: self core) text: 'New message'. - self subject chat addNewestMessage: newMessage. - self assertNotReading: newMessage asText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st deleted file mode 100644 index 6565327d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatLoadsOldMessage.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDisplayedChatLoadsOldMessage - - | loadedMessage | - - loadedMessage := (TCTMMocks mockTextMessageWith: self core) text: 'Loaded message'. - self subject chat addOldestMessage: loadedMessage. - self assertReading: loadedMessage asText inMorph: self subject scroller submorphs first. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st deleted file mode 100644 index b2a8170b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDisplayedChatReceivesNewMessage.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDisplayedChatReceivesNewMessage - - | newMessage | - - newMessage := (TCTMMocks mockTextMessageWith: self core) text: 'New message'. - self subject chat addNewestMessage: newMessage. - self assertReading: newMessage asText inMorph: self subject scroller submorphs last. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st deleted file mode 100644 index 5391c465..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testDoNotShowDateDivider.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testDoNotShowDateDivider - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376462360. "14.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assertNotReading: '8/15/2013' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st deleted file mode 100644 index a4c2a85f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testItemsHaveMessageId.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testItemsHaveMessageId - - | oldMessage newMessage oldDate newDate | - oldDate := 1376462359. "14.8.13" - newDate := 1376548759. "15.8.13" - oldMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: oldDate. - newMessage := TCTMMocks mockTextMessageWith: self core withUnixDate: newDate. - self subject chat addNewestMessage: oldMessage. - self subject chat addNewestMessage: newMessage. - - self assert: (self subject items select: [:item | (item respondsTo: #messageId) not]) isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st deleted file mode 100644 index 3aacc95d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/instance/testScrollToReferencedMessage.st +++ /dev/null @@ -1,20 +0,0 @@ -testing -testScrollToReferencedMessage - - | referencedMessage referencingMessage referencedOffset | - referencedMessage := (TCTMMocks mockTextMessageWith: self core withId: 1) - text: 'Referenced Message'; - chat: self subject chat. - referencingMessage := (TCTMMocks mockTextMessageWith: self core withId: 2 replyTo: 1) - text: 'Referencing Message'; - chat: self subject chat. - self subject chat addOldestMessage: referencedMessage. - self subject chat addNewestMessage: referencingMessage. - - self subject scrollToShow: self subject scroller submorphs first. - referencedOffset := self subject vScrollBar value. - self subject scrollToNewestMessage. - - (self subject findByClass: TCUReplySnippet) click. - - self assert: referencedOffset equals: self subject vScrollBar value. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json deleted file mode 100644 index 7431347f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/methodProperties.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "fillWithMessages" : "ek 8/5/2022 15:32", - "setUp" : "js 7/31/2022 19:10", - "testAddDateDividerAtBottom" : "js 7/31/2022 17:48", - "testAddDateDividerAtTop" : "js 7/31/2022 17:48", - "testAddingOldMessagesDoesNotScroll" : "aka 7/14/2022 15:30", - "testChatDoesNotDisplayMessagesFromOtherChats" : "RS 8/1/2021 12:57", - "testDisplayedChatLoadsOldMessage" : "per 6/28/2021 16:23", - "testDisplayedChatReceivesNewMessage" : "per 6/28/2021 16:23", - "testDoNotShowDateDivider" : "js 7/31/2022 19:11", - "testItemsHaveMessageId" : "js 7/31/2022 20:15", - "testScrollToReferencedMessage" : "rgw 8/5/2022 10:53" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json deleted file mode 100644 index c7814882..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatMessageListTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 6/26/2021 10:24", - "instvars" : [ - ], - "name" : "TCTUChatMessageListTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md deleted file mode 100644 index 681b4031..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUChatWindow \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st deleted file mode 100644 index d09e2fda..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/messageInputField.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -messageInputField - - ^ (self subject findByClass: TextMorph) findByCriteria: [:textMorph | textMorph readOnly not and: [textMorph isLocked not]] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st deleted file mode 100644 index ba627cbc..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/sendButton.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -sendButton - - ^ self subject findByName: 'sendMessage' \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st deleted file mode 100644 index 0249bf53..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSelectAndDeselectMessageToReplyTo.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testSelectAndDeselectMessageToReplyTo - - | newMessage chatWindow | - - self openChatWithId: 1. - chatWindow := self subject chatWindow. - newMessage := (TCTMMocks mockTextMessageWith: self core) text: 'New message'. - chatWindow selectedChat addNewestMessage: newMessage. - - self assertNotReading: newMessage text inMorph: chatWindow inputBar. - chatWindow selectedChat selectedReplyToMessageId: newMessage id. - self assertReading: newMessage text inMorph: chatWindow inputBar. - chatWindow selectedChat selectedReplyToMessageId: newMessage id. - self assertNotReading: newMessage text inMorph: chatWindow inputBar. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st deleted file mode 100644 index 338ed73c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/instance/testSentMessageAppearsInList.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testSentMessageAppearsInList - - self core client onRequestType: 'sendMessage' respond: (TCTMMocks mockUpdateNewMessageJsonEventFrom: 1). - self openChatWithId: 1. - self messageInputField sendKeys: TCTMMocks mockText. - self assertReading: TCTMMocks mockText in: self subject. - self sendButton click. - 0.5 seconds wait. - self deny: (self messageInputField text contains: TCTMMocks mockText). - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json deleted file mode 100644 index aff5ecc5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/methodProperties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "messageInputField" : "rgw 7/1/2022 11:32", - "sendButton" : "JB 7/19/2021 12:44", - "testSelectAndDeselectMessageToReplyTo" : "JS 5/22/2022 19:23", - "testSentMessageAppearsInList" : "rgw 7/1/2022 11:33" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json deleted file mode 100644 index 082a38aa..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatWindowTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 7/19/2021 12:42", - "instvars" : [ - ], - "name" : "TCTUChatWindowTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md deleted file mode 100644 index 0638ffba..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUChatsList diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st deleted file mode 100644 index 04f51ea2..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatOrderUpdatesIfPositionChanges.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testChatOrderUpdatesIfPositionChanges - - | chat | - chat := self core chatsHandler chats last. - chat position: 0. "no chat has a position so this should become the first chat" - self core chatsHandler chats notify. - (self subject findByClass: TCUChatsList) step. - self assert: chat id equals: self subject chatsList items first chatId. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st deleted file mode 100644 index a09025e8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testChatTitleVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testChatTitleVisible - - 1 to: self core chatsHandler chats size do: [:index | - self - assertReading: (self core chatsHandler chats at: index) title - in: (self subject createWrapperFor: {self subject chatsList items at: index}). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st deleted file mode 100644 index 66f56e9c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/instance/testLastMessageVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testLastMessageVisible - - 1 to: self core chatsHandler chats size do: [:index | - self - assertReading: (self core chatsHandler chats at: index) lastMessageText - in: (self subject createWrapperFor: {self subject chatsList items at: index}). - ]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json deleted file mode 100644 index d38fda13..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/methodProperties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testChatOrderUpdatesIfPositionChanges" : "rgw 7/26/2022 10:24", - "testChatTitleVisible" : "JB 8/6/2021 15:52", - "testLastMessageVisible" : "aka 7/10/2022 11:13" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json deleted file mode 100644 index 09767928..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUChatsListTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 8/6/2021 15:53", - "instvars" : [ - ], - "name" : "TCTUChatsListTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md deleted file mode 100644 index 14099f1f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUEmojiHelper \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st deleted file mode 100644 index 8b1a2300..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/class/defaultScreenshotBackgroundColor.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotBackgroundColor - - ^ Color white \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index a1a7b91f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,7 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testTextFrom - #testEmbedEmojisInto - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st deleted file mode 100644 index 21604d9f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmbedEmojisInto.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testEmbedEmojisInto - - | text morph | - text := TCUEmojiHelper embedEmojisInto: TCTMMocks mockEmojiString. - morph := text asMorph. - - self forceSaveScreenshotOf: morph as: 'testEmbedEmojisInto' in: self class defaultTestResultPath. - self assert: 145611152 equals: (self computeHashOf: (self takeScreenshotOf: morph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st deleted file mode 100644 index bad60719..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiDoesNotExist.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testEmojiDoesNotExist - - self deny: (TCUEmojiHelper emojiExists: TCTMMocks mockInvalidEmoji). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st deleted file mode 100644 index deeee0dc..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojiExists.st +++ /dev/null @@ -1,4 +0,0 @@ -testing -testEmojiExists - - self assert: (TCUEmojiHelper emojiExists: TCTMMocks mockValidEmoji). diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st deleted file mode 100644 index f334e2e4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testEmojisArePresent.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testEmojisArePresent - - | emojiDirectory | - - emojiDirectory := FileDirectory default directoryNamed: TCUEmojiHelper defaultFolderName. - - self assert: TCUEmojiHelper areEmojisPresent. - self assert: emojiDirectory hasFiles. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st deleted file mode 100644 index c4231c2f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFileNameFor.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFileNameFor - - self - assert: TCTMMocks mockValidEmoji - equals: (TCUEmojiHelper fileNameFor: TCTMMocks mockSingleEmojiSequence). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st deleted file mode 100644 index 21715fb5..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFindFirstEmojiLength.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFindFirstEmojiLength - - self - assert: TCTMMocks mockFirstEmojiLength1 - equals: (TCUEmojiHelper findFirstEmojiLengthIn: TCTMMocks mockEmojiSequence1). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st deleted file mode 100644 index fd60f270..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testFormFor.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testFormFor - - self assert: 61367704 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockValidEmoji)). - self assert: 235263786 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockInvalidEmoji)). - self assert: 235263786 equals: (self computeHashOf: (TCUEmojiHelper formFor: TCTMMocks mockInvalidEmoji , '-neither-does-this')). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st deleted file mode 100644 index e01a2748..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testSplitCharsAndEmojis.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testSplitCharsAndEmojis - - self - assert: TCTMMocks mockSplitCharsAndEmojis - equals: (TCUEmojiHelper splitCharsAndEmojisIn: TCTMMocks mockEmojiString). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st deleted file mode 100644 index e5117f47..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/instance/testTextFrom.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextFrom - - | text morph | - text := TCUEmojiHelper textFrom: TCTMMocks mockEmojiSequence1. - morph := text asMorph. - - self forceSaveScreenshotOf: morph as: #testTextFrom in: self class defaultTestResultPath. - self assert: 187336834 equals: (self computeHashOf: (self takeScreenshotOf: morph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json deleted file mode 100644 index ff9e2f97..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/methodProperties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "class" : { - "defaultScreenshotBackgroundColor" : "pk 7/4/2021 15:17" }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/10/2021 16:30", - "testEmbedEmojisInto" : "RK 7/6/2021 11:05", - "testEmojiDoesNotExist" : "pk 7/9/2021 16:18", - "testEmojiExists" : "pk 7/9/2021 16:07", - "testEmojisArePresent" : "pk 7/9/2021 16:10", - "testFileNameFor" : "pk 7/10/2021 16:31", - "testFindFirstEmojiLength" : "pk 7/10/2021 15:59", - "testFormFor" : "pk 7/9/2021 16:09", - "testSplitCharsAndEmojis" : "pk 7/10/2021 15:23", - "testTextFrom" : "pk 7/10/2021 16:30" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json deleted file mode 100644 index 5796096a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUEmojiTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "RK 7/4/2021 15:40", - "instvars" : [ - ], - "name" : "TCTUEmojiTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md deleted file mode 100644 index 9f7222db..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessage. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index cbbade84..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,11 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testMessageShrinksCorrectly - #testTextAndPhotoScaleCorrectlyLongCaption - #testTextAndPhotoScaleCorrectlyLongUserName - #testTextAndPhotoScaleCorrectlyNoCaption - #testTextAndPhotoScaleCorrectlyShortCaption - #testMessageDisplaysEmojis - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st deleted file mode 100644 index 71a3e70c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/handleScreenShotTestFor.with.usedBy..st +++ /dev/null @@ -1,12 +0,0 @@ -testing -handleScreenShotTestFor: aPhotoMessage with: aHash usedBy: aTestsName - - | messageMorph | - - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - - aPhotoMessage core: self core. - messageMorph := TCUMessage newFrom: aPhotoMessage. - - self forceSaveScreenshotOf: messageMorph as: aTestsName in: self class defaultTestResultPath. - self assert: aHash equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st deleted file mode 100644 index bd370928..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/setUp.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -setUp - - super setUp. - TCTMMocks writeMockImage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st deleted file mode 100644 index 9e1804b9..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testAddMembersMessage - - | addMembersEvent addMembersMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - addMembersEvent := TCTMMocks mockMessageAddMembersFrom: {TCTMMocks mockUser1 id} to: chat id. - addMembersMessage := TCCMessage newFromMessageEvent: addMembersEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: addMembersMessage). - self assertReading: 'Added: Test User' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st deleted file mode 100644 index 4209c170..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testAddMembersMessageIsNotUserMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testAddMembersMessageIsNotUserMessage - - | addMembersEvent addMembersMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - addMembersEvent := TCTMMocks mockMessageAddMembersFrom: {TCTMMocks mockUser1 id} to: chat id. - addMembersMessage := TCCMessage newFromMessageEvent: addMembersEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: addMembersMessage). - self deny: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st deleted file mode 100644 index 0799c8c4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDeleteMemberMessage - - | deleteMemberEvent deleteMemberMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - deleteMemberEvent := TCTMMocks mockMessageDeleteMemberWith: TCTMMocks mockUser1 id from: chat id. - deleteMemberMessage := TCCMessage newFromMessageEvent: deleteMemberEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: deleteMemberMessage). - self assertReading: 'Removed: Test User' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st deleted file mode 100644 index 3cfa3800..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testDeleteMemberMessageIsNotUserMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testDeleteMemberMessageIsNotUserMessage - - | deleteMemberEvent deleteMemberMessage chat | - - chat := TCTMMocks mockBasicGroupChat. - deleteMemberEvent := TCTMMocks mockMessageDeleteMemberWith: TCTMMocks mockUser1 id from: chat id. - deleteMemberMessage := TCCMessage newFromMessageEvent: deleteMemberEvent in: chat with: self core. - - self wantsToTest: (TCUMessage newFrom: deleteMemberMessage). - self deny: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st deleted file mode 100644 index 55ed56e6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageBetweenRequestsAnsweredMessage.st +++ /dev/null @@ -1,19 +0,0 @@ -testing -testMessageBetweenRequestsAnsweredMessage - - | replyMessage betweenMessage chat | - chat := self core chatsHandler chats first. - self core client onRequestType: 'getMessage' respond: (TCTMMocks mockMessageJsonFrom: chat id). - replyMessage := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - replyMessage text: 'reply message'; - id: (TCTMMocks mockMessageId + 2). - - betweenMessage := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - betweenMessage text: 'between message'; - id: (TCTMMocks mockMessageId + 1). - - chat addNewestMessage: replyMessage. - self wantsToTest: (TCUMessage newFrom: replyMessage). - 0.5 seconds wait. - self assertNotReading: 'Message not loaded' in: self subject. - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st deleted file mode 100644 index 4562218b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageColorsDifferentForIncomingOutgoing.st +++ /dev/null @@ -1,12 +0,0 @@ -testing -testMessageColorsDifferentForIncomingOutgoing - - | incomingMessage outgoingMessage | - - outgoingMessage := TCTMMocks mockTextMessageWith: self core. - incomingMessage := TCTMMocks mockTextMessageWith: self core. - - outgoingMessage isOutgoing: true. - incomingMessage isOutgoing: false. - - self deny: (TCUMessage newFrom: outgoingMessage) color = (TCUMessage newFrom: incomingMessage) color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st deleted file mode 100644 index 44f5f947..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsDate.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMessageContainsDate - - | message | - - message := (TCTMMocks mockTextMessageWith: self core). - message date: message date asUTC. - - self wantsToTest: (TCUMessage newFrom: message). - self assertReading: '15:57' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st deleted file mode 100644 index bce24de3..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageSender.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testMessageContainsMessageSender - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockUser1 fullName in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st deleted file mode 100644 index 2452500d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageContainsMessageText.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testMessageContainsMessageText - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockPhotoMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. - - self wantsToTest: (TCUMessage newFrom: (TCTMMocks mockNotSupportedMessageWith: self core)). - self assertReading: TCCNotSupportedMessage infoText in: self subject. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st deleted file mode 100644 index 6cb12e79..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageDisplaysEmojis.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testMessageDisplaysEmojis - - | message messageMorph | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockEmojiString. - - messageMorph := TCUMessage newFrom: message. - - self forceSaveScreenshotOf: messageMorph as: 'testMessageDisplaysEmojis' in: self class defaultTestResultPath. - self assert: 214134281 equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st deleted file mode 100644 index 5bd6b0b6..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageRequestsAnsweredMessage.st +++ /dev/null @@ -1,17 +0,0 @@ -testing -testMessageRequestsAnsweredMessage - - | message chat | - - chat := self core chatsHandler chats first. - self core client onRequestType: 'getMessage' respond: (TCTMMocks mockMessageJsonFrom: chat id). - - message := TCCTextMessage newFromMessageEvent: (TCTMMocks mockTextMessageJsonFrom: chat id with: #messageSenderUser replyingTo: TCTMMocks mockMessageId) in: chat with: self core. - message text: 'reply message'; - id: (TCTMMocks mockMessageId + 1). - chat addNewestMessage: message. - - self wantsToTest: (TCUMessage newFrom: message). - 0.5 seconds wait. - self assertNotReading: 'Message not loaded' in: self subject. - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st deleted file mode 100644 index 029edab1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMessageShrinksCorrectly.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMessageShrinksCorrectly - - | message messageMorph | - - message := TCTMMocks mockTextMessageWith: self core. - messageMorph := TCUMessage newFrom: message. - - self forceSaveScreenshotOf: messageMorph as: 'testMessageShrinksCorrectly' in: self class defaultTestResultPath. - self assert: 129344219 equals: (self computeHashOf: (self takeScreenshotOf: messageMorph)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st deleted file mode 100644 index b3649ce0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testMouseDownOnMessage.st +++ /dev/null @@ -1,10 +0,0 @@ -testing -testMouseDownOnMessage - - | message messageMorph | - - message := TCTMMocks mockTextMessageWith: self core. - messageMorph := TCUMessage newFrom: message. - messageMorph mouseDown: EventMorph new. - - self assert: message chat selectedReplyToMessageId = messageMorph messageModel id. diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st deleted file mode 100644 index 682f9659..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyLongCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: 'This is a very very very very veeeeeeeeeeery long caption with many irregularly sized words. It even consists of two sentences and definitely bothers the Linter.'. - - self handleScreenShotTestFor: photoMessage with: 45364912 usedBy: 'testTextAndPhotoScaleCorrectly_longCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st deleted file mode 100644 index 8dc0abca..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyLongUserName.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyLongUserName - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage userId: TCTMMocks mockUser2 id. - - self handleScreenShotTestFor: photoMessage with: 127316392 usedBy: 'testTextAndPhotoScaleCorrectly_longUserName'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st deleted file mode 100644 index 6d2fd44f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyNoCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyNoCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: ''. - - self handleScreenShotTestFor: photoMessage with: 2254673 usedBy: 'testTextAndPhotoScaleCorrectly_noCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st deleted file mode 100644 index 461a40f2..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextAndPhotoScaleCorrectlyShortCaption.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextAndPhotoScaleCorrectlyShortCaption - - | photoMessage | - - photoMessage := TCTMMocks mockPhotoMessageWith: self core. - photoMessage caption: 'vry shrt'. - - self handleScreenShotTestFor: photoMessage with: 76064036 usedBy: 'testTextAndPhotoScaleCorrectly_shortCaption'. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st deleted file mode 100644 index 71403b31..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/instance/testTextMessageIsUserMessage.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testTextMessageIsUserMessage - - | message | - - message := (TCTMMocks mockTextMessageWith: self core). - - self wantsToTest: (TCUMessage newFrom: message). - self assert: self subject isUserMessage. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json deleted file mode 100644 index 1a784bfb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/methodProperties.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/6/2021 12:25", - "handleScreenShotTestFor:with:usedBy:" : "RK 6/26/2021 10:15", - "setUp" : "rgw 6/6/2022 18:42", - "testAddMembersMessage" : "ek 8/5/2022 15:37", - "testAddMembersMessageIsNotUserMessage" : "ek 8/5/2022 15:38", - "testDeleteMemberMessage" : "ek 8/5/2022 15:38", - "testDeleteMemberMessageIsNotUserMessage" : "ek 8/5/2022 15:38", - "testMessageBetweenRequestsAnsweredMessage" : "ek 8/5/2022 15:40", - "testMessageColorsDifferentForIncomingOutgoing" : "tom.richter 6/26/2021 17:23", - "testMessageContainsDate" : "tom.richter 6/26/2021 17:23", - "testMessageContainsMessageSender" : "tom.richter 6/26/2021 17:23", - "testMessageContainsMessageText" : "rgw 6/6/2022 18:41", - "testMessageDisplaysEmojis" : "RK 7/6/2021 11:04", - "testMessageRequestsAnsweredMessage" : "ek 8/5/2022 15:43", - "testMessageShrinksCorrectly" : "tom.richter 6/26/2021 21:04", - "testMouseDownOnMessage" : "JS 5/22/2022 18:54", - "testTextAndPhotoScaleCorrectlyLongCaption" : "rgw 8/5/2022 10:33", - "testTextAndPhotoScaleCorrectlyLongUserName" : "rgw 8/5/2022 10:34", - "testTextAndPhotoScaleCorrectlyNoCaption" : "rgw 8/5/2022 10:34", - "testTextAndPhotoScaleCorrectlyShortCaption" : "rgw 8/5/2022 10:34", - "testTextMessageIsUserMessage" : "ek 8/5/2022 15:44" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json deleted file mode 100644 index 21071fda..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JB 6/7/2021 09:37", - "instvars" : [ - ], - "name" : "TCTUMessageTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md deleted file mode 100644 index d5a656b7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Tests the TCUMessageWrapper. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st deleted file mode 100644 index d041bb86..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testDayDividerMessageIdInvalid.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testDayDividerMessageIdInvalid - - | date message | - date := (DateAndTime fromUnixTime: 1376462359) asDate. "14.8.13" - message := TCUDayDividerMessage newFromDate: date. - self wantsToTest: (TCUDayDividerMessageWrapper newFromMessage: message withWidth: 500). - - self assert: self subject messageId < 0. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st deleted file mode 100644 index 05695963..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/instance/testGroupMessageContainsPhoto.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testGroupMessageContainsPhoto - - | message | - message := TCUMessage newFrom: (TCTMMocks mockTextMessageWith: self core inChat: TCTMMocks mockBasicGroupChat). - self wantsToTest: (TCUUserMessageWrapper newFromMessage: message withWidth: 500). - 0.1 seconds wait. - self assert: (self subject morphs first submorphs anySatisfy: [:aMorph | aMorph isImageMorph]). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json deleted file mode 100644 index 32383070..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testDayDividerMessageIdInvalid" : "js 7/31/2022 20:37", - "testGroupMessageContainsPhoto" : "ek 8/5/2022 15:46" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json deleted file mode 100644 index 773f8a0b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMessageWrapperTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "JS 6/11/2022 11:48", - "instvars" : [ - ], - "name" : "TCTUMessageWrapperTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md deleted file mode 100644 index 02ccbedf..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -These tests should be recategorized. diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st deleted file mode 100644 index 2b3b98d1..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testChatMemberCount.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testChatMemberCount - - ((self subject findByClass: TCUChatListItem)morphs) do: [ - :chatListItem | | chatWindowWrapper | - chatWindowWrapper := self subject findByClass: TCUChatWindow. - (MTFMorphWrapper newWith: {chatListItem}) click. - 0.1 seconds wait. - chatListItem chat isPrivate - ifTrue: [ - self assertNotReading: 'Members: ' in: chatWindowWrapper. - ] ifFalse: [ - self assertReading: ('Members: ', chatListItem chat memberCount asString) in: chatWindowWrapper. - ] - ] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st deleted file mode 100644 index 4ff3b56f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/instance/testSelectedChatIsHighlighted.st +++ /dev/null @@ -1,6 +0,0 @@ -testing -testSelectedChatIsHighlighted - - self assert: (self subject chatsList items allSatisfy: [:item | item color = Color white]). - self openChatWithId: 1. - self deny: (self subject chatsList items detect: [:item | item chatId = 1]) color = Color white. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json deleted file mode 100644 index 264dfc5c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testChatMemberCount" : "TR 6/13/2021 14:41", - "testSelectedChatIsHighlighted" : "JB 7/18/2021 13:32" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json deleted file mode 100644 index b2288408..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUMiscellaneousTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/2/2021 15:34", - "instvars" : [ - ], - "name" : "TCTUMiscellaneousTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md deleted file mode 100644 index b4de30bb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUModal. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st deleted file mode 100644 index 6cfc4af8..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testDifferentTypesHaveDifferentColors.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testDifferentTypesHaveDifferentColors - - | errorModal informationModal | - - informationModal := TCUModal newWithText: 'Test Modal' type: 'information'. - errorModal := TCUModal newWithText: 'Test Modal' type: 'error'. - self deny: informationModal color = errorModal color. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st deleted file mode 100644 index 7009571e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/instance/testShowsText.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testShowsText - - self wantsToTest: (TCUModal newWithText: 'Test Modal' type: 'information'). - self assertReading: 'Test Modal' in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json deleted file mode 100644 index d2aeff3e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/methodProperties.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "testDifferentTypesHaveDifferentColors" : "JB 6/7/2021 12:20", - "testShowsText" : "JB 6/7/2021 12:18" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json deleted file mode 100644 index c05ae034..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUModalTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/9/2021 13:46", - "instvars" : [ - ], - "name" : "TCTUModalTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md deleted file mode 100644 index 1ae06ab4..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/README.md +++ /dev/null @@ -1 +0,0 @@ -This class tests a TCUNotification. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st deleted file mode 100644 index 0940dc20..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/expectedSqueak5_2Failures.st +++ /dev/null @@ -1,7 +0,0 @@ -failures -expectedSqueak5_2Failures - - ^ #( - #testNotificationDisplaysEmojis - #testNotificationClipsLongMessage - ) \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st deleted file mode 100644 index ce0f698f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testMutedNotificationNotVisible.st +++ /dev/null @@ -1,8 +0,0 @@ -testing -testMutedNotificationNotVisible - - | message | - message := TCTMMocks mockTextMessageWith: self core. - message chat: TCTMMocks mockMutedPrivateChat. - TCUMainWindow basicNew newMessageReceived: message. - self deny: ((Project current world submorphOfClass: TCUNotification) notNil). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st deleted file mode 100644 index 0faa816f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationClipsLongMessage.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testNotificationClipsLongMessage - - | message notification | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockLongText. - - notification := TCUNotification newWithMessage: message. - - self forceSaveScreenshotOf: notification as: 'testNotificationClipsLongMessage' in: self class defaultTestResultPath. - self assert: 88799637 equals: (self computeHashOf: (self takeScreenshotOf: notification)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st deleted file mode 100644 index a9ab6356..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationConstructor.st +++ /dev/null @@ -1,15 +0,0 @@ -testing -testNotificationConstructor - - | chat message notification | - - chat := TCTMMocks mockPrivateChat. - message := TCCTextMessage new - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id; - text: 'm'. - notification := TCUNotification newWithMessage: message. - - self assert: chat equals: notification chat. - self assert: message equals: notification messageModel. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st deleted file mode 100644 index 0a82329a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsMessage.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testNotificationContainsMessage - - self wantsToTest: (TCUNotification newWithMessage: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockText in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st deleted file mode 100644 index 4fa31488..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationContainsSender.st +++ /dev/null @@ -1,5 +0,0 @@ -testing -testNotificationContainsSender - - self wantsToTest: (TCUNotification newWithMessage: (TCTMMocks mockTextMessageWith: self core)). - self assertReading: TCTMMocks mockUser1 fullName in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st deleted file mode 100644 index 6b3174a7..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationDisplaysEmojis.st +++ /dev/null @@ -1,11 +0,0 @@ -testing -testNotificationDisplaysEmojis - - | message notification | - message := TCTMMocks mockTextMessageWith: self core. - message text: TCTMMocks mockEmojiString. - - notification := TCUNotification newWithMessage: message. - - self forceSaveScreenshotOf: notification as: 'testNotificationDisplaysEmojis' in: self class defaultTestResultPath. - self assert: 249874410 equals: (self computeHashOf: (self takeScreenshotOf: notification)). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st deleted file mode 100644 index 41153e2d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationHidesPrivateChatTitle.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testNotificationHidesPrivateChatTitle - - | chat message | - - chat := TCTMMocks mockPrivateChat. - message := TCCTextMessage new - text: 'test'; - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id. - - self wantsToTest: (TCUNotification newWithMessage: message). - self assertNotReading: TCTMMocks mockPrivateChat title in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st deleted file mode 100644 index 47c2110b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testNotificationShowsGroupChatTitle.st +++ /dev/null @@ -1,14 +0,0 @@ -testing -testNotificationShowsGroupChatTitle - - | chat message | - - chat := TCTMMocks mockBasicGroupChat. - message := TCCTextMessage new - text: 'test'; - chat: chat; - core: self core; - userId: TCTMMocks mockUser1 id. - - self wantsToTest: (TCUNotification newWithMessage: message). - self assertReading: TCTMMocks mockBasicGroupChat title in: self subject. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st deleted file mode 100644 index a2778f5a..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/instance/testUnmutedNotificationVisible.st +++ /dev/null @@ -1,9 +0,0 @@ -testing -testUnmutedNotificationVisible - - | message | - message := TCTMMocks mockTextMessageWith: self core. - message chat: TCTMMocks mockPrivateChat. - TCUMainWindow basicNew newMessageReceived: message. - 1 seconds wait. - self assert: ((Project current world submorphOfClass: TCUNotification) notNil). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json deleted file mode 100644 index 62df2f6f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/methodProperties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "class" : { - }, - "instance" : { - "expectedSqueak5_2Failures" : "pk 7/17/2021 12:33", - "testMutedNotificationNotVisible" : "tom.richter 6/26/2021 17:22", - "testNotificationClipsLongMessage" : "pk 7/17/2021 12:21", - "testNotificationConstructor" : "pk 8/5/2021 16:06", - "testNotificationContainsMessage" : "tom.richter 6/26/2021 17:22", - "testNotificationContainsSender" : "tom.richter 6/26/2021 17:21", - "testNotificationDisplaysEmojis" : "pk 7/17/2021 12:06", - "testNotificationHidesPrivateChatTitle" : "TR 6/22/2021 09:53", - "testNotificationShowsGroupChatTitle" : "TR 6/22/2021 09:54", - "testUnmutedNotificationVisible" : "tom.richter 6/26/2021 17:19" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json deleted file mode 100644 index bfcadf27..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUNotificationTests.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - ], - "commentStamp" : "TR 6/2/2021 15:33", - "instvars" : [ - ], - "name" : "TCTUNotificationTests", - "pools" : [ - ], - "super" : "TCTUTestCase", - "type" : "normal" } diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md deleted file mode 100644 index 0bd58e79..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Provides helper methods for testing UI features diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st deleted file mode 100644 index 0b52ad8e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultExtent.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultExtent - - ^ 1200 @ 800 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st deleted file mode 100644 index 16a0c050..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotBackgroundColor.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotBackgroundColor - - ^ Color black \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st deleted file mode 100644 index f244f8eb..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultScreenshotDepth.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultScreenshotDepth - - ^ 32 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st deleted file mode 100644 index 1b532838..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/class/defaultTestResultPath.st +++ /dev/null @@ -1,4 +0,0 @@ -default values -defaultTestResultPath - - ^ 'telegramTestResults' \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st deleted file mode 100644 index c055c298..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.in..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertNotReading: aString in: aMorphWrapper - - self assert: (self findByTextContent: aString in: aMorphWrapper) morphs isEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st deleted file mode 100644 index b3b86e86..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertNotReading.inMorph..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertNotReading: aString inMorph: aMorph - - self assertNotReading: aString in: (MTFMorphWrapper newWith: {aMorph}). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st deleted file mode 100644 index fa0c656e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.in..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertReading: aString in: aMorphWrapper - - self assert: (self findByTextContent: aString in: aMorphWrapper) morphs notEmpty. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st deleted file mode 100644 index 8b13d48e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/assertReading.inMorph..st +++ /dev/null @@ -1,4 +0,0 @@ -asserting -assertReading: aString inMorph: aMorph - - self assertReading: aString in: (MTFMorphWrapper newWith: {aMorph}). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st deleted file mode 100644 index aeaf0d6c..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/computeHashOf..st +++ /dev/null @@ -1,4 +0,0 @@ -image handling -computeHashOf: aForm - - ^ aForm bits asByteArray hash \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st deleted file mode 100644 index bd19251b..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core..st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -core: aCore - - core := aCore \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st deleted file mode 100644 index 7652dd8d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/core.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -core - - ^ core \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st deleted file mode 100644 index b2403e94..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/defaultTimeout.st +++ /dev/null @@ -1,4 +0,0 @@ -accessing -defaultTimeout - - ^ 30 \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st deleted file mode 100644 index 0d3cba20..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/findByTextContent.in..st +++ /dev/null @@ -1,5 +0,0 @@ -navigating -findByTextContent: aString in: aMorphWrapper - - ^ aMorphWrapper findByCriteria: [ :morph | - (morph respondsTo: #text) and: [morph text asString includesSubstring: aString]] \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st deleted file mode 100644 index 8020ff1e..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/forceSaveScreenshotOf.as.in..st +++ /dev/null @@ -1,10 +0,0 @@ -image handling -forceSaveScreenshotOf: aMorph as: aFileName in: aDirName - - | imageForm directory | - imageForm := self takeScreenshotOf: aMorph. - directory := FileDirectory default directoryNamed: aDirName. - directory assureExistence. - - directory deleteFileNamed: aFileName , '.png'. - imageForm writePNGfileNamed: (directory fullNameFor: aFileName , '.png'). \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st deleted file mode 100644 index 364d2333..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openAnyChat.st +++ /dev/null @@ -1,4 +0,0 @@ -navigating -openAnyChat - - (self subject findByClass: TCUChatListItem) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st deleted file mode 100644 index 1584a1bf..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/openChatWithId..st +++ /dev/null @@ -1,4 +0,0 @@ -navigating -openChatWithId: anId - - (self subject findByCriteria: [ :morph | (morph respondsTo: #chatId) and: [morph chatId = anId]]) click. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st deleted file mode 100644 index e48a606f..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/setUp.st +++ /dev/null @@ -1,10 +0,0 @@ -running -setUp - - self core: (TCTUMockCore newWithTeleClient: TCTMMockTdlibClient new). - self core userStore: TCTMMocks mockUserStore. - self core chatsHandler chats: (TCTMMocks mockChatsFor: self core). - self core client onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. - TCUEmojiHelper ensureEmojisArePresent. - self wantsToTest: (TCUMainWindow newWithCore: self core). - (self subject findByClass: TCUChatsList) step. diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st deleted file mode 100644 index 8a19b860..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/takeScreenshotOf..st +++ /dev/null @@ -1,4 +0,0 @@ -image handling -takeScreenshotOf: aMorph - - ^ aMorph imageForm: self class defaultScreenshotDepth backgroundColor: self class defaultScreenshotBackgroundColor forRectangle: aMorph bounds \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st deleted file mode 100644 index aa224182..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/tearDown.st +++ /dev/null @@ -1,5 +0,0 @@ -running -tearDown - - self deleteMorphs. - self core freeClient. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st deleted file mode 100644 index 380c1a7d..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/instance/waitUntil..st +++ /dev/null @@ -1,4 +0,0 @@ -utility -waitUntil: aBlock - - aBlock whileFalse: [1 seconds wait]. \ No newline at end of file diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json deleted file mode 100644 index f78f2edd..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/methodProperties.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "class" : { - "defaultExtent" : "JB 5/24/2021 16:54", - "defaultScreenshotBackgroundColor" : "JB 5/24/2021 16:21", - "defaultScreenshotDepth" : "JB 5/24/2021 16:20", - "defaultTestResultPath" : "RS 5/23/2021 17:12" }, - "instance" : { - "assertNotReading:in:" : "RS 5/31/2021 07:54", - "assertNotReading:inMorph:" : "JS 5/22/2022 19:17", - "assertReading:in:" : "TR 6/9/2021 14:55", - "assertReading:inMorph:" : "JB 6/26/2021 10:02", - "computeHashOf:" : "RS 5/23/2021 16:19", - "core" : "TR 6/2/2021 15:09", - "core:" : "TR 6/2/2021 15:10", - "defaultTimeout" : "RK 7/4/2021 13:55", - "findByTextContent:in:" : "RS 5/31/2021 07:55", - "forceSaveScreenshotOf:as:in:" : "RS 5/26/2021 13:29", - "openAnyChat" : "JB 7/18/2021 12:22", - "openChatWithId:" : "JB 7/18/2021 12:57", - "setUp" : "ek 8/5/2022 15:47", - "takeScreenshotOf:" : "JB 5/24/2021 16:21", - "tearDown" : "RS 6/25/2021 12:38", - "waitUntil:" : "RS 6/6/2021 13:00" } } diff --git a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json b/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json deleted file mode 100644 index e88a96d0..00000000 --- a/packages/TelegramClientTests-UI.package/TCTUTestCase.class/properties.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "category" : "TelegramClientTests-UI", - "classinstvars" : [ - ], - "classvars" : [ - "Screenshots" ], - "commentStamp" : "RK 5/18/2021 11:36", - "instvars" : [ - "core" ], - "name" : "TCTUTestCase", - "pools" : [ - ], - "super" : "MTFTestCase", - "type" : "normal" } From 4bb7e62c2239a6609c904a750392fdcec3194843 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 13:55:42 +0200 Subject: [PATCH 10/17] moved methods inside stores --- .../TCCImageStore.class/methodProperties.json | 8 +------- .../TCCStickerStore.class/methodProperties.json | 10 +--------- .../TCCVideoStore.class/methodProperties.json | 5 +---- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 62838e4e..45df6bf0 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,11 +1,5 @@ { "class" : { - "extractPathFrom:" : "6/22/2024 13:42:57", - "imageFormFrom:" : "6/22/2024 13:42:57", - "newWith:" : "6/22/2024 13:42:57" }, + }, "instance" : { - "core" : "6/22/2024 13:42:57", - "core:" : "6/22/2024 13:42:57", - "getFormFor:" : "6/22/2024 13:42:57", - "getFormPromiseFor:" : "6/22/2024 13:42:57", "requestImageFor:with:" : "6/22/2024 13:42:57" } } diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index 73ccc8df..9f520c99 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,20 +1,12 @@ { "class" : { - "extractPathFrom:" : "6/22/2024 13:42:57", "imageFormFrom:" : "JK 6/21/2024 13:46", - "newWith:" : "JK 6/20/2024 22:18", - "stickerFormFrom:" : "6/22/2024 13:42:57" }, + "newWith:" : "JK 6/20/2024 22:18" }, "instance" : { - "core" : "6/22/2024 13:42:57", - "core:" : "6/22/2024 13:42:57", "downloadStickerSet:" : "JK 6/19/2024 11:33", - "getFormFor:" : "6/22/2024 13:42:57", - "getFormPromiseFor:" : "6/22/2024 13:42:57", "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", - "stickerIds" : "JK 6/21/2024 14:11", - "stickerIds:" : "JK 6/21/2024 14:11", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", "storeStickerSet:" : "JK 6/19/2024 11:44" } } diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index f000adb9..8085d52e 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,9 +1,6 @@ { "class" : { - "extractPathFrom:" : "6/22/2024 13:42:57", - "imageFormFrom:" : "6/22/2024 13:42:57" }, + }, "instance" : { - "getFormFor:" : "6/22/2024 13:42:57", - "getFormPromiseFor:" : "6/22/2024 13:42:57", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } From e01f34a6c1a728b388cc46d713e4161d20efeae8 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 13:59:18 +0200 Subject: [PATCH 11/17] removed unused methods from stickerList --- .../TCUStickerList.class/methodProperties.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json index fcb91cce..291d1418 100644 --- a/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json @@ -5,17 +5,12 @@ "addCloseButton" : "JK 5/21/2024 10:22", "addNextButton" : "JK 6/19/2024 12:03", "addPreviousButton" : "JK 6/19/2024 12:04", - "buildStickerListItems" : "JK 6/19/2024 11:27", "buildStickerListItemsFor:" : "JK 6/21/2024 14:07", "close" : "JK 5/29/2024 20:09", - "collectInstalledStickers" : "6/22/2024 13:42:57", "convertWebp:" : "6/22/2024 13:42:57", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", - "downloadStickerSetFrom:" : "6/20/2024 11:30:00", "initialize" : "JK 6/20/2024 23:42", - "loadStickers" : "6/20/2024 11:30:00", - "loadStickersFromStore" : "6/20/2024 11:30:00", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", "selectedSet" : "JK 6/20/2024 11:39", From 55b589bedc6156b8fec8d35d78af4ceff2929abb Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 14:47:46 +0200 Subject: [PATCH 12/17] added a few additional test criteria to message tests --- .../TCCImageStore.class/methodProperties.json | 8 +++++++- .../TCCStickerMessage.class/instance/asSnippet.st | 2 +- .../TCCStickerMessage.class/methodProperties.json | 2 +- .../TCCStickerStore.class/methodProperties.json | 10 +++++++++- .../TCCVideoStore.class/methodProperties.json | 5 ++++- .../TCUStickerList.class/methodProperties.json | 5 +++++ ...atedStickerMessageCorrectlyConstructedFromJson.st | 4 +++- .../testPhotoMessageCorrectlyConstructedFromJson.st | 4 +++- ...taticStickerMessageCorrectlyContructedFromJson.st | 4 +++- .../testTextMessageTypeIdentifiedCorrectly.st | 4 +++- .../testVideoMessageCorrectlyConstructedFromJson.st | 4 +++- .../TCTCMessageTests.class/methodProperties.json | 12 ++++++------ 12 files changed, 48 insertions(+), 16 deletions(-) diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 45df6bf0..04936fe2 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,5 +1,11 @@ { "class" : { - }, + "extractPathFrom:" : " 6/23/2024 14:02:55", + "imageFormFrom:" : " 6/23/2024 14:02:55", + "newWith:" : " 6/23/2024 14:02:55" }, "instance" : { + "core" : " 6/23/2024 14:02:55", + "core:" : " 6/23/2024 14:02:55", + "getFormFor:" : " 6/23/2024 14:02:55", + "getFormPromiseFor:" : " 6/23/2024 14:02:55", "requestImageFor:with:" : "6/22/2024 13:42:57" } } diff --git a/packages/TelegramClient-Core.package/TCCStickerMessage.class/instance/asSnippet.st b/packages/TelegramClient-Core.package/TCCStickerMessage.class/instance/asSnippet.st index 0523cf61..29a78d2e 100644 --- a/packages/TelegramClient-Core.package/TCCStickerMessage.class/instance/asSnippet.st +++ b/packages/TelegramClient-Core.package/TCCStickerMessage.class/instance/asSnippet.st @@ -1,4 +1,4 @@ accessing asSnippet - ^ 'Sticker' \ No newline at end of file + ^ 'Sticker: ', self stickerId \ No newline at end of file diff --git a/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json index cce0f495..cfb2db6b 100644 --- a/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json @@ -3,7 +3,7 @@ "newAnimatedStickerFrom:" : "JK 5/31/2024 11:36", "newFrom:" : "JK 6/23/2024 11:39" }, "instance" : { - "asSnippet" : "JK 5/16/2024 16:00", + "asSnippet" : "JK 6/23/2024 14:32", "asText" : "JK 5/16/2024 16:00", "height" : "JK 5/16/2024 16:01", "height:" : "JK 5/16/2024 16:01", diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index 9f520c99..31a555c0 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,12 +1,20 @@ { "class" : { + "extractPathFrom:" : " 6/23/2024 14:02:55", "imageFormFrom:" : "JK 6/21/2024 13:46", - "newWith:" : "JK 6/20/2024 22:18" }, + "newWith:" : "JK 6/20/2024 22:18", + "stickerFormFrom:" : " 6/23/2024 14:02:55" }, "instance" : { + "core" : " 6/23/2024 14:02:55", + "core:" : " 6/23/2024 14:02:55", "downloadStickerSet:" : "JK 6/19/2024 11:33", + "getFormFor:" : " 6/23/2024 14:02:55", + "getFormPromiseFor:" : " 6/23/2024 14:02:55", "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", + "stickerIds" : " 6/23/2024 14:02:55", + "stickerIds:" : " 6/23/2024 14:02:55", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", "storeStickerSet:" : "JK 6/19/2024 11:44" } } diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index 8085d52e..f51dc903 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,6 +1,9 @@ { "class" : { - }, + "extractPathFrom:" : " 6/23/2024 14:02:55", + "imageFormFrom:" : " 6/23/2024 14:02:55" }, "instance" : { + "getFormFor:" : " 6/23/2024 14:02:55", + "getFormPromiseFor:" : " 6/23/2024 14:02:55", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } diff --git a/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json index 291d1418..b4b9cb47 100644 --- a/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json +++ b/packages/TelegramClient-UI.package/TCUStickerList.class/methodProperties.json @@ -5,12 +5,17 @@ "addCloseButton" : "JK 5/21/2024 10:22", "addNextButton" : "JK 6/19/2024 12:03", "addPreviousButton" : "JK 6/19/2024 12:04", + "buildStickerListItems" : " 6/23/2024 14:02:54", "buildStickerListItemsFor:" : "JK 6/21/2024 14:07", "close" : "JK 5/29/2024 20:09", + "collectInstalledStickers" : " 6/23/2024 14:02:54", "convertWebp:" : "6/22/2024 13:42:57", "core" : "JK 5/31/2024 14:29", "core:" : "JK 5/31/2024 14:29", + "downloadStickerSetFrom:" : " 6/23/2024 14:02:54", "initialize" : "JK 6/20/2024 23:42", + "loadStickers" : " 6/23/2024 14:02:54", + "loadStickersFromStore" : " 6/23/2024 14:02:54", "selectedChat" : "JK 5/28/2024 10:22", "selectedChat:" : "JK 5/28/2024 10:23", "selectedSet" : "JK 6/20/2024 11:39", diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st index 258d481a..34cf9b09 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testAnimatedStickerMessageCorrectlyConstructedFromJson.st @@ -7,4 +7,6 @@ testAnimatedStickerMessageCorrectlyConstructedFromJson stickerMessageEvent := TCTMMocks mockAnimatedStickerMessageJsonFrom: chat id. stickerMessage := TCCMessage newFromMessageEvent: stickerMessageEvent in: chat with: self core. - self assert: TCTMMocks mockValidEmoji equals: stickerMessage text. \ No newline at end of file + self assert: TCTMMocks mockValidEmoji equals: stickerMessage text. + self assert: TCTMMocks mockValidEmoji equals: stickerMessage asSnippet. + self assert: TCTMMocks mockValidEmoji equals: stickerMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPhotoMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPhotoMessageCorrectlyConstructedFromJson.st index 5cae7fa8..59f9f9a8 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPhotoMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPhotoMessageCorrectlyConstructedFromJson.st @@ -8,7 +8,9 @@ testPhotoMessageCorrectlyConstructedFromJson photoMessage := TCCMessage newFromMessageEvent: photoMessageEvent in: chat with: self core. self assert: TCTMMocks mockText equals: photoMessage caption. + self assert: TCTMMocks mockText equals: photoMessage asText. self assert: photoMessage hasCaption. self assert: TCTMMocks mockImageId equals: photoMessage fileId. self assert: TCTMMocks mockPhotoHeight equals: photoMessage height. - self assert: TCTMMocks mockPhotoWidth equals: photoMessage width. \ No newline at end of file + self assert: TCTMMocks mockPhotoWidth equals: photoMessage width. + self assert: 'Photo: ', TCTMMocks mockText equals: photoMessage asSnippet. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st index dd056198..61e13bd1 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testStaticStickerMessageCorrectlyContructedFromJson.st @@ -9,4 +9,6 @@ testStaticStickerMessageCorrectlyContructedFromJson self assert: TCTMMocks mockStickerId equals: stickerMessage stickerId. self assert: TCTMMocks mockStickerWidth equals: stickerMessage width. - self assert: TCTMMocks mockStickerHeight equals: stickerMessage height. \ No newline at end of file + self assert: TCTMMocks mockStickerHeight equals: stickerMessage height. + self assert: 'Sticker: ', TCTMMocks mockStickerId equals: stickerMessage asSnippet. + self assert: 'Sticker' equals: stickerMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testTextMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testTextMessageTypeIdentifiedCorrectly.st index 22bdf9d6..2e42c270 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testTextMessageTypeIdentifiedCorrectly.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testTextMessageTypeIdentifiedCorrectly.st @@ -7,4 +7,6 @@ testTextMessageTypeIdentifiedCorrectly textMessageEvent := TCTMMocks mockMessageJsonFrom: chat id. textMessage := TCCMessage newFromMessageEvent: textMessageEvent in: chat with: self core. - self assert: TCCTextMessage equals: textMessage class. \ No newline at end of file + self assert: TCCTextMessage equals: textMessage class. + self assert: TCTMMocks mockText equals: textMessage asSnippet. + self assert: TCTMMocks mockText equals: textMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st index c65831a2..19107e46 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testVideoMessageCorrectlyConstructedFromJson.st @@ -12,4 +12,6 @@ testVideoMessageCorrectlyConstructedFromJson self assert: TCTMMocks mockImageId equals: videoMessage thumbnailId. self assert: TCTMMocks mockPhotoHeight equals: videoMessage height. self assert: TCTMMocks mockPhotoWidth equals: videoMessage width. - self assert: TCTMMocks mockVideoId equals: videoMessage videoId. \ No newline at end of file + self assert: TCTMMocks mockVideoId equals: videoMessage videoId. + self assert: 'Video: ', TCTMMocks mockText equals: videoMessage asSnippet. + self assert: TCTMMocks mockText equals: videoMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index 16572765..089f525d 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -2,7 +2,7 @@ "class" : { }, "instance" : { - "testAnimatedStickerMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 11:49", + "testAnimatedStickerMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:35", "testAnimatedStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:45", "testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 12:01", "testDocumentMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:55", @@ -17,13 +17,13 @@ "testMessageShouldNotify" : "RS 7/17/2021 10:53", "testMessageWithMessageSenderChatCorrectlyConstructedFromJson" : "js 7/31/2022 10:29", "testNotSupportedMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:29", - "testPhotoMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:29", + "testPhotoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31", "testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26", "testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36", "testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13", - "testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 11:43", - "testStaticStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:30", + "testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 14:34", + "testStaticStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 14:34", "testTextMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:30", - "testTextMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:30", - "testVideoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 11:12", + "testTextMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 14:32", + "testVideoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31", "testVideoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:24" } } From 827b1fdcd22ebca3956b1114aef16bc3a5302eb5 Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Sun, 23 Jun 2024 16:37:43 +0200 Subject: [PATCH 13/17] Poll Message Test --- ...PollMessageCorrectlyConstructedFromJson.st | 10 ++++++ .../methodProperties.json | 1 + .../class/mockPollMessageJsonFrom..st | 33 +++++++++++++++++++ ...sen.isChosen.votePercentage.voterCount..st | 11 +++++++ .../class/mockPollOptionsJson.st | 10 ++++++ .../TCTMMocks.class/methodProperties.json | 3 ++ 6 files changed, 68 insertions(+) create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollMessageJsonFrom..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionJson.isBeingChosen.isChosen.votePercentage.voterCount..st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionsJson.st diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st new file mode 100644 index 00000000..e92a6c77 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st @@ -0,0 +1,10 @@ +testing +testPollMessageCorrectlyConstructedFromJson + + | pollMessageEvent chat pollMessage | + + chat := TCTMMocks mockPrivateChat. + pollMessageEvent := TCTMMocks mockPollMessageJsonFrom: chat id. + pollMessage := TCCMessage newFromMessageEvent: pollMessageEvent in: chat with: self core. + + self assert: pollMessage allowsMultipleAnswers equals: true \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index 089f525d..fac4f155 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -19,6 +19,7 @@ "testNotSupportedMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:29", "testPhotoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31", "testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26", + "testPollMessageCorrectlyConstructedFromJson" : "TU 6/23/2024 16:36", "testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36", "testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13", "testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 14:34", diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollMessageJsonFrom..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollMessageJsonFrom..st new file mode 100644 index 00000000..3cab58e4 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollMessageJsonFrom..st @@ -0,0 +1,33 @@ +message - json +mockPollMessageJsonFrom: aChatId + "@linter-ignore" + + ^ (JsonObject newFrom: { + '@type' -> 'message'. + 'id' -> self mockMessageId. + 'chat_id' -> aChatId. + 'sender_id' -> (JsonObject newFrom: { + '@type' -> 'messageSenderUser'. + 'user_id' -> self mockUser1 id + }). + 'content' -> (JsonObject newFrom: { + '@type' -> 'messagePoll'. + 'poll' -> (JsonObject newFrom: { + '@type' -> 'poll'. + 'close_date' -> 0. + 'id' -> 1. + 'is_anonymous' -> false. + 'is_closed' -> false. + 'open_period' -> false. + 'question' -> 'Question'. + 'total_voter_count' -> 0. + 'type' -> (JsonObject newFrom: { + '@type' -> 'pollTypeRegular'. + 'allow_multiple_answers' -> true. + }). + 'options' -> self mockPollOptionsJson. + }). + }). + 'is_outgoing' -> false. + 'date' -> self mockMessageTimestamp + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionJson.isBeingChosen.isChosen.votePercentage.voterCount..st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionJson.isBeingChosen.isChosen.votePercentage.voterCount..st new file mode 100644 index 00000000..19a56480 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionJson.isBeingChosen.isChosen.votePercentage.voterCount..st @@ -0,0 +1,11 @@ +message - json +mockPollOptionJson: text isBeingChosen: beingChosen isChosen: chosen votePercentage: percentage voterCount: count + + ^ (JsonObject newFrom: { + '@type' -> 'pollOption'. + 'is_being_chosen' -> beingChosen. + 'is_chosen' -> chosen. + 'text' -> text. + 'vote_percentage' -> percentage. + 'voter_count' -> count. + }) \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionsJson.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionsJson.st new file mode 100644 index 00000000..3da9a5c9 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockPollOptionsJson.st @@ -0,0 +1,10 @@ +message - json +mockPollOptionsJson + + | options | + options := Array new: 3. + options at: 1 put: (self mockPollOptionJson: 'Option 1' isBeingChosen: false isChosen: true votePercentage: 50 voterCount: 2). + options at: 2 put: (self mockPollOptionJson: 'Option 2' isBeingChosen: false isChosen: false votePercentage: 25 voterCount: 1). + options at: 3 put: (self mockPollOptionJson: 'Option 3' isBeingChosen: false isChosen: false votePercentage: 25 voterCount: 1). + + ^ options. \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json index 11d79f08..7a1f3d77 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json @@ -42,6 +42,9 @@ "mockPhotoMessageJsonFrom:" : "tom.richter 6/28/2021 15:05", "mockPhotoMessageWith:" : "rgw 8/5/2022 10:22", "mockPhotoWidth" : "tom.richter 6/28/2021 13:57", + "mockPollMessageJsonFrom:" : "TU 6/23/2024 16:36", + "mockPollOptionJson:isBeingChosen:isChosen:votePercentage:voterCount:" : "TU 6/23/2024 16:36", + "mockPollOptionsJson" : "TU 6/23/2024 16:36", "mockPrivateChat" : "LR 7/16/2022 12:03", "mockPrivateChatLastMessageIsLoggedInUser" : "LR 7/16/2022 12:25", "mockSingleEmojiSequence" : "pk 7/10/2021 15:21", From d6eb89da5880d97a1dfcf6c5cba377f453caceaf Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Sun, 23 Jun 2024 16:42:01 +0200 Subject: [PATCH 14/17] Add poll message identification test --- .../instance/testPollMessageTypeIdentifiedCorrectly.st | 10 ++++++++++ .../TCTCMessageTests.class/methodProperties.json | 1 + 2 files changed, 11 insertions(+) create mode 100644 packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageTypeIdentifiedCorrectly.st diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageTypeIdentifiedCorrectly.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageTypeIdentifiedCorrectly.st new file mode 100644 index 00000000..62b1b8fe --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageTypeIdentifiedCorrectly.st @@ -0,0 +1,10 @@ +testing +testPollMessageTypeIdentifiedCorrectly + + | pollMessageEvent chat pollMessage | + + chat := TCTMMocks mockPrivateChat. + pollMessageEvent := TCTMMocks mockPollMessageJsonFrom: chat id. + pollMessage := TCCMessage newFromMessageEvent: pollMessageEvent in: chat with: self core. + + self assert: TCCPollMessage equals: pollMessage class. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index fac4f155..632507db 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -20,6 +20,7 @@ "testPhotoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31", "testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26", "testPollMessageCorrectlyConstructedFromJson" : "TU 6/23/2024 16:36", + "testPollMessageTypeIdentifiedCorrectly" : "TU 6/23/2024 16:41", "testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36", "testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13", "testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 14:34", From aae7bf5c6b436e13366b95e07d2a27ae82b3d250 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 17:38:16 +0200 Subject: [PATCH 15/17] added tests for sticker and video store --- .../instance/storeStickerSet..st | 1 + .../methodProperties.json | 5 +---- .../TCTCStickerStoreTests.class/README.md | 1 + .../instance/setUp.st | 5 +++++ .../testCorrectlyLoadsStickerIdsFromJson.st | 9 +++++++++ .../methodProperties.json | 6 ++++++ .../properties.json | 14 ++++++++++++++ .../TCTCVideoStoreTests.class/README.md | 1 + .../instance/setUp.st | 5 +++++ .../instance/testCachesRequests.st | 16 ++++++++++++++++ .../instance/testCanGetImageForm.st | 13 +++++++++++++ .../instance/testCanGetImagePath.st | 9 +++++++++ .../instance/testDidCreateFile.st | 4 ++++ .../methodProperties.json | 9 +++++++++ .../TCTCVideoStoreTests.class/properties.json | 14 ++++++++++++++ .../TCTMMocks.class/class/mockStickerId2.st | 4 ++++ .../TCTMMocks.class/class/mockStickerSet.st | 10 ++++++++++ .../TCTMMocks.class/class/mockStickerSetId.st | 4 ++++ .../class/mockStickerSetJson.st | 18 ++++++++++++++++++ .../TCTMMocks.class/methodProperties.json | 4 ++++ 20 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/README.md create mode 100644 packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/setUp.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/testCorrectlyLoadsStickerIdsFromJson.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/methodProperties.json create mode 100644 packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/properties.json create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/README.md create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/setUp.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCachesRequests.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImageForm.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImagePath.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testDidCreateFile.st create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/methodProperties.json create mode 100644 packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/properties.json create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId2.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSet.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetId.st create mode 100644 packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetJson.st diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st index fe63a49c..194eeb43 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st @@ -2,6 +2,7 @@ utility storeStickerSet: aStickerSet | stickers | + self stickerSets at: (aStickerSet at: 'id') ifAbsent: [ stickers := OrderedCollection new. (aStickerSet at: 'stickers') do: [:sticker | diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index 31a555c0..4eba82f3 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -10,11 +10,8 @@ "downloadStickerSet:" : "JK 6/19/2024 11:33", "getFormFor:" : " 6/23/2024 14:02:55", "getFormPromiseFor:" : " 6/23/2024 14:02:55", - "getInstalledStickers" : "JK 6/5/2024 11:37", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", - "stickerIds" : " 6/23/2024 14:02:55", - "stickerIds:" : " 6/23/2024 14:02:55", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", - "storeStickerSet:" : "JK 6/19/2024 11:44" } } + "storeStickerSet:" : "JK 6/23/2024 16:33" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/README.md b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/README.md new file mode 100644 index 00000000..268b24c1 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/README.md @@ -0,0 +1 @@ +A TCTCImageStoreTests tests wether the TCCImageStore works as it should. diff --git a/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/setUp.st b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/setUp.st new file mode 100644 index 00000000..1f4eefa9 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/setUp.st @@ -0,0 +1,5 @@ +running +setUp + + super setUp. + TCTMMocks writeMockImage. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/testCorrectlyLoadsStickerIdsFromJson.st b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/testCorrectlyLoadsStickerIdsFromJson.st new file mode 100644 index 00000000..e63f8899 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/instance/testCorrectlyLoadsStickerIdsFromJson.st @@ -0,0 +1,9 @@ +testing +testCorrectlyLoadsStickerIdsFromJson + + | stickerSet | + stickerSet := TCTMMocks mockStickerSetJson. + + self core stickerStore storeStickerSet: stickerSet. + + self assert: TCTMMocks mockStickerSet equals: self core stickerStore stickerSets. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/methodProperties.json new file mode 100644 index 00000000..29a8394d --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/methodProperties.json @@ -0,0 +1,6 @@ +{ + "class" : { + }, + "instance" : { + "setUp" : "JK 6/23/2024 16:21", + "testCorrectlyLoadsStickerIdsFromJson" : "JK 6/23/2024 16:43" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/properties.json b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/properties.json new file mode 100644 index 00000000..42a645da --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCStickerStoreTests.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "TelegramClientTests-Core", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "TCTCStickerStoreTests", + "pools" : [ + ], + "super" : "TCTCNoTdlibTestCase", + "type" : "normal" } diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/README.md b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/README.md new file mode 100644 index 00000000..268b24c1 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/README.md @@ -0,0 +1 @@ +A TCTCImageStoreTests tests wether the TCCImageStore works as it should. diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/setUp.st b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/setUp.st new file mode 100644 index 00000000..1f4eefa9 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/setUp.st @@ -0,0 +1,5 @@ +running +setUp + + super setUp. + TCTMMocks writeMockImage. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCachesRequests.st b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCachesRequests.st new file mode 100644 index 00000000..e4692e60 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCachesRequests.st @@ -0,0 +1,16 @@ +testing +testCachesRequests + + | path1 path2 | + self mockTeleClient onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. + + [self core videoStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + path1 := (self core videoStore at: TCTMMocks mockImageId) value. + + [self core videoStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + path2 := (self core videoStore at: TCTMMocks mockImageId) value. + + self assert: path1 equals: path2. + self assert: 1 equals: self core videoStore size. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImageForm.st b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImageForm.st new file mode 100644 index 00000000..f39dd709 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImageForm.st @@ -0,0 +1,13 @@ +testing +testCanGetImageForm + + | form | + form := nil. + + self mockTeleClient onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. + + [form := self core videoStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + + self assert: form notNil. + self assert: form isForm. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImagePath.st b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImagePath.st new file mode 100644 index 00000000..0a987c97 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testCanGetImagePath.st @@ -0,0 +1,9 @@ +testing +testCanGetImagePath + + self mockTeleClient onRequestType: 'downloadFile' respond: TCTMMocks mockImageResponseJson. + + [self core videoStore getFormFor: TCTMMocks mockImageId.] fork. + 1 seconds wait. + + self assert: TCTMMocks mockImagePath equals: (self core videoStore at: TCTMMocks mockImageId) value. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testDidCreateFile.st b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testDidCreateFile.st new file mode 100644 index 00000000..059be00b --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/instance/testDidCreateFile.st @@ -0,0 +1,4 @@ +testing +testDidCreateFile + + self assert: (FileDirectory default isAFileNamed: TCTMMocks mockImagePath). \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/methodProperties.json new file mode 100644 index 00000000..5b6674c7 --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/methodProperties.json @@ -0,0 +1,9 @@ +{ + "class" : { + }, + "instance" : { + "setUp" : "pk 6/19/2021 17:37", + "testCachesRequests" : "JK 6/23/2024 16:56", + "testCanGetImageForm" : "JK 6/23/2024 16:55", + "testCanGetImagePath" : "JK 6/23/2024 16:55", + "testDidCreateFile" : "pk 6/19/2021 17:35" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/properties.json b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/properties.json new file mode 100644 index 00000000..106788bf --- /dev/null +++ b/packages/TelegramClientTests-Core.package/TCTCVideoStoreTests.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "TelegramClientTests-Core", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "TCTCVideoStoreTests", + "pools" : [ + ], + "super" : "TCTCNoTdlibTestCase", + "type" : "normal" } diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId2.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId2.st new file mode 100644 index 00000000..bd32c743 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerId2.st @@ -0,0 +1,4 @@ +sticker +mockStickerId2 + + ^ 20 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSet.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSet.st new file mode 100644 index 00000000..d5a58d45 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSet.st @@ -0,0 +1,10 @@ +sticker +mockStickerSet + + ^ Dictionary new + at: self mockStickerSetId put: ( + OrderedCollection new + add: self mockStickerId; + add: self mockStickerId2; + yourself); + yourself. \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetId.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetId.st new file mode 100644 index 00000000..f171bc2e --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetId.st @@ -0,0 +1,4 @@ +sticker +mockStickerSetId + + ^ 13 \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetJson.st b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetJson.st new file mode 100644 index 00000000..c3555c18 --- /dev/null +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/class/mockStickerSetJson.st @@ -0,0 +1,18 @@ +sticker +mockStickerSetJson + + ^ (JsonObject newFrom: { + 'id' -> self mockStickerSetId. + 'stickers' -> { + (JsonObject newFrom:{ + 'sticker' -> (JsonObject newFrom: { + 'id' -> self mockStickerId. + }). + }). + (JsonObject newFrom:{ + 'sticker' -> (JsonObject newFrom: { + 'id' -> self mockStickerId2. + }). + }). + }. + }). \ No newline at end of file diff --git a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json index 11d79f08..2acba612 100644 --- a/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json +++ b/packages/TelegramClientTests-Misc.package/TCTMMocks.class/methodProperties.json @@ -49,6 +49,10 @@ "mockStaticStickerMessageJsonFrom:" : "JK 6/23/2024 11:40", "mockStickerHeight" : "JK 6/23/2024 11:39", "mockStickerId" : "JK 6/23/2024 11:39", + "mockStickerId2" : "JK 6/23/2024 16:35", + "mockStickerSet" : "JK 6/23/2024 16:46", + "mockStickerSetId" : "JK 6/23/2024 16:35", + "mockStickerSetJson" : "JK 6/23/2024 16:42", "mockStickerWidth" : "JK 6/23/2024 11:39", "mockSupergroupChat" : "rgw 6/2/2022 12:07", "mockSupergroupMembersJson" : "per 6/10/2021 20:53", From 072198bfc3cd99c6723823cee6ff9952fccc2508 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 17:44:53 +0200 Subject: [PATCH 16/17] added asText and asSnippet to TCCDocumentMessage text --- .../testDocumentMessageCorrectlyConstructedFromJson.st | 4 +++- .../TCTCMessageTests.class/methodProperties.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st index d6cc108b..5aaff8f3 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st @@ -7,4 +7,6 @@ testDocumentMessageCorrectlyConstructedFromJson documentMessageEvent := TCTMMocks mockDocumentMessageJsonFrom: chat id. documentMessage := TCCMessage newFromMessageEvent: documentMessageEvent in: chat with: self core. - self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename. \ No newline at end of file + self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename. + self assert: TCTMMocks mockDocumentFileName equals: documentMessage asSnippet. + self assert: TCTMMocks mockDocumentFileName equals: documentMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index 632507db..43619434 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -4,7 +4,7 @@ "instance" : { "testAnimatedStickerMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:35", "testAnimatedStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:45", - "testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 12:01", + "testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 17:43", "testDocumentMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:55", "testMessageAddMembersCorrectlyConstructedFromJson" : "ek 8/5/2022 15:07", "testMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:28", From 8a3cc0c3c03393bb67c8b72a707b48c5d0418305 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 18:02:00 +0200 Subject: [PATCH 17/17] added a few more tests for polls --- .../TCCImageStore.class/methodProperties.json | 14 +++++++------- .../TCCStickerStore.class/methodProperties.json | 15 +++++++++------ .../TCCVideoStore.class/methodProperties.json | 8 ++++---- ...testPollMessageCorrectlyConstructedFromJson.st | 8 +++++++- .../TCTCMessageTests.class/methodProperties.json | 2 +- 5 files changed, 28 insertions(+), 19 deletions(-) diff --git a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json index 04936fe2..c1a99510 100644 --- a/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json @@ -1,11 +1,11 @@ { "class" : { - "extractPathFrom:" : " 6/23/2024 14:02:55", - "imageFormFrom:" : " 6/23/2024 14:02:55", - "newWith:" : " 6/23/2024 14:02:55" }, + "extractPathFrom:" : "6/23/2024 14:02:55", + "imageFormFrom:" : "6/23/2024 14:02:55", + "newWith:" : "6/23/2024 14:02:55" }, "instance" : { - "core" : " 6/23/2024 14:02:55", - "core:" : " 6/23/2024 14:02:55", - "getFormFor:" : " 6/23/2024 14:02:55", - "getFormPromiseFor:" : " 6/23/2024 14:02:55", + "core" : "6/23/2024 14:02:55", + "core:" : "6/23/2024 14:02:55", + "getFormFor:" : "6/23/2024 14:02:55", + "getFormPromiseFor:" : "6/23/2024 14:02:55", "requestImageFor:with:" : "6/22/2024 13:42:57" } } diff --git a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json index 4eba82f3..a59d6222 100644 --- a/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json @@ -1,17 +1,20 @@ { "class" : { - "extractPathFrom:" : " 6/23/2024 14:02:55", + "extractPathFrom:" : "6/23/2024 14:02:55", "imageFormFrom:" : "JK 6/21/2024 13:46", "newWith:" : "JK 6/20/2024 22:18", - "stickerFormFrom:" : " 6/23/2024 14:02:55" }, + "stickerFormFrom:" : "6/23/2024 14:02:55" }, "instance" : { - "core" : " 6/23/2024 14:02:55", - "core:" : " 6/23/2024 14:02:55", + "core" : "6/23/2024 14:02:55", + "core:" : "6/23/2024 14:02:55", "downloadStickerSet:" : "JK 6/19/2024 11:33", - "getFormFor:" : " 6/23/2024 14:02:55", - "getFormPromiseFor:" : " 6/23/2024 14:02:55", + "getFormFor:" : "6/23/2024 14:02:55", + "getFormPromiseFor:" : "6/23/2024 14:02:55", + "getInstalledStickers" : " 6/23/2024 17:46:17", "loadStickerIds" : "JK 6/20/2024 23:39", "requestStickerFor:with:" : "JK 5/16/2024 21:40", + "stickerIds" : " 6/23/2024 17:46:17", + "stickerIds:" : " 6/23/2024 17:46:17", "stickerSets" : "JK 6/19/2024 11:30", "stickerSets:" : "JK 6/19/2024 11:30", "storeStickerSet:" : "JK 6/23/2024 16:33" } } diff --git a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json index f51dc903..c788988d 100644 --- a/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json +++ b/packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json @@ -1,9 +1,9 @@ { "class" : { - "extractPathFrom:" : " 6/23/2024 14:02:55", - "imageFormFrom:" : " 6/23/2024 14:02:55" }, + "extractPathFrom:" : "6/23/2024 14:02:55", + "imageFormFrom:" : "6/23/2024 14:02:55" }, "instance" : { - "getFormFor:" : " 6/23/2024 14:02:55", - "getFormPromiseFor:" : " 6/23/2024 14:02:55", + "getFormFor:" : "6/23/2024 14:02:55", + "getFormPromiseFor:" : "6/23/2024 14:02:55", "getVideoFor:" : "JK 6/12/2024 19:48", "getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st index e92a6c77..29309081 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testPollMessageCorrectlyConstructedFromJson.st @@ -7,4 +7,10 @@ testPollMessageCorrectlyConstructedFromJson pollMessageEvent := TCTMMocks mockPollMessageJsonFrom: chat id. pollMessage := TCCMessage newFromMessageEvent: pollMessageEvent in: chat with: self core. - self assert: pollMessage allowsMultipleAnswers equals: true \ No newline at end of file + self assert: pollMessage allowsMultipleAnswers equals: true. + self assert: 'Question' equals: pollMessage question. + self assert: 'pollTypeRegular' equals: pollMessage pollType. + self assert: false equals: pollMessage isClosed. + self assert: false equals: pollMessage isAnonymous. + self assert: 'Question' equals: pollMessage asText. + self assert: 'Question' equals: pollMessage asSnippet. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index 43619434..0a889db7 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -19,7 +19,7 @@ "testNotSupportedMessageTypeIdentifiedCorrectly" : "js 7/31/2022 10:29", "testPhotoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31", "testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26", - "testPollMessageCorrectlyConstructedFromJson" : "TU 6/23/2024 16:36", + "testPollMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 17:58", "testPollMessageTypeIdentifiedCorrectly" : "TU 6/23/2024 16:41", "testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36", "testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13",