mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
cookie: add test for 'document.cookie' rewriting
This commit is contained in:
parent
fa52e0126d
commit
f80c27ec00
@ -53,6 +53,10 @@ r"""
|
||||
>>> _test_js('cool_Location = "//example.com/abc.html" //comment')
|
||||
'cool_Location = "/web/20131010em_/http://example.com/abc.html" //comment'
|
||||
|
||||
# document.cookie test
|
||||
>>> _test_js('document.cookie = "a=b; Path=/"')
|
||||
'document.WB_wombat_cookie = "a=b; Path=/"'
|
||||
|
||||
|
||||
#=================================================================
|
||||
# XML Rewriting
|
||||
|
Loading…
x
Reference in New Issue
Block a user