Get chunked loading working with frames

This commit is contained in:
Kovid Goyal
2021-02-04 21:04:44 +05:30
parent 5d2baaac38
commit 7a1785e1e8
5 changed files with 41 additions and 24 deletions

View File

@@ -609,7 +609,9 @@ class TestGraphics(BaseTest):
self.assertEqual(g.disk_cache.total_size, 36)
# simple new frame (width=4, height=3)
t(payload='2' * 36, z=77)
self.assertIsNone(li(payload='2' * 12, z=77, m=1))
self.assertIsNone(li(payload='2' * 12, z=77, m=1))
t(payload='2' * 12, z=77)
img = g.image_for_client_id(1)
self.assertEqual(img['extra_frames'], ({'gap': 77, 'id': 2, 'data': b'2' * 36},))
# test editing a frame