(self)
| 4 | |
| 5 | class TestGeolocation(BaseCase): |
| 6 | def tearDown(self): |
| 7 | self.save_teardown_screenshot() # If test fails, or if "--screenshot" |
| 8 | if self.is_chromium() and not self._multithreaded: |
| 9 | # Reset Permissions and GeolocationOverride |
| 10 | try: |
| 11 | self.goto("about:blank") |
| 12 | self.execute_cdp_cmd("Emulation.setGeolocationOverride", {}) |
| 13 | self.execute_cdp_cmd("Browser.resetPermissions", {}) |
| 14 | except Exception: |
| 15 | pass |
| 16 | super().tearDown() |
| 17 | |
| 18 | def test_geolocation(self): |
| 19 | self.goto("about:blank") |
nothing calls this directly
no test coverage detected