Advertisement
Temidayo12

Untitled

Apr 8th, 2025 (edited)
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.57 KB | None | 0 0
  1. /webdriver/tests/bidi/browser/set_client_window_state/invalid.py
  2.   FAIL test_client_window_width_invalid_bounds[2147483649] - Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
  3. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
  4. first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e', bound = 2147483649
  5.  
  6.     @pytest.mark.parametrize("bound", [-1, MAX_INT + 1])
  7.     async def test_client_window_width_invalid_bounds(bidi_session, first_window_id, bound):
  8. >       with pytest.raises(error.InvalidArgumentException):
  9. E       Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
  10.  
  11. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
  12. bound      = 2147483649
  13. first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e'
  14.  
  15. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/invalid.py:86: Failed
  16.   FAIL test_client_window_height_invalid_bounds[2147483649] - Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
  17. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
  18. first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e', bound = 2147483649
  19.  
  20.     @pytest.mark.parametrize("bound", [-1, MAX_INT + 1])
  21.     async def test_client_window_height_invalid_bounds(bidi_session, first_window_id, bound):
  22. >       with pytest.raises(error.InvalidArgumentException):
  23. E       Failed: DID NOT RAISE <class 'webdriver.bidi.error.InvalidArgumentException'>
  24.  
  25. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f7c986ad290>
  26. bound      = 2147483649
  27. first_window_id = 'bf9e3be5-6150-46b5-8f81-32f9289b800e'
  28.  
  29. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/invalid.py:104: Failed
  30. /webdriver/tests/bidi/browser/set_client_window_state/rect_state.py
  31.   FAIL test_move_xy - assert 450 == 800
  32. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  33. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  34. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  35.  
  36.     async def test_move_xy(bidi_session, first_window_id, initial_window_state):
  37.         result = await bidi_session.browser.set_client_window_state(
  38.             client_window=first_window_id,
  39.             state=ClientWindowRectState.NORMAL,
  40.             x=100,
  41.             y=200
  42.         )
  43.         assert result["state"] == "normal"
  44.         assert result["x"] == 100
  45.         assert result["y"] == 200
  46. >       assert result["width"] == initial_window_state["width"]
  47. E       assert 450 == 800
  48.  
  49. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  50. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  51. initial_window_state = {'active': True,
  52.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  53.  'height': 600,
  54.  'state': 'normal',
  55.  'width': 800,
  56.  'x': 100,
  57.  'y': 100}
  58. result     = {'active': True,
  59.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  60.  'height': 120,
  61.  'state': 'normal',
  62.  'width': 450,
  63.  'x': 100,
  64.  'y': 200}
  65.  
  66. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:17: AssertionError
  67.   FAIL test_move_x - assert 0 == 100
  68. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  69. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  70. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  71.  
  72.     async def test_move_x(bidi_session, first_window_id, initial_window_state):
  73.         result = await bidi_session.browser.set_client_window_state(
  74.             client_window=first_window_id,
  75.             state=ClientWindowRectState.NORMAL,
  76.             x=100
  77.         )
  78.         assert result["state"] == "normal"
  79.         assert result["x"] == 100
  80. >       assert result["y"] == initial_window_state["y"]
  81. E       assert 0 == 100
  82.  
  83. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  84. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  85. initial_window_state = {'active': True,
  86.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  87.  'height': 600,
  88.  'state': 'normal',
  89.  'width': 800,
  90.  'x': 100,
  91.  'y': 100}
  92. result     = {'active': True,
  93.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  94.  'height': 120,
  95.  'state': 'normal',
  96.  'width': 450,
  97.  'x': 100,
  98.  'y': 0}
  99.  
  100. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:28: AssertionError
  101.   FAIL test_move_y - assert 0 == 100
  102. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  103. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  104. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  105.  
  106.     async def test_move_y(bidi_session, first_window_id, initial_window_state):
  107.         result = await bidi_session.browser.set_client_window_state(
  108.             client_window=first_window_id,
  109.             state=ClientWindowRectState.NORMAL,
  110.             y=200
  111.         )
  112.         assert result["state"] == "normal"
  113.         assert result["y"] == 200
  114. >       assert result["x"] == initial_window_state["x"]
  115. E       assert 0 == 100
  116.  
  117. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  118. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  119. initial_window_state = {'active': True,
  120.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  121.  'height': 600,
  122.  'state': 'normal',
  123.  'width': 800,
  124.  'x': 100,
  125.  'y': 100}
  126. result     = {'active': True,
  127.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  128.  'height': 120,
  129.  'state': 'normal',
  130.  'width': 450,
  131.  'x': 0,
  132.  'y': 200}
  133.  
  134. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:40: AssertionError
  135.   FAIL test_resize_width_height - assert 0 == 100
  136. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  137. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  138. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  139.  
  140.     async def test_resize_width_height(bidi_session, first_window_id, initial_window_state):
  141.         result = await bidi_session.browser.set_client_window_state(
  142.             client_window=first_window_id,
  143.             state=ClientWindowRectState.NORMAL,
  144.             width=800,
  145.             height=600
  146.         )
  147.         assert result["state"] == "normal"
  148.         assert result["width"] == 800
  149.         assert result["height"] == 600
  150.         # Verify other values haven't changed
  151. >       assert result["x"] == initial_window_state["x"]
  152. E       assert 0 == 100
  153.  
  154. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  155. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  156. initial_window_state = {'active': True,
  157.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  158.  'height': 600,
  159.  'state': 'normal',
  160.  'width': 800,
  161.  'x': 100,
  162.  'y': 100}
  163. result     = {'active': True,
  164.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  165.  'height': 600,
  166.  'state': 'normal',
  167.  'width': 800,
  168.  'x': 0,
  169.  'y': 0}
  170.  
  171. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:55: AssertionError
  172.   FAIL test_resize_width - assert 0 == 100
  173. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  174. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  175. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  176.  
  177.     async def test_resize_width(bidi_session, first_window_id, initial_window_state):
  178.         result = await bidi_session.browser.set_client_window_state(
  179.             client_window=first_window_id,
  180.             state=ClientWindowRectState.NORMAL,
  181.             width=800
  182.         )
  183.         assert result["state"] == "normal"
  184.         assert result["width"] == 800
  185.         # Verify other values haven't changed
  186. >       assert result["x"] == initial_window_state["x"]
  187. E       assert 0 == 100
  188.  
  189. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  190. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  191. initial_window_state = {'active': True,
  192.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  193.  'height': 600,
  194.  'state': 'normal',
  195.  'width': 800,
  196.  'x': 100,
  197.  'y': 100}
  198. result     = {'active': True,
  199.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  200.  'height': 120,
  201.  'state': 'normal',
  202.  'width': 800,
  203.  'x': 0,
  204.  'y': 0}
  205.  
  206. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:67: AssertionError
  207.   FAIL test_resize_height - assert 0 == 100
  208. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  209. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  210. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  211.  
  212.     async def test_resize_height(bidi_session, first_window_id, initial_window_state):
  213.         result = await bidi_session.browser.set_client_window_state(
  214.             client_window=first_window_id,
  215.             state=ClientWindowRectState.NORMAL,
  216.             height=600
  217.         )
  218.         assert result["state"] == "normal"
  219.         assert result["height"] == 600
  220.         # Verify other values haven't changed
  221. >       assert result["x"] == initial_window_state["x"]
  222. E       assert 0 == 100
  223.  
  224. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  225. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  226. initial_window_state = {'active': True,
  227.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  228.  'height': 600,
  229.  'state': 'normal',
  230.  'width': 800,
  231.  'x': 100,
  232.  'y': 100}
  233. result     = {'active': True,
  234.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  235.  'height': 600,
  236.  'state': 'normal',
  237.  'width': 450,
  238.  'x': 0,
  239.  'y': 0}
  240.  
  241. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:80: AssertionError
  242.   FAIL test_no_position_resize - assert 0 == 100
  243. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  244. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  245. initial_window_state = {'active': True, 'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c', 'height': 600, 'state': 'normal', ...}
  246.  
  247.     async def test_no_position_resize(bidi_session, first_window_id, initial_window_state):
  248.         result = await bidi_session.browser.set_client_window_state(
  249.             client_window=first_window_id,
  250.             state=ClientWindowRectState.NORMAL
  251.         )
  252.         assert result["state"] == "normal"
  253. >       assert result["x"] == initial_window_state["x"]
  254. E       assert 0 == 100
  255.  
  256. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f81f02b7b90>
  257. first_window_id = '642f34b5-b7ff-4d63-9d64-22ef2950296c'
  258. initial_window_state = {'active': True,
  259.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  260.  'height': 600,
  261.  'state': 'normal',
  262.  'width': 800,
  263.  'x': 100,
  264.  'y': 100}
  265. result     = {'active': True,
  266.  'clientWindow': '642f34b5-b7ff-4d63-9d64-22ef2950296c',
  267.  'height': 120,
  268.  'state': 'normal',
  269.  'width': 450,
  270.  'x': 0,
  271.  'y': 0}
  272.  
  273. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/rect_state.py:90: AssertionError
  274. /webdriver/tests/bidi/browser/set_client_window_state/state.py
  275.   FAIL test_set_client_window_state_transitions[m-to-i-f-to-u] - AssertionError: assert 'minimized' == 'fullscreen'
  276. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f733d5f3e50>, initial_state = 'minimized'
  277. target_state = 'fullscreen', first_window_id = '8e307b10-bcb8-40de-81db-1a1c3215b4b9'
  278.  
  279.     @pytest.mark.parametrize(
  280.         "initial_state,target_state",
  281.         [
  282.             ("fullscreen", "normal"),
  283.             ("fullscreen", "maximized"),
  284.             ("fullscreen", "minimized"),
  285.  
  286.             ("maximized", "fullscreen"),
  287.             ("maximized", "normal"),
  288.             ("maximized", "minimized"),
  289.  
  290.             ("minimized", "fullscreen"),
  291.             ("minimized", "maximized"),
  292.             ("minimized", "normal"),
  293.  
  294.             ("normal", "fullscreen"),
  295.             ("normal", "maximized"),
  296.             ("normal", "minimized"),
  297.         ],
  298.         ids=lambda states: f"{states[0]}-to-{states[1]}"
  299.     )
  300.     @pytest.mark.asyncio
  301.     async def test_set_client_window_state_transitions(bidi_session, initial_state, target_state, first_window_id):
  302.         result = await bidi_session.browser.set_client_window_state(
  303.             client_window=first_window_id,
  304.             state=initial_state
  305.         )
  306.         assert result["state"] == initial_state
  307.  
  308.         result = await bidi_session.browser.set_client_window_state(
  309.             client_window=first_window_id,
  310.             state=target_state
  311.         )
  312. >       assert result["state"] == target_state
  313. E       AssertionError: assert 'minimized' == 'fullscreen'
  314. E
  315. E         - fullscreen
  316. E         + minimized
  317.  
  318. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f733d5f3e50>
  319. first_window_id = '8e307b10-bcb8-40de-81db-1a1c3215b4b9'
  320. initial_state = 'minimized'
  321. result     = {'active': True,
  322.  'clientWindow': '8e307b10-bcb8-40de-81db-1a1c3215b4b9',
  323.  'height': 600,
  324.  'state': 'minimized',
  325.  'width': 800,
  326.  'x': 100,
  327.  'y': 100}
  328. target_state = 'fullscreen'
  329.  
  330. testing/web-platform/tests/webdriver/tests/bidi/browser/set_client_window_state/state.py:36: AssertionError
  331. /webdriver/tests/bidi/browser/set_client_window_state/stress.py
  332.   TIMEOUT /webdriver/tests/bidi/browser/set_client_window_state/stress.py
  333.  1:28.66 INFO Got 4 unexpected results, with 0 unexpected passes
  334.  1:28.67 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
  335.  1:28.70 wptserve INFO Stopped http server on 127.0.0.1:8003
  336.  1:28.70 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
  337.  1:28.84 wptserve INFO Stopped http server on 127.0.0.1:8443
  338.  1:28.85 wptserve INFO Stopped http server on 127.0.0.1:8445
  339.  1:28.85 wptserve INFO Stopped http server on 127.0.0.1:8444
  340.  1:28.89 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
  341.  1:29.02 wptserve INFO Stopped http server on 127.0.0.1:9000
  342.  1:29.07 wptserve INFO Stopped http server on 127.0.0.1:8446
  343.  1:29.07 wptserve INFO Stopped http server on 127.0.0.1:8002
  344.  1:29.10 wptserve INFO Stopped http server on 127.0.0.1:8000
  345.  1:29.16 wptserve INFO Stopped http server on 127.0.0.1:8001
  346.  1:29.23 INFO Removed font: Ahem.ttf
  347.  1:29.29 INFO Closing logging queue
  348.  1:29.29 INFO queue closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement