Inline long text in long text cases.
This commit is contained in:
parent
316c3d5eb1
commit
df09e4bfa9
@ -24,6 +24,14 @@ object ChatItemStandardMessageLongTextTestCase : TestCase("chat_item_standard_me
|
||||
val incoming = some(incomingGenerator)
|
||||
val outgoing = some(outgoingGenerator)
|
||||
|
||||
val shouldUseLongBody = someBoolean()
|
||||
val longTextBody = "Y" + "o".repeat(127 * 1024)
|
||||
val shortTextBody = some(Generators.textBody())
|
||||
|
||||
val bodyText = if (shouldUseLongBody) longTextBody else shortTextBody
|
||||
val longTextPointerCandidate = some(Generators.longTextFilePointer())
|
||||
val longTextPointer = if (shouldUseLongBody) null else longTextPointerCandidate
|
||||
|
||||
frames += Frame(
|
||||
chatItem = ChatItem(
|
||||
chatId = StandardFrames.chatAlice.chat!!.id,
|
||||
@ -37,9 +45,9 @@ object ChatItemStandardMessageLongTextTestCase : TestCase("chat_item_standard_me
|
||||
outgoing = outgoing,
|
||||
standardMessage = StandardMessage(
|
||||
text = Text(
|
||||
body = some(Generators.textBody())
|
||||
body = bodyText
|
||||
),
|
||||
longText = some(Generators.longTextFilePointer()),
|
||||
longText = longTextPointer,
|
||||
reactions = some(Generators.reactions(2, StandardFrames.recipientSelf.recipient!!, StandardFrames.recipientAlice.recipient))
|
||||
)
|
||||
)
|
||||
|
||||
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 4
|
||||
chatId = 2
|
||||
dateSent = 1700984146923
|
||||
dateSent = 1756928217334
|
||||
incoming = IncomingMessageDetails {
|
||||
dateReceived = 1680366577838
|
||||
dateServerSent = 1688484601889
|
||||
@ -141,17 +141,17 @@ Frame {
|
||||
contentType = "text/x-signal-plain"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <7c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899994d295169f37545>
|
||||
key = <58a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc5ab1cf72b00738e1>
|
||||
encryptedDigest = <b00738e125ef73707c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899>
|
||||
key = <59872972fc853ca658a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 1629088938
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
size = 1346806477
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
text = Text {
|
||||
body = "brute veritus unum"
|
||||
body = "repudiandae brute"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146925
|
||||
dateSent = 1756928217336
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -142,35 +142,35 @@ Frame {
|
||||
standardMessage = StandardMessage {
|
||||
longText = FilePointer {
|
||||
contentType = "text/x-signal-plain"
|
||||
fileName = "dKPNuFXypj"
|
||||
fileName = "LxdKPN"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <1f78622caf4b15d212e5d730c3c226dc221e8fec3522a5e4cd2f910df5668247>
|
||||
key = <98749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78d6bf0ffb1ec67707ad43f2d167963887aa1d063c8db57633>
|
||||
encryptedDigest = <1ec67707ad43f2d167963887aa1d063c8db57633fa5483f31f78622caf4b15d2>
|
||||
key = <a867e8b454754359d4337a3cc4f08757f22b67999610114498749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 2060227180
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
size = 1629088938
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitCdnNumber = 3
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
reactions = [
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1735129320454
|
||||
sentTimestamp = 1906526697607
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1735129320455
|
||||
sentTimestamp = 1906526697608
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
text = Text {
|
||||
body = "disputationi quaeque an pretium ubique reprehendunt quisque"
|
||||
body = "pretium ubique"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146927
|
||||
dateSent = 1756928217338
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -145,25 +145,25 @@ Frame {
|
||||
contentType = "text/x-signal-plain"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <7c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899994d295169f37545>
|
||||
key = <58a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc5ab1cf72b00738e1>
|
||||
encryptedDigest = <b00738e125ef73707c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899>
|
||||
key = <59872972fc853ca658a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 1629088938
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
size = 1346806477
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
reactions = [
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1735129320454
|
||||
sentTimestamp = 1906526697607
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
text = Text {
|
||||
body = "sapien tristique sale"
|
||||
body = "unum utinam sapien tristique sale quaerendum disputationi quaeque"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146929
|
||||
dateSent = 1756928217340
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -143,21 +143,21 @@ Frame {
|
||||
standardMessage = StandardMessage {
|
||||
longText = FilePointer {
|
||||
contentType = "text/x-signal-plain"
|
||||
fileName = "dKPNuFXypj"
|
||||
fileName = "LxdKPN"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <1f78622caf4b15d212e5d730c3c226dc221e8fec3522a5e4cd2f910df5668247>
|
||||
key = <98749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78d6bf0ffb1ec67707ad43f2d167963887aa1d063c8db57633>
|
||||
encryptedDigest = <1ec67707ad43f2d167963887aa1d063c8db57633fa5483f31f78622caf4b15d2>
|
||||
key = <a867e8b454754359d4337a3cc4f08757f22b67999610114498749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 2060227180
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
size = 1629088938
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitCdnNumber = 3
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
text = Text {
|
||||
body = "brute veritus unum"
|
||||
body = "repudiandae brute"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146931
|
||||
dateSent = 1756928217342
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -144,31 +144,31 @@ Frame {
|
||||
contentType = "text/x-signal-plain"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <7c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899994d295169f37545>
|
||||
key = <58a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc5ab1cf72b00738e1>
|
||||
encryptedDigest = <b00738e125ef73707c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899>
|
||||
key = <59872972fc853ca658a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 1629088938
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
size = 1346806477
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
reactions = [
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1735129320454
|
||||
sentTimestamp = 1906526697607
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1735129320455
|
||||
sentTimestamp = 1906526697608
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
text = Text {
|
||||
body = "disputationi quaeque an pretium ubique reprehendunt quisque"
|
||||
body = "pretium ubique"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146933
|
||||
dateSent = 1756928217344
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -145,29 +145,29 @@ Frame {
|
||||
standardMessage = StandardMessage {
|
||||
longText = FilePointer {
|
||||
contentType = "text/x-signal-plain"
|
||||
fileName = "dKPNuFXypj"
|
||||
fileName = "LxdKPN"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <1f78622caf4b15d212e5d730c3c226dc221e8fec3522a5e4cd2f910df5668247>
|
||||
key = <98749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78d6bf0ffb1ec67707ad43f2d167963887aa1d063c8db57633>
|
||||
encryptedDigest = <1ec67707ad43f2d167963887aa1d063c8db57633fa5483f31f78622caf4b15d2>
|
||||
key = <a867e8b454754359d4337a3cc4f08757f22b67999610114498749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 2060227180
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
size = 1629088938
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitCdnNumber = 3
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
reactions = [
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1735129320454
|
||||
sentTimestamp = 1906526697607
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
text = Text {
|
||||
body = "sapien tristique sale"
|
||||
body = "unum utinam sapien tristique sale quaerendum disputationi quaeque"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146935
|
||||
dateSent = 1756928217346
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -147,17 +147,17 @@ Frame {
|
||||
contentType = "text/x-signal-plain"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <7c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899994d295169f37545>
|
||||
key = <58a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc5ab1cf72b00738e1>
|
||||
encryptedDigest = <b00738e125ef73707c0a1a54a78a536a99eb27976fb2a59dcf3429a08f357899>
|
||||
key = <59872972fc853ca658a12027e42941e2e1f45a96bc4c7227ad0710860c22bad9944dc49190adabba8a72bebb4db939e0342ae035ddbe7fe465fdb345d9345fdc>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 1629088938
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
size = 1346806477
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
text = Text {
|
||||
body = "brute veritus unum"
|
||||
body = "repudiandae brute"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -130,7 +130,7 @@ Frame {
|
||||
chatItem = ChatItem {
|
||||
authorId = 1
|
||||
chatId = 2
|
||||
dateSent = 1700984146937
|
||||
dateSent = 1756928217348
|
||||
outgoing = OutgoingMessageDetails {
|
||||
sendStatus = [
|
||||
SendStatus {
|
||||
@ -144,35 +144,35 @@ Frame {
|
||||
standardMessage = StandardMessage {
|
||||
longText = FilePointer {
|
||||
contentType = "text/x-signal-plain"
|
||||
fileName = "dKPNuFXypj"
|
||||
fileName = "LxdKPN"
|
||||
invalidAttachmentLocator = InvalidAttachmentLocator {}
|
||||
locatorInfo = LocatorInfo {
|
||||
encryptedDigest = <1f78622caf4b15d212e5d730c3c226dc221e8fec3522a5e4cd2f910df5668247>
|
||||
key = <98749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78d6bf0ffb1ec67707ad43f2d167963887aa1d063c8db57633>
|
||||
encryptedDigest = <1ec67707ad43f2d167963887aa1d063c8db57633fa5483f31f78622caf4b15d2>
|
||||
key = <a867e8b454754359d4337a3cc4f08757f22b67999610114498749f3fd268ebfe4cb7634ea9ab33f68328b1520712b5adab5ce2a61c11f4a53bc87b1036327e78>
|
||||
legacyDigest = <>
|
||||
legacyMediaName = ""
|
||||
size = 2060227180
|
||||
transitCdnKey = "nkaWIBHCZROt"
|
||||
size = 1629088938
|
||||
transitCdnKey = "YPnkaWIBH"
|
||||
transitCdnNumber = 3
|
||||
transitTierUploadTimestamp = 1715517260399
|
||||
transitTierUploadTimestamp = 1714192135940
|
||||
}
|
||||
}
|
||||
reactions = [
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1735129320454
|
||||
sentTimestamp = 1906526697607
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1735129320455
|
||||
sentTimestamp = 1906526697608
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
text = Text {
|
||||
body = "disputationi quaeque an pretium ubique reprehendunt quisque"
|
||||
body = "pretium ubique"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user