Add tests for id sanitization
This commit is contained in:
parent
1f656eccbb
commit
adc9a61e2c
1 changed files with 2 additions and 2 deletions
|
|
@ -223,7 +223,7 @@ def assert_events(focus=True, close=0, report='', close_response='', live=''):
|
|||
assert_events(focus=True, report='c', close=True, close_response='c')
|
||||
reset()
|
||||
|
||||
h('i=a;title')
|
||||
h('i=a[;title')
|
||||
h('i=b;title')
|
||||
h('i=live:p=alive;')
|
||||
assert_events(focus=False, live='a,b')
|
||||
|
|
@ -290,7 +290,7 @@ def send_with_icon(data='', n='', g=''):
|
|||
for x in n.split(','):
|
||||
m += f'n={standard_b64encode(x.encode()).decode()}:'
|
||||
if g:
|
||||
m += f'g={g}:'
|
||||
m += f'g=({g}:'
|
||||
h(f'i=9:d=0:{m};title')
|
||||
h(f'i=9:p=icon;{data}')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue