Skip to content

Commit

Permalink
No bug: apply code formatting via Lando
Browse files Browse the repository at this point in the history
# ignore-this-changeset
  • Loading branch information
Otto Länd committed Dec 12, 2022
1 parent 8d7dfce commit a3a2f22
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest

from tests.support.image import png_dimensions

from . import compare_png_data, viewport_dimensions
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest

import webdriver.bidi.error as error


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from webdriver import Element, NoSuchAlertException, WebDriverException


# WebDriver specification ID: dfn-error-response-data
errors = {
"detached shadow root": 404,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit a3a2f22

Please sign in to comment.