mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
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:
parent
1a9d38be41
commit
fb29d0e96d
40 changed files with 39 additions and 38 deletions
|
@ -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
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
expect
|
||||
is package? yes
|
||||
dependencies: meta
|
||||
async_minitest.dart
|
||||
expect.dart
|
||||
matchers_lite.dart
|
||||
minitest.dart
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
expect
|
||||
is package? yes
|
||||
dependencies: meta
|
||||
async_minitest.dart
|
||||
expect.dart
|
||||
matchers_lite.dart
|
||||
minitest.dart
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(() {});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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', () {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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", () {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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', () {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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', () {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue