Index: tests/standalone/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart |
diff --git a/tests/language/issue13179_test.dart b/tests/standalone/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart |
similarity index 54% |
copy from tests/language/issue13179_test.dart |
copy to tests/standalone/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart |
index 0439ceab895f5925234763b90cb323007bc19b14..106b1af87535443c2ac8064d8c1071be8e0a7f50 100644 |
--- a/tests/language/issue13179_test.dart |
+++ b/tests/standalone/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart |
@@ -2,18 +2,14 @@ |
// 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 |
-int count = 0; |
+library packages_file_in_parent_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'); |
+ } |
} |