No bug: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd 2022-12-12 13:47:41 +00:00
parent f10706c600
commit 0d8018c3aa
8 changed files with 17 additions and 19 deletions

View File

@ -1,5 +1,5 @@
import base64
from typing import Any, Optional, Mapping, MutableMapping
from typing import Any, Mapping, MutableMapping, Optional
from ._module import BidiModule, command

View File

@ -1,8 +1,8 @@
from base64 import encodebytes
from tests.support.image import png_dimensions
from webdriver.bidi.modules.script import ContextTarget
from tests.support.image import png_dimensions
async def viewport_dimensions(bidi_session, context):
"""Get the dimensions of the viewport containing context.

View File

@ -1,5 +1,4 @@
import pytest
from tests.support.image import png_dimensions
from . import compare_png_data, viewport_dimensions

View File

@ -1,11 +1,12 @@
import pytest
from tests.support.image import png_dimensions
from tests.support.screenshot import (DEFAULT_CONTENT,
REFERENCE_CONTENT,
REFERENCE_STYLE,
OUTER_IFRAME_STYLE,
INNER_IFRAME_STYLE)
from tests.support.screenshot import (
DEFAULT_CONTENT,
INNER_IFRAME_STYLE,
OUTER_IFRAME_STYLE,
REFERENCE_CONTENT,
REFERENCE_STYLE,
)
from . import compare_png_data, viewport_dimensions

View File

@ -1,5 +1,4 @@
import pytest
import webdriver.bidi.error as error

View File

@ -3,7 +3,6 @@ from base64 import decodebytes
from webdriver import Element, NoSuchAlertException, WebDriverException
# WebDriver specification ID: dfn-error-response-data
errors = {
"detached shadow root": 404,

View File

@ -87,8 +87,7 @@ def add_and_remove_iframe(bidi_session, inline):
async def closed_frame(context, url=inline("test-frame")):
initial_contexts = await bidi_session.browsing_context.get_tree(root=context["context"])
resp = await bidi_session.script.call_function(
function_declaration=
"""(url) => {
function_declaration="""(url) => {
const iframe = document.createElement("iframe");
// Once we're confident implementations support returning the iframe, just
// return that directly. For now generate a unique id to use as a handle.

View File

@ -1,14 +1,15 @@
import pytest
from tests.support.asserts import assert_success
from tests.support.image import png_dimensions
from tests.support.screenshot import (
DEFAULT_CONTENT,
INNER_IFRAME_STYLE,
OUTER_IFRAME_STYLE,
REFERENCE_CONTENT,
REFERENCE_STYLE,
)
from . import viewport_dimensions
from tests.support.screenshot import (DEFAULT_CONTENT,
REFERENCE_CONTENT,
REFERENCE_STYLE,
OUTER_IFRAME_STYLE,
INNER_IFRAME_STYLE)
def take_screenshot(session):