Function
test_local_storage_clear
(page: Page, server: Server)
Source from the content-addressed store, hash-verified
| 51 | |
| 52 | |
| 53 | def test_local_storage_clear(page: Page, server: Server) -> None: |
| 54 | page.goto(server.EMPTY_PAGE) |
| 55 | page.local_storage.set_item("foo", "bar") |
| 56 | page.local_storage.clear() |
| 57 | length = page.evaluate("() => localStorage.length") |
| 58 | assert length == 0 |
| 59 | |
| 60 | |
| 61 | def test_session_storage_set_and_get_item(page: Page, server: Server) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected