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

Side by Side Diff: tests/compiler/dart2js_extra/deferred/deferred_constant_test.dart

Issue 23701010: Switch to async_helper package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and adapt 3 new tests. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import '../../../async_helper.dart'; 5 import 'package:async_helper/async_helper.dart';
6
7 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
8 7
9 import 'dart:async'; 8 import 'dart:async';
10 9
11 @lazy import 'deferred_class_library.dart'; 10 @lazy import 'deferred_class_library.dart';
12 11
13 const lazy = const DeferredLibrary('deferred_class_library'); 12 const lazy = const DeferredLibrary('deferred_class_library');
14 13
15 main() { 14 main() {
16 var x; 15 var x;
(...skipping 23 matching lines...) Expand all
40 Expect.equals(42, x.foo(87)); 39 Expect.equals(42, x.foo(87));
41 Expect.listEquals(const [const Constant(42)], [new Constant(42)]); 40 Expect.listEquals(const [const Constant(42)], [new Constant(42)]);
42 asyncEnd(); 41 asyncEnd();
43 }); 42 });
44 Expect.equals(0, counter); 43 Expect.equals(0, counter);
45 Expect.isNull(x); 44 Expect.isNull(x);
46 Expect.isNull(const Constant(42)); 45 Expect.isNull(const Constant(42));
47 Expect.isNull(const [const Constant(42)]); 46 Expect.isNull(const [const Constant(42)]);
48 Expect.isNull(x); 47 Expect.isNull(x);
49 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698