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

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: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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/package/package_test.dart ('k') | tests/standalone/pow_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/package/packages/package1.dart
diff --git a/tests/standalone/package/packages/package1.dart b/tests/standalone/package/packages/package1.dart
index c409ec5fc74d13dce3d338815ee4540afa083043..d0a6081622cff50cfe343da9d47c4dd18160002f 100644
--- a/tests/standalone/package/packages/package1.dart
+++ b/tests/standalone/package/packages/package1.dart
@@ -9,6 +9,10 @@ import 'package2.dart' as p2;
import 'package:package2.dart' as 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");
+ }
}
« no previous file with comments | « tests/standalone/package/package_test.dart ('k') | tests/standalone/pow_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698