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

Unified Diff: tests/compiler/dart2js_extra/deferred/deferred_class_test.dart

Issue 223373004: Revert "Load deferred chunks in the right order." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart b/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
index 5df6c73438f3a1ddd156a015bbf363b69ea54711..ae4964acebf8ab5fde2b37dd1d5142628e8853f4 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
+++ b/tests/compiler/dart2js_extra/deferred/deferred_class_test.dart
@@ -19,7 +19,8 @@ main() {
Expect.isNull(x);
int counter = 0;
asyncStart();
- lazy.load().then((_) {
+ lazy.load().then((bool didLoad) {
+ Expect.isTrue(didLoad);
Expect.equals(1, ++counter);
print('deferred_class_library was loaded');
x = new lib.MyClass();
@@ -29,7 +30,8 @@ main() {
Expect.equals(0, counter);
Expect.isNull(x);
asyncStart();
- lazy.load().then((_) {
+ lazy.load().then((bool didLoad) {
+ Expect.isFalse(didLoad);
Expect.equals(2, ++counter);
print('deferred_class_library was loaded');
x = new lib.MyClass();

Powered by Google App Engine
This is Rietveld 408576698