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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/package_test.dart
diff --git a/tests/standalone/package/package_test.dart b/tests/standalone/package/package_test.dart
index e55181a7467460338434a70b328e8d506185341d..b606a23812f34fa745211053f62e195809821472 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,5 +15,7 @@ void main() {
lib1();
// Make sure they were all reached successfully.
- Expect.equals(output, 'main|lib1|lib2|lib3');
+ if (output != 'main|lib1|lib2|lib3') {
+ throw new Error("libraries were not reached successfully");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698