commit | 92eb0f7c3df8f3f089eb3962b46d55b00cf0e51c | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Mon Jul 31 10:55:36 2023 -0700 |
committer | GitHub <noreply@github.com> | Mon Jul 31 10:55:36 2023 -0700 |
tree | c4d76c84c9f2637b003a9aadbea62a1fcc221993 | |
parent | 7f81deeac294a1120917aeaa35d5b670146c4529 [diff] |
Allow frame to send the message port (#2068) Towards #2065 Handle the new communication pattern from the host side. Allows the frame to send a single `'port'` message with a read `MessageChannel` in stead of the `{'ready': true}` message signalling that the host should send a message port. This will remove one hop in the communication pattern. Retains handling of the current pattern and does not update the frame side yet. There are multiple implementations of both the host and the frame behavior. All host implementations will be updated to allow either pattern before the frame implementations are updated. Change from a `if/else` chain to a `switch`. Use pattern matching to destructure the `'data'` field in the case of exceptions. Don't append the frame to the dom until the window message listener is listening.
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api
and package:test_core
are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher
and features a literate API.
Package | Description | Version |
---|---|---|
checks | A framework for checking values against expectations and building custom expectations. | |
test | A full featured library for writing and running Dart tests across platforms. | |
test_api | ||
test_core |