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

Unified Diff: tests/standalone/package/packages/package1.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/packages/package1.dart
diff --git a/tests/standalone/package/packages/package1.dart b/tests/standalone/package/packages/package1.dart
index 9f1b46204b04c50311d0c051ce68d54b41db0afc..0977af580545ef4d84f8074b68f9f442ce9b5425 100644
--- a/tests/standalone/package/packages/package1.dart
+++ b/tests/standalone/package/packages/package1.dart
@@ -9,6 +9,10 @@
#import('package:package2.dart', prefix: 'p3');
main() {
- Expect.identical(p1.x, p2.x);
- Expect.identical(p1.x, p3.x);
+ if (!identical(p1.x, p2.x)) {
+ throw new Error("Not identical");
+ }
+ if (!identical(p1.x, p3.x)) {
+ throw new Error("Not identical");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698