Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1806)

Unified Diff: tests/standalone/package/scenarios/packages_dir_only/packages_dir_only_test.dart

Issue 1290623002: Add tests for simple packages scenarios (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698