Index: tests/standalone/package/scenarios/packages_file_only/packages_file_only_test.dart |
diff --git a/tests/language/issue13179_test.dart b/tests/standalone/package/scenarios/packages_file_only/packages_file_only_test.dart |
similarity index 55% |
copy from tests/language/issue13179_test.dart |
copy to tests/standalone/package/scenarios/packages_file_only/packages_file_only_test.dart |
index 0439ceab895f5925234763b90cb323007bc19b14..53395334fa0a780cd98a12d3354302dd183af432 100644 |
--- a/tests/language/issue13179_test.dart |
+++ b/tests/standalone/package/scenarios/packages_file_only/packages_file_only_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_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'); |
+ } |
} |