dd basic drag thumbnail support to dnd kitten

This commit is contained in:
Kovid Goyal
2026-05-03 22:18:18 +05:30
parent ee38d3f0c8
commit 4fe29f2630
6 changed files with 108 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ try:
from PIL import Image
except ImportError:
Image = None
png_data = base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg==')
def send_command(screen, cmd, payload=b''):
cmd = '\033_G' + cmd
@@ -505,7 +505,6 @@ class TestGraphics(BaseTest):
def test_load_png_simple(self):
# 1x1 transparent PNG
png_data = base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg==')
expected = b'\x00\xff\xff\x7f'
self.ae(load_png_data(png_data), (expected, 1, 1))
s, g, pl, sl = load_helpers(self)