Skip to content

Commit 921f7d8

Browse files
authored
chore: fix typos (microsoft#1482)
1 parent 2f91de5 commit 921f7d8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

playwright/_impl/_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def dispatch(self, msg: ParsedMessagePayload) -> None:
327327
else:
328328
object._channel.emit(method, self._replace_guids_with_channels(params))
329329
except BaseException as exc:
330-
print("Error occured in event listener", file=sys.stderr)
330+
print("Error occurred in event listener", file=sys.stderr)
331331
traceback.print_exc()
332332
self._error = exc
333333

playwright/sync_api/_py37ThreadedChildWatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def add_child_handler(self, pid, callback, *args):
118118
def remove_child_handler(self, pid):
119119
# asyncio never calls remove_child_handler() !!!
120120
# The method is no-op but is implemented because
121-
# abstract base classe requires it
121+
# abstract base classes requires it
122122
return True
123123

124124
def attach_loop(self, loop):

tests/assets/download-blob.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
download("Hello world", "example.txt");
2525
}
2626
</script>
27-
<a onclick="javascipt:downloadIt();">Download</a>
27+
<a onclick="javascript:downloadIt();">Download</a>
2828
</body>
2929
</html>

tests/async/test_defaultbrowsercontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def launch_persistent(tmpdir, launch_arguments, browser_type):
2828
async def _launch(**options):
2929
nonlocal context
3030
if context:
31-
raise ValueError("can only launch one persitent context")
31+
raise ValueError("can only launch one persistent context")
3232
context = await browser_type.launch_persistent_context(
3333
str(tmpdir), **{**launch_arguments, **options}
3434
)

tests/async/test_focus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def test_should_traverse_only_form_elements(page):
8383
await page.set_content(
8484
"""
8585
<input id="input-1">
86-
<button id="button">buttton</button>
86+
<button id="button">button</button>
8787
<a href id="link">link</a>
8888
<input id="input-2">
8989
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy