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

Unified Diff: tests/standalone/package/scenarios/packages_file_only/packages_file_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_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');
+ }
}

Powered by Google App Engine
This is Rietveld 408576698