commit | ff1d5d5e45e53ae07efa3cde9bbfd23e5d215f56 | [log] [tgz] |
---|---|---|
author | Leon Senft <leonsenft@google.com> | Wed Mar 27 18:05:39 2019 -0700 |
committer | Leon Senft <leonsenft@users.noreply.github.com> | Mon Apr 01 18:19:04 2019 -0700 |
tree | d9df8b6bbf29c278c748d097a7ea713d11babd72 | |
parent | e7628f9ce97badf1b0e466b4c253aae8f28c3ce4 [diff] |
Use message channels for communicating with iframes The host code that runs in the browser and loads tests now uses the Channel Messaging API to communicate with iframes. It now connects to each test suite's iframe with its own dedicated `MessageChannel`. This method is more robust than sending global messages through `window.postMessage()`. It also allows tests to modify `window.location`, which would previously cause them to hang. This was because each iframe used `window.location` (which is unique to each iframe) to tag messages sent using `window.postMessage()` so that the host could identify their source. Closes https://github.com/dart-lang/test/issues/423. Fixes https://github.com/dart-lang/test/issues/562.
This repository contains packages for writing and running Dart tests.
A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.
A minimal package for writing tests. This package is used by package:test
and package:test_core
.
A minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. This package is used by package:test
.