mirror of
https://github.com/pvrzz/Portage.git
synced 2026-11-29 05:22:26 +00:00
test: verify profile storage import in isolated Chrome 156
This commit is contained in:
@@ -49,4 +49,6 @@ For tests (synthetic, no personal browser data):
|
||||
```sh
|
||||
python3 -m unittest discover -s tests -p 'test_*.py'
|
||||
node tests/test_storage_browser.cjs
|
||||
# Optional: requires Puppeteer and a local Chrome installation; uses a temp profile
|
||||
node tests/e2e_chrome.cjs
|
||||
```
|
||||
|
||||
@@ -115,7 +115,7 @@ def export_profile(profile: Path):
|
||||
entries = conn.execute('SELECT key, value, conversion_type, compression_type FROM data').fetchall()
|
||||
if not entries:
|
||||
continue
|
||||
items = {}
|
||||
items = {} # Preserve all JSON keys, including "__proto__".
|
||||
for key, value, conversion, compression in entries:
|
||||
if not isinstance(key, str):
|
||||
raise ValueError('Non-text localStorage key')
|
||||
|
||||
Reference in New Issue
Block a user