Index: tests/standalone/package/scenarios/packages_dir_only/packages_dir_only_test.dart |
diff --git a/tests/language/regress_21998_1_test.dart b/tests/standalone/package/scenarios/packages_dir_only/packages_dir_only_test.dart |
similarity index 55% |
copy from tests/language/regress_21998_1_test.dart |
copy to tests/standalone/package/scenarios/packages_dir_only/packages_dir_only_test.dart |
index 3237f3396629f6fd11270e1adc290bec78713958..afec5b58fcf1814eeee4e5df5bd4d499b9063cfe 100644 |
--- a/tests/language/regress_21998_1_test.dart |
+++ b/tests/standalone/package/scenarios/packages_dir_only/packages_dir_only_test.dart |
@@ -2,17 +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 'dart:math' as Math; |
-import 'package:expect/expect.dart'; |
+// PackageRoot=none |
-main() { |
- Expect.equals(4, new C().m()); |
-} |
+library packages_dir_only_test; |
-class C { |
- max(a) => a; |
+import 'package:foo/foo.dart' as foo; |
- m() { |
- return max(Math.max(2, 4)); |
+main() { |
+ if (foo.bar != 'hello') { |
+ throw new Exception('package "foo" was not resolved correctly'); |
} |
-} |
+} |