mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Specify that unknown payload types should be ignored
This commit is contained in:
parent
786b7aa7c7
commit
9484814c3f
3 changed files with 29 additions and 19 deletions
|
|
@ -542,7 +542,7 @@ class TestParser(BaseTest):
|
|||
def h(raw_data, osc_code=99, window_id=1):
|
||||
nonlocal prev_cmd
|
||||
try:
|
||||
x = handle_notification_cmd(osc_code, raw_data, window_id, prev_cmd, notify)
|
||||
x = handle_notification_cmd(osc_code, raw_data, window_id, prev_cmd, notify, log_warnings=False)
|
||||
if x is not None and osc_code == 99:
|
||||
prev_cmd = x
|
||||
except QueryResponse as err:
|
||||
|
|
@ -582,7 +582,6 @@ class TestParser(BaseTest):
|
|||
self.ae(activations, [('0', 1, True, False)])
|
||||
reset()
|
||||
|
||||
|
||||
h('d=0:i=x:a=-report;title')
|
||||
h('d=1:i=x:a=report;body')
|
||||
self.ae(notifications, [('titlebody', '', 'i0', Urgency.Normal)])
|
||||
|
|
@ -590,6 +589,11 @@ class TestParser(BaseTest):
|
|||
self.ae(activations, [('x', 1, True, True)])
|
||||
reset()
|
||||
|
||||
h('d=0:i=y;title')
|
||||
h('d=1:i=y:p=xxx;title')
|
||||
self.ae(notifications, [('title', '', 'i0', Urgency.Normal)])
|
||||
reset()
|
||||
|
||||
h(';title')
|
||||
self.ae(notifications, [('title', '', 'i0', Urgency.Normal)])
|
||||
notification_activated(notifications[-1][-2], activated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue