| Index: tests/standalone/package/scenarios/packages_option_only/packages_option_only_test.dart
|
| diff --git a/tests/language/issue13179_test.dart b/tests/standalone/package/scenarios/packages_option_only/packages_option_only_test.dart
|
| similarity index 52%
|
| copy from tests/language/issue13179_test.dart
|
| copy to tests/standalone/package/scenarios/packages_option_only/packages_option_only_test.dart
|
| index 0439ceab895f5925234763b90cb323007bc19b14..e873350c4012cb8209dd910fe3460c09a3f0cf1f 100644
|
| --- a/tests/language/issue13179_test.dart
|
| +++ b/tests/standalone/package/scenarios/packages_option_only/packages_option_only_test.dart
|
| @@ -2,18 +2,15 @@
|
| // 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/expect.dart";
|
| +// PackageRoot=none
|
| +// Packages=sub/.packages
|
|
|
| -int count = 0;
|
| +library packages_option_only_test;
|
|
|
| -void f([void f([x]) = f]) {
|
| - count++;
|
| - if (f != null) {
|
| - f(null);
|
| - }
|
| -}
|
| +import 'package:foo/foo.dart' as foo;
|
|
|
| main() {
|
| - f();
|
| - Expect.equals(2, count);
|
| + if (foo.bar != 'hello') {
|
| + throw new Exception('package "foo" was not resolved correctly');
|
| + }
|
| }
|
|
|