mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
No bug: apply code formatting via Lando
# ignore-this-changeset
This commit is contained in:
parent
f10706c600
commit
0d8018c3aa
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
|
||||
from tests.support.image import png_dimensions
|
||||
|
||||
from . import compare_png_data, viewport_dimensions
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
|
||||
import webdriver.bidi.error as error
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user