[Webkit-unassigned] [Bug 180400] New: WebDriver: test imported/w3c/webdriver/tests/element_click/bubbling.py::test_spin_event_loop is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 5 02:10:56 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=180400

            Bug ID: 180400
           Summary: WebDriver: test
                    imported/w3c/webdriver/tests/element_click/bubbling.py
                    ::test_spin_event_loop is failing
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bburg at apple.com

session = <webdriver.client.Session object at 0x7ff1c632a610>

    def test_spin_event_loop(session):
        """
        Wait until the user agent event loop has spun enough times to
        process the DOM events generated by clicking.
        """
        session.url = inline("""
            <style>
            body * {
              margin: 10px;
              padding: 10px;
              border: 1px solid blue;
            }
            </style>

            <div id=three>THREE
              <div id=two>TWO
                <div id=one>ONE</div>
              </div>
            </div>

            <script>
            window.delayedClicks = [];

            for (let level of document.querySelectorAll("div")) {
              level.addEventListener("click", ({currentTarget}) => {
                setTimeout(() => window.delayedClicks.push(currentTarget), 100);
              });
            }
            </script>
            """)
        three, two, one = session.find.css("div")
        one.click()

        delayed_clicks = session.execute_script("return window.delayedClicks")
>       assert one in delayed_clicks
E       assert <webdriver.client.Element object at 0x7ff1c6321390> in []

delayed_clicks = []
one        = <webdriver.client.Element object at 0x7ff1c6321390>
session    = <webdriver.client.Session object at 0x7ff1c632a610>
three      = <webdriver.client.Element object at 0x7ff1c6321490>
two        = <webdriver.client.Element object at 0x7ff1c6321d10>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171205/18336232/attachment.html>


More information about the webkit-unassigned mailing list