Move async_minitest to package:async_helper.

This allows to break a circular dependency between package:expect and

package:async_helper, which will simplify the support for modular tests using
package:modular_test.
Change-Id: Ie48723d3f35d51a8fbe622e0158450e8104fe3f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102140
Reviewed-by: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
Sigmund Cherem 2019-05-10 19:43:58 +00:00 committed by commit-bot@chromium.org
parent 1a9d38be41
commit fb29d0e96d
40 changed files with 39 additions and 38 deletions

View file

@ -7,3 +7,6 @@ description: >-
language tests.
Third parties are discouraged from using this, and should use
the facilities provided in package:test.
dependencies:
expect: any

View file

@ -3,7 +3,6 @@
expect
is package? yes
dependencies: meta
async_minitest.dart
expect.dart
matchers_lite.dart
minitest.dart

View file

@ -3,7 +3,6 @@
expect
is package? yes
dependencies: meta
async_minitest.dart
expect.dart
matchers_lite.dart
minitest.dart

View file

@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
import "package:expect/async_minitest.dart";
import "package:async_helper/async_minitest.dart";
/// Tests for exceptions raised in async*
main() {

View file

@ -6,7 +6,7 @@ library async_start_test;
import "dart:async";
import "package:expect/async_minitest.dart";
import "package:async_helper/async_minitest.dart";
main() {
group("basic", () {

View file

@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'causal_async_exception_stack_helper.dart' as h;

View file

@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'causal_async_exception_stack_helper.dart' as h;

View file

@ -8,7 +8,7 @@ library stream_controller_async_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';
import 'stream_state_helper.dart';

View file

@ -8,7 +8,7 @@ import 'dart:async';
import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -4,7 +4,7 @@
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("stream iterator basic", () async {

View file

@ -8,7 +8,7 @@ library stream_join_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("stream-periodic2", () {

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
// The stopwatch is more precise than the Timer.
// Some browsers (Firefox and IE so far) can trigger too early. So we add more

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
void runTest(period, maxElapsed, pauseDuration) {
Function done = expectAsync(() {});

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
watchMs(Stopwatch watch) {
int microsecs = watch.elapsedMicroseconds;

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("stream-periodic1", () {

View file

@ -7,7 +7,7 @@ library dart.test.stream_from_iterable;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("stream-periodic1", () {

View file

@ -8,7 +8,7 @@ library stream_single_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -8,7 +8,7 @@ library stream_single_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -7,7 +7,7 @@ library stream_state_helper;
import 'dart:async';
import 'dart:collection';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
class SubscriptionProtocolTest {
final StreamProtocolTest _streamTest;

View file

@ -9,7 +9,7 @@ library stream_state_nonzero_timer_test;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'stream_state_helper.dart';

View file

@ -5,7 +5,7 @@
// Test the event/callback protocol of the stream implementations.
library stream_state_test;
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'stream_state_helper.dart';

View file

@ -8,7 +8,7 @@ library stream_single_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("subscription.asFuture success", () {

View file

@ -7,7 +7,7 @@ library stream_subscription_cancel;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
void main() {
test('subscription.cancel', () {

View file

@ -4,7 +4,7 @@
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
const ms5 = const Duration(milliseconds: 5);

View file

@ -7,7 +7,7 @@ library stream_transform_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -8,7 +8,7 @@ library stream_join_test;
import 'dart:async';
import 'package:expect/expect.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'event_helper.dart';

View file

@ -6,7 +6,7 @@ library timer_cancel1_test;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
// Test that a timeout handler can cancel another.

View file

@ -4,7 +4,7 @@
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test("timer isActive test", () {

View file

@ -6,7 +6,7 @@ library timer_test;
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
const int STARTTIMEOUT = 1050;
const int DECREASE = 200;

View file

@ -4,7 +4,7 @@ import 'dart:async';
import 'dart:html';
import 'dart:web_sql';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
Future<SqlResultSet> createTable(
SqlTransaction transaction, String tableName, String columnName) async {

View file

@ -6,7 +6,7 @@ library deferred_in_isolate2_test;
import 'dart:isolate';
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
import 'deferred_in_isolate2_lib.dart' deferred as lib;

View file

@ -9,7 +9,7 @@
library spawn_tests;
import 'dart:isolate';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
/* Dummy import so multi-test copies the file.
import 'spawn_uri_child_isolate.dart';

View file

@ -9,7 +9,7 @@
library NestedSpawnUriLibrary;
import 'dart:isolate';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test('isolate fromUri - nested send and reply', () {

View file

@ -9,7 +9,7 @@
library spawn_tests;
import 'dart:isolate';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test('isolate fromUri - send and reply', () async {

View file

@ -9,7 +9,7 @@
library spawn_tests;
import 'dart:isolate';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
main() {
test('isolate fromUri - send and reply', () {

View file

@ -6,7 +6,7 @@ library multiple_timer_test;
import 'dart:isolate';
import 'dart:async';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
const Duration TIMEOUT = const Duration(milliseconds: 100);

View file

@ -9,7 +9,7 @@ library MirrorsTest;
import 'dart:io';
import 'dart:mirrors';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
class Class {}

View file

@ -8,7 +8,7 @@ library MirrorsTest;
import 'dart:mirrors';
import 'package:args/args.dart';
import 'package:expect/async_minitest.dart';
import 'package:async_helper/async_minitest.dart';
testLibraryUri(var value, Uri expectedUri) {
var valueMirror = reflect(value);