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

Unified Diff: tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart

Issue 13493011: Fix some tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
diff --git a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
index 61a1e656598eae7c84382714d9490e42efbe8a39..cec769e8ebae67f74d412695c591f2f272b83770 100644
--- a/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
+++ b/tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart
@@ -6,6 +6,7 @@
// to determine which elements can be deferred and which libraries
// much be included in the initial download (loaded eagerly).
+import 'package:expect/expect.dart';
import 'dart:async' show Future;
import 'dart:uri' show Uri;
import 'dart:io';
@@ -86,7 +87,7 @@ const lazy = const DeferredLibrary('deferred');
main() {
lazy.load().then((_) {
- Expect.equals(42, new MyClass().foo(87));
+ if (42 != new MyClass().foo(87)) throw "not equal";
ngeoffray 2013/04/10 09:49:44 Why this change if you're importing expect?
floitsch 2013/04/10 10:46:10 This is inside a Dart script that is generated and
});
}

Powered by Google App Engine
This is Rietveld 408576698