Switch from IOSink to StringSink (#1105)
Towards #1100 The ExpandedReporter needs to work on the web platform. It worked before because it only used `print` which works everywhere. - Change the argument to `StringSink` which can be supported on every platform. - Remove the `dart:io` import from the expanded reporter. - Make the `sink` argument non-optional for the expanded reporter. - Add a `PrintSink` implementation that buffers writes until the content ends with a newline and then calls `print`.
Showing
- pkgs/test_core/CHANGELOG.md 1 addition, 1 deletionpkgs/test_core/CHANGELOG.md
- pkgs/test_core/lib/src/runner/configuration/reporters.dart 3 additions, 4 deletionspkgs/test_core/lib/src/runner/configuration/reporters.dart
- pkgs/test_core/lib/src/runner/reporter/compact.dart 2 additions, 2 deletionspkgs/test_core/lib/src/runner/reporter/compact.dart
- pkgs/test_core/lib/src/runner/reporter/expanded.dart 7 additions, 18 deletionspkgs/test_core/lib/src/runner/reporter/expanded.dart
- pkgs/test_core/lib/src/runner/reporter/json.dart 3 additions, 3 deletionspkgs/test_core/lib/src/runner/reporter/json.dart
- pkgs/test_core/lib/src/util/print_sink.dart 39 additions, 0 deletionspkgs/test_core/lib/src/util/print_sink.dart
- pkgs/test_core/lib/test_core.dart 2 additions, 1 deletionpkgs/test_core/lib/test_core.dart
Loading
Please register or sign in to comment