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

Unified Diff: tests/standalone/package/package_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
« no previous file with comments | « tests/standalone/out_of_memory_test.dart ('k') | tests/standalone/package/packages/package1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/package/package_test.dart
diff --git a/tests/standalone/package/package_test.dart b/tests/standalone/package/package_test.dart
index b606a23812f34fa745211053f62e195809821472..e55181a7467460338434a70b328e8d506185341d 100644
--- a/tests/standalone/package/package_test.dart
+++ b/tests/standalone/package/package_test.dart
@@ -4,10 +4,10 @@
// PackageRoot=none
-library package_test;
+#library('package_test');
-import 'package:lib1.dart';
-import 'package:shared.dart';
+#import('package:lib1.dart');
+#import('package:shared.dart');
void main() {
output = 'main';
@@ -15,7 +15,5 @@ void main() {
lib1();
// Make sure they were all reached successfully.
- if (output != 'main|lib1|lib2|lib3') {
- throw new Error("libraries were not reached successfully");
- }
+ Expect.equals(output, 'main|lib1|lib2|lib3');
}
« no previous file with comments | « tests/standalone/out_of_memory_test.dart ('k') | tests/standalone/package/packages/package1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698