Add a a=q mode for querying without storing image data

This commit is contained in:
Kovid Goyal
2017-10-06 23:43:42 +05:30
parent 9e284442e8
commit 6a65f23f98
3 changed files with 27 additions and 10 deletions

View File

@@ -124,6 +124,10 @@ class TestGraphics(BaseTest):
def test_load_images(self):
s, g, l, sl = load_helpers(self)
# Test load query
self.ae(l('abcd', s=1, v=1, a='q'), 'OK')
self.ae(g.image_count, 0)
# Test simple load
for f in 32, 24:
p = 'abc' + ('d' if f == 32 else '')