Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /webdriver/tests/bidi/browser/set_client_window_state/invalid.py
- FAIL test_client_window_width_invalid_bounds[2147483649] - Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
- first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e', bound = 2147483649
- @pytest.mark.parametrize("bound", [-1, MAX_INT + 1])
- async def test_client_window_width_invalid_bounds(bidi_session, first_window_id, bound):
- > with pytest.raises(error.InvalidArgumentException):
- E Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
- bound = 2147483649
- first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e'
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/invalid.py:86: Failed
- FAIL test_client_window_height_invalid_bounds[2147483649] - Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
- first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e', bound = 2147483649
- @pytest.mark.parametrize("bound", [-1, MAX_INT + 1])
- async def test_client_window_height_invalid_bounds(bidi_session, first_window_id, bound):
- > with pytest.raises(error.InvalidArgumentException):
- E Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
- bound = 2147483649
- first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e'
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/invalid.py:104: Failed
- /webdriver/tests/bidi/browser/set_client_window_state/rect_state.py
- FAIL test_move_xy - assert 450 == 800
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_move_xy(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- x=100,
- y=200
- )
- assert result["state"] == "normal"
- assert result["x"] == 100
- assert result["y"] == 200
- > assert result["width"] == initial_window_state["width"]
- E assert 450 == 800
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 120,
- 'state': 'normal',
- 'width': 450,
- 'x': 100,
- 'y': 200}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:17: AssertionError
- FAIL test_move_x - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_move_x(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- x=100
- )
- assert result["state"] == "normal"
- assert result["x"] == 100
- > assert result["y"] == initial_window_state["y"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 120,
- 'state': 'normal',
- 'width': 450,
- 'x': 100,
- 'y': 0}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:28: AssertionError
- FAIL test_move_y - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_move_y(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- y=200
- )
- assert result["state"] == "normal"
- assert result["y"] == 200
- > assert result["x"] == initial_window_state["x"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 120,
- 'state': 'normal',
- 'width': 450,
- 'x': 0,
- 'y': 200}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:40: AssertionError
- FAIL test_resize_width_height - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_resize_width_height(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- width=800,
- height=600
- )
- assert result["state"] == "normal"
- assert result["width"] == 800
- assert result["height"] == 600
- # Verify other values haven't changed
- > assert result["x"] == initial_window_state["x"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 0,
- 'y': 0}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:55: AssertionError
- FAIL test_resize_width - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_resize_width(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- width=800
- )
- assert result["state"] == "normal"
- assert result["width"] == 800
- # Verify other values haven't changed
- > assert result["x"] == initial_window_state["x"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 120,
- 'state': 'normal',
- 'width': 800,
- 'x': 0,
- 'y': 0}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:67: AssertionError
- FAIL test_resize_height - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_resize_height(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL,
- height=600
- )
- assert result["state"] == "normal"
- assert result["height"] == 600
- # Verify other values haven't changed
- > assert result["x"] == initial_window_state["x"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 450,
- 'x': 0,
- 'y': 0}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:80: AssertionError
- FAIL test_no_position_resize - assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
- async def test_no_position_resize(bidi_session, first_window_id, initial_window_state):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=ClientWindowRectState.NORMAL
- )
- assert result["state"] == "normal"
- > assert result["x"] == initial_window_state["x"]
- E assert 0 == 100
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
- first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
- initial_window_state = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 600,
- 'state': 'normal',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- result = {'active': True,
- 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
- 'height': 120,
- 'state': 'normal',
- 'width': 450,
- 'x': 0,
- 'y': 0}
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:90: AssertionError
- /webdriver/tests/bidi/browser/set_client_window_state/state.py
- FAIL test_set_client_window_state_transitions[m-to-i-f-to-u] - AssertionError: assert 'minimized' == 'fullscreen'
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f733d5f3e50>, initial_state = 'minimized'
- target_state = 'fullscreen', first_window_id = '8e307b10-bcb8-40de-81db-1a1c3215b4b9'
- @pytest.mark.parametrize(
- "initial_state,target_state",
- [
- ("fullscreen", "normal"),
- ("fullscreen", "maximized"),
- ("fullscreen", "minimized"),
- ("maximized", "fullscreen"),
- ("maximized", "normal"),
- ("maximized", "minimized"),
- ("minimized", "fullscreen"),
- ("minimized", "maximized"),
- ("minimized", "normal"),
- ("normal", "fullscreen"),
- ("normal", "maximized"),
- ("normal", "minimized"),
- ],
- ids=lambda states: f"{states[0]}-to-{states[1]}"
- )
- @pytest.mark.asyncio
- async def test_set_client_window_state_transitions(bidi_session, initial_state, target_state, first_window_id):
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=initial_state
- )
- assert result["state"] == initial_state
- result = await bidi_session.browser.set_client_window_state(
- client_window=first_window_id,
- state=target_state
- )
- > assert result["state"] == target_state
- E AssertionError: assert 'minimized' == 'fullscreen'
- E
- E - fullscreen
- E + minimized
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f733d5f3e50>
- first_window_id = '8e307b10-bcb8-40de-81db-1a1c3215b4b9'
- initial_state = 'minimized'
- result = {'active': True,
- 'clientWindow': '8e307b10-bcb8-40de-81db-1a1c3215b4b9',
- 'height': 600,
- 'state': 'minimized',
- 'width': 800,
- 'x': 100,
- 'y': 100}
- target_state = 'fullscreen'
- testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/state.py:36: AssertionError
- /webdriver/tests/bidi/browser/set_client_window_state/stress.py
- TIMEOUT /webdriver/tests/bidi/browser/set_client_window_state/stress.py
- 1:28.66 INFO Got 4 unexpected results, with 0 unexpected passes
- 1:28.67 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
- 1:28.70 wptserve INFO Stopped http server on 127.0.0.1:8003
- 1:28.70 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
- 1:28.84 wptserve INFO Stopped http server on 127.0.0.1:8443
- 1:28.85 wptserve INFO Stopped http server on 127.0.0.1:8445
- 1:28.85 wptserve INFO Stopped http server on 127.0.0.1:8444
- 1:28.89 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
- 1:29.02 wptserve INFO Stopped http server on 127.0.0.1:9000
- 1:29.07 wptserve INFO Stopped http server on 127.0.0.1:8446
- 1:29.07 wptserve INFO Stopped http server on 127.0.0.1:8002
- 1:29.10 wptserve INFO Stopped http server on 127.0.0.1:8000
- 1:29.16 wptserve INFO Stopped http server on 127.0.0.1:8001
- 1:29.23 INFO Removed font: Ahem.ttf
- 1:29.29 INFO Closing logging queue
- 1:29.29 INFO queue closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement