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

Side by Side Diff: tests/language/deferred_constraints_constants_old_syntax_test.dart

Issue 201613006: Introduces the new syntax for deferred loading (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 "dart:async"; 5 import "dart:async";
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 import 'package:async_helper/async_helper.dart'; 7 import 'package:async_helper/async_helper.dart';
8 8
9 @lazy import "deferred_constraints_constants_lib.dart" as lib; 9 @lazy import "deferred_constraints_constants_old_syntax_lib.dart" as lib;
10 10
11 const lazy = const DeferredLibrary('lib'); 11 const lazy = const DeferredLibrary('lib');
12 12
13 const myConst1 = 13 const myConst1 =
14 lib.constantInstance; /// reference1: compile-time error 14 lib.constantInstance; /// reference1: compile-time error
15 /* /// reference1: continued 15 /* /// reference1: continued
16 499; 16 499;
17 */ /// reference1: continued 17 */ /// reference1: continued
18 const myConst2 = 18 const myConst2 =
19 lib.Const.instance; /// reference2: compile-time error 19 lib.Const.instance; /// reference2: compile-time error
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 f1(); 54 f1();
55 f2(); 55 f2();
56 var constInstance = lib.constantInstance; /// reference_after_load: ok 56 var constInstance = lib.constantInstance; /// reference_after_load: ok
57 var h1 = new H1(); 57 var h1 = new H1();
58 var h2 = new H2(); 58 var h2 = new H2();
59 var h3 = new H3(); 59 var h3 = new H3();
60 asyncEnd(); 60 asyncEnd();
61 }); 61 });
62 } 62 }
63 63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698