Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM: Implement the forEach() Observable operator #44300

Merged
merged 1 commit into from
Feb 7, 2024

DOM: Implement the `forEach()` Observable operator

f977d50
Select commit
Loading
Failed to load commit list.
Merged

DOM: Implement the forEach() Observable operator #44300

DOM: Implement the `forEach()` Observable operator
f977d50
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-results succeeded Feb 7, 2024 in 4m 56s

Community-TC (pull_request)

Collect results for all tests affected by a pull request in chrome.

Details

View task in Taskcluster
View logs in Taskcluster

WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --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 chrome


    at http://web-platform.test:8000/resources/testharness.js:737:20
FAIL Errors pushed by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:47:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
FAIL Errors thrown in the visitor callback reject the promise and unsubscribe from the source - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL forEach visitor callback rejection microtask ordering - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL forEach() promise resolves with undefined - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35

 1:11.08 TEST_START: /dom/observable/tentative/observable-forEach.any.worker.html
 1:11.34 TEST_END: Test OK. Subtests passed 0/6. Unexpected 6
FAIL forEach(): Visitor callback called synchronously for each value - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL Errors thrown by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:31:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
FAIL Errors pushed by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:47:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
FAIL Errors thrown in the visitor callback reject the promise and unsubscribe from the source - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL forEach visitor callback rejection microtask ordering - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL forEach() promise resolves with undefined - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35

 1:11.34 TEST_START: /dom/observable/tentative/observable-forEach.window.html
 1:11.53 TEST_END: Test OK. Subtests passed 0/2. Unexpected 2
FAIL forEach()'s internal observer's next steps do not crash in a detached document - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
FAIL forEach()'s internal observer's next steps do not crash when visitor callback detaches the document - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35

 1:11.53 INFO No more tests
 1:11.53 INFO No more tests
 1:11.53 pid:2178 [2190:2190:0207/150939.456561:WARNING:zygote_communication_linux.cc(300)] Error reading message from zygote: Connection reset by peer (104)
 1:11.54 pid:2178 [2190:2190:0207/150939.457166:ERROR:zygote_communication_linux.cc(290)] Failed to send GetTerminationStatus message to zygote
 1:11.54 pid:2178 [2190:2190:0207/150939.457181:WARNING:zygote_communication_linux.cc(302)] Socket closed prematurely.
 1:11.54 pid:2178 [2190:2190:0207/150939.457426:ERROR:zygote_communication_linux.cc(290)] Failed to send GetTerminationStatus message to zygote
 1:11.54 pid:2178 [2190:2190:0207/150939.457441:WARNING:zygote_communication_linux.cc(302)] Socket closed prematurely.
 1:11.54 pid:2178 [2190:2262:0207/150939.460305:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.
 1:11.54 pid:2178 [2190:2205:0207/150939.460421:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.
 1:11.55 pid:2178 [0207/150939.473746:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
 1:11.55 pid:2178 [0207/150939.473805:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
 1:11.56 pid:2178 [0207/150939.478643:ERROR:exception_handler_server.cc(132)] tgkill: No such process (3)
 1:11.54 INFO Closing logging queue
 1:11.54 INFO queue closed
 1:11.60 SUITE_END

web-platform-test
~~~~~~~~~~~~~~~~~
Ran 17 checks (14 subtests, 3 tests)
Expected results: 3
Unexpected results: 14
  subtest: 14 (14 fail)

Unexpected Results
------------------
/dom/observable/tentative/observable-forEach.any.html
  FAIL forEach(): Visitor callback called synchronously for each value - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL Errors thrown by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:31:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
  FAIL Errors pushed by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:47:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
  FAIL Errors thrown in the visitor callback reject the promise and unsubscribe from the source - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL forEach visitor callback rejection microtask ordering - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL forEach() promise resolves with undefined - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
/dom/observable/tentative/observable-forEach.any.worker.html
  FAIL forEach(): Visitor callback called synchronously for each value - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL Errors thrown by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:31:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
  FAIL Errors pushed by Observable reject the returned promise - assert_equals: expected object "Error: error" but got object "TypeError: source.forEach is not a function"
    at Test.<anonymous> (http://web-platform.test:8000/dom/observable/tentative/observable-forEach.any.js:47:5)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at http://web-platform.test:8000/resources/testharness.js:737:20
  FAIL Errors thrown in the visitor callback reject the promise and unsubscribe from the source - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL forEach visitor callback rejection microtask ordering - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL forEach() promise resolves with undefined - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
/dom/observable/tentative/observable-forEach.window.html
  FAIL forEach()'s internal observer's next steps do not crash in a detached document - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
  FAIL forEach()'s internal observer's next steps do not crash when visitor callback detaches the document - promise_test: Unhandled rejection with value: object "TypeError: source.forEach is not a function"
Error
    at get_stack (http://web-platform.test:8000/resources/testharness.js:4571:21)
    at new AssertionError (http://web-platform.test:8000/resources/testharness.js:4564:22)
    at assert (http://web-platform.test:8000/resources/testharness.js:4548:19)
    at Test.<anonymous> (http://web-platform.test:8000/resources/testharness.js:764:29)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2622:25)
    at http://web-platform.test:8000/resources/testharness.js:2669:35
 1:11.60 INFO Got 3 unexpected results, with 0 unexpected passes
 1:11.60 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 1:11.60 wptserve INFO Stopped http server on 127.0.0.1:8443
 1:11.61 wptserve INFO Stopped http server on 127.0.0.1:8446
 1:11.62 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:9000
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:8003
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:8445
 1:11.62 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:8001
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:8002
 1:11.62 wptserve INFO Stopped http server on 127.0.0.1:8444
 1:11.91 wptserve INFO Stopped http server on 127.0.0.1:8000
 1:11.95 INFO Removed font: Ahem.ttf
 1:11.97 INFO Closing logging queue
 1:11.97 INFO queue closed
 1:11.97 INFO Tolerating 3 unexpected results
[taskcluster 2024-02-07 15:09:40.999Z] === Task Finished ===
[taskcluster 2024-02-07 15:09:41.692Z] Successful task run with exit code: 0 completed in 294.267 seconds