1
0
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:
Ilya Kreymer 2014-07-15 12:57:02 -07:00
parent fa52e0126d
commit f80c27ec00

View File

@ -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