Skip to content

[text-spacing-trim] Implement line-end logic

Community-TC Integration / wpt-chrome-beta-wdspec-2 succeeded Jan 15, 2024 in 1h 10m 28s

Community-TC (push)

A subset of WPT's "wdspec" tests (chunk number 2 of 2), run in the beta release of chrome.

Details

View task in Taskcluster
View logs in Taskcluster

WPT Command: python3 ./wpt run --channel=beta --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --no-fail-on-unexpected --this-chunk=2 --total-chunks=2 --test-type=wdspec --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --no-headless --verify-log-full --enable-swiftshader chrome


        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        """
>       assert response.status == errors[error_code]
E       assert 500 == 404
E         +500
E         -404

error_code = 'no such element'
response   = <Response status=500 error=<JavascriptErrorException http_status=500>>

webdriver/tests/support/asserts.py:51: AssertionError
  FAIL test_no_such_element_from_other_window_handle[open] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 6473a584ae1fb8512202802173f9802a>
inline = <function inline.<locals>.inline at 0x7f592f068280>, closed = False

    @pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
    def test_no_such_element_from_other_window_handle(session, inline, closed):
        session.url = inline("<div id='parent'><p/>")
        element = session.find.css("#parent", all=False)
    
        new_handle = session.new_window()
    
        if closed:
            session.window.close()
    
        session.window_handle = new_handle
    
        response = take_element_screenshot(session, element.id)
>       assert_error(response, "no such element")

closed     = False
element    = <WebElement 7FFD2C6DDCFF75C1206F5CC2A6D7B5BF_element_11>
inline     = <function inline.<locals>.inline at 0x7f592f068280>
new_handle = '5641D27AA448A3E2977D6E5739112C47'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session 6473a584ae1fb8512202802173f9802a>

webdriver/tests/classic/take_element_screenshot/screenshot.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'

    def assert_error(response, error_code):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        """
        assert response.status == errors[error_code]
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError: assert 'stale element reference' == 'no such element'
E         - no such element
E         + stale element reference

error_code = 'no such element'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>

webdriver/tests/support/asserts.py:53: AssertionError
  FAIL test_no_such_element_from_other_window_handle[closed] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 6473a584ae1fb8512202802173f9802a>
inline = <function inline.<locals>.inline at 0x7f592f01a550>, closed = True

    @pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
    def test_no_such_element_from_other_window_handle(session, inline, closed):
        session.url = inline("<div id='parent'><p/>")
        element = session.find.css("#parent", all=False)
    
        new_handle = session.new_window()
    
        if closed:
            session.window.close()
    
        session.window_handle = new_handle
    
        response = take_element_screenshot(session, element.id)
>       assert_error(response, "no such element")

closed     = True
element    = <WebElement FC9CADE4C6EC03807F7265B6BBFDB2B8_element_3>
inline     = <function inline.<locals>.inline at 0x7f592f01a550>
new_handle = '666DD2B073FFBBA5C95211298C8F8539'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session 6473a584ae1fb8512202802173f9802a>

webdriver/tests/classic/take_element_screenshot/screenshot.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'

    def assert_error(response, error_code):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        """
        assert response.status == errors[error_code]
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError: assert 'stale element reference' == 'no such element'
E         - no such element
E         + stale element reference

error_code = 'no such element'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>

webdriver/tests/support/asserts.py:53: AssertionError
  FAIL test_no_such_element_from_other_frame[open] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 6473a584ae1fb8512202802173f9802a>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f592f01ac10>
closed = False

    @pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
    def test_no_such_element_from_other_frame(session, get_test_page, closed):
        session.url = get_test_page(as_frame=True)
    
        frame = session.find.css("iframe", all=False)
        session.switch_frame(frame)
    
        element = session.find.css("div", all=False)
    
        session.switch_frame("parent")
    
        if closed:
            session.execute_script("arguments[0].remove();", args=[frame])
    
        response = take_element_screenshot(session, element.id)
>       assert_error(response, "no such element")

closed     = False
element    = <WebElement DA33E5A12389E08024FF6C93560B85E4_element_11>
frame      = <WebElement B12E1986190800670F30CDCB9E394DFE_element_10>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f592f01ac10>
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session 6473a584ae1fb8512202802173f9802a>

webdriver/tests/classic/take_element_screenshot/screenshot.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'

    def assert_error(response, error_code):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        """
        assert response.status == errors[error_code]
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError: assert 'stale element reference' == 'no such element'
E         - no such element
E         + stale element reference

error_code = 'no such element'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>

webdriver/tests/support/asserts.py:53: AssertionError
  FAIL test_no_such_element_from_other_frame[closed] - AssertionError: assert 'stale element reference' == 'no such element'
session = <Session 6473a584ae1fb8512202802173f9802a>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f592f03f4c0>
closed = True

    @pytest.mark.parametrize("closed", [False, True], ids=["open", "closed"])
    def test_no_such_element_from_other_frame(session, get_test_page, closed):
        session.url = get_test_page(as_frame=True)
    
        frame = session.find.css("iframe", all=False)
        session.switch_frame(frame)
    
        element = session.find.css("div", all=False)
    
        session.switch_frame("parent")
    
        if closed:
            session.execute_script("arguments[0].remove();", args=[frame])
    
        response = take_element_screenshot(session, element.id)
>       assert_error(response, "no such element")

closed     = True
element    = <WebElement 94698DE158FAF030039E03F6BA7AD707_element_21>
frame      = <WebElement DCBC80638D31546BF18A7EF38AB66517_element_20>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f592f03f4c0>
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session 6473a584ae1fb8512202802173f9802a>

webdriver/tests/classic/take_element_screenshot/screenshot.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

response = <Response status=404 error=<StaleElementReferenceException http_status=404>>
error_code = 'no such element'

    def assert_error(response, error_code):
        """
        Verify that the provided webdriver.Response instance described
        a valid error response as defined by `dfn-send-an-error` and
        the provided error code.
    
        :param response: ``webdriver.Response`` instance.
        :param error_code: String value of the expected error code
        """
        assert response.status == errors[error_code]
        assert "value" in response.body
>       assert response.body["value"]["error"] == error_code
E       AssertionError: assert 'stale element reference' == 'no such element'
E         - no such element
E         + stale element reference

error_code = 'no such element'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>

webdriver/tests/support/asserts.py:53: AssertionError
13:02.92 INFO Got 50 unexpected results, with 0 unexpected passes
13:03.08 wptserve INFO Stopped http server on 127.0.0.1:8446
13:03.08 wptserve INFO Stopped http server on 127.0.0.1:8003
13:03.09 wptserve INFO Stopped http server on 127.0.0.1:9000
13:03.10 wptserve INFO Stopped http server on 127.0.0.1:8002
13:03.10 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
13:03.10 wptserve INFO Stopped http server on 127.0.0.1:8001
13:03.10 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
13:03.10 wptserve INFO Stopped http server on 127.0.0.1:8444
13:03.12 wptserve INFO Stopped http server on 127.0.0.1:8445
13:03.19 wptserve INFO Stopped http server on 127.0.0.1:8000
13:03.41 wptserve INFO Stopped http server on 127.0.0.1:8443
13:03.44 INFO Removed font: Ahem.ttf
13:03.47 INFO Closing logging queue
13:03.47 INFO queue closed
13:03.47 INFO Tolerating 50 unexpected results
X connection to :99.0 broken (explicit kill or server shutdown).

[taskcluster 2024-01-15 02:49:07.914Z] === Task Finished ===
[taskcluster 2024-01-15 02:49:08.538Z] Successful task run with exit code: 0 completed in 1014.736 seconds