| Index: dart/tests/try/poi/poi_test.dart
|
| diff --git a/dart/tests/language/deferred_no_such_method_test.dart b/dart/tests/try/poi/poi_test.dart
|
| similarity index 51%
|
| copy from dart/tests/language/deferred_no_such_method_test.dart
|
| copy to dart/tests/try/poi/poi_test.dart
|
| index 00791b5facd9b300fd6d4997d960123ebe043784..39c8cb8ecc7419dd68f5e558195d41392b56d67c 100644
|
| --- a/dart/tests/language/deferred_no_such_method_test.dart
|
| +++ b/dart/tests/try/poi/poi_test.dart
|
| @@ -2,18 +2,16 @@
|
| // 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 "dart:async";
|
| -import 'package:expect/expect.dart';
|
| -import 'package:async_helper/async_helper.dart';
|
| +library trydart.poi_test;
|
| +
|
| +import 'dart:io' show
|
| + Platform;
|
|
|
| -@l import "deferred_no_such_method_lib.dart" as lib;
|
| +import 'package:try/poi/poi.dart' as poi;
|
|
|
| -const l = const DeferredLibrary('lib');
|
| +import 'package:async_helper/async_helper.dart';
|
|
|
| void main() {
|
| - asyncStart();
|
| - l.load().then((_) {
|
| - Expect.equals(42, new lib.C().nonExisting());
|
| - asyncEnd();
|
| - });
|
| -}
|
| + poi.main(<String>[Platform.script.toFilePath(), '339']);
|
| + asyncTest(() => poi.doneFuture);
|
| +}
|
|
|