Skip to content

Commit

Permalink
remove px_to_cm from background test
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Jun 13, 2023
1 parent 47621c2 commit 091475e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions webdriver/tests/bidi/browsing_context/print/background.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import base64
import pytest

from tests.support.image import px_to_cm
from tests.support.pdf import assert_pdf


pytestmark = pytest.mark.asyncio


INLINE_BACKGROUND_RENDERING_TEST_CONTENT = """
<style>
:root {
Expand Down Expand Up @@ -39,8 +36,7 @@ async def test_background(
):
page = inline(INLINE_BACKGROUND_RENDERING_TEST_CONTENT)
await bidi_session.browsing_context.navigate(
context=top_context["context"], url=page, wait="complete"
)
context=top_context["context"], url=page, wait="complete")

print_value = await bidi_session.browsing_context.print(
context=top_context["context"],
Expand All @@ -52,8 +48,8 @@ async def test_background(
"left": 0
},
page={
"width": px_to_cm(96),
"height": px_to_cm(96),
"width": 2.54,
"height": 2.54,
},
)

Expand Down

0 comments on commit 091475e

Please sign in to comment.