Skip to content

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

Community-TC Integration / wpt-chromium-nightly-wdspec-2 succeeded Jan 15, 2024 in 52m 29s

Community-TC (push)

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

Details

View task in Taskcluster
View logs in Taskcluster

WPT Command: python3 ./wpt run --channel=nightly --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 --install-browser --install-webdriver chromium


        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 ffae58f327d6231c03a0a3862ad3a82f>
inline = <function inline.<locals>.inline at 0x7f55e6c01280>, 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 32AD55F246EC2570D14CBB5003E52048_element_11>
inline     = <function inline.<locals>.inline at 0x7f55e6c01280>
new_handle = 'D85C257C7B8B87F54448D7619200F9BA'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session ffae58f327d6231c03a0a3862ad3a82f>

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 ffae58f327d6231c03a0a3862ad3a82f>
inline = <function inline.<locals>.inline at 0x7f55e6c01d30>, 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 72D07BFDD6BD342704110A95EC436A11_element_3>
inline     = <function inline.<locals>.inline at 0x7f55e6c01d30>
new_handle = '651211C45BF3F1DF438820B75BA5F600'
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session ffae58f327d6231c03a0a3862ad3a82f>

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 ffae58f327d6231c03a0a3862ad3a82f>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f55e6c1a670>
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 F0BBF7C1F558AF1E5576C8E3DA7ACC75_element_11>
frame      = <WebElement EC5409056EEBF651992A21CC0594D501_element_9>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f55e6c1a670>
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session ffae58f327d6231c03a0a3862ad3a82f>

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 ffae58f327d6231c03a0a3862ad3a82f>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f55e6c1aee0>
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 5DF2E534F5ACFA097B35F312541BE96D_element_20>
frame      = <WebElement 751A5ABC1B6EC44A8791673A96894AEB_element_18>
get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f55e6c1aee0>
response   = <Response status=404 error=<StaleElementReferenceException http_status=404>>
session    = <Session ffae58f327d6231c03a0a3862ad3a82f>

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
11:37.40 INFO Got 53 unexpected results, with 0 unexpected passes
11:37.40 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
11:37.67 wptserve INFO Stopped http server on 127.0.0.1:8000
11:37.80 wptserve INFO Stopped http server on 127.0.0.1:8003
11:37.80 wptserve INFO Stopped http server on 127.0.0.1:8445
11:37.80 wptserve INFO Stopped http server on 127.0.0.1:8444
11:37.81 wptserve INFO Stopped http server on 127.0.0.1:8446
11:37.81 wptserve INFO Stopped http server on 127.0.0.1:9000
11:37.82 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
11:37.82 wptserve INFO Stopped http server on 127.0.0.1:8002
11:37.82 wptserve INFO Stopped http server on 127.0.0.1:8001
11:37.82 wptserve INFO Stopped http server on 127.0.0.1:8443
11:37.83 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
11:37.91 INFO Removed font: Ahem.ttf
11:37.93 INFO Closing logging queue
11:37.93 INFO queue closed
11:37.93 INFO Tolerating 53 unexpected results
X connection to :99.0 broken (explicit kill or server shutdown).

[taskcluster 2024-01-15 02:31:01.958Z] === Task Finished ===
[taskcluster 2024-01-15 02:31:02.783Z] Successful task run with exit code: 0 completed in 811.014 seconds