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

Side by Side Diff: dart/tests/try/web/incremental_compilation_update_test.dart

Issue 764023002: Incremental compilation of new lazy statics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years 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 library trydart.incremental_compilation_update_test; 5 library trydart.incremental_compilation_update_test;
6 6
7 import 'dart:html' hide 7 import 'dart:html' hide
8 Element; 8 Element;
9 9
10 import 'dart:async' show 10 import 'dart:async' show
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 if (closure == null) { 1201 if (closure == null) {
1202 print('closure is null'); 1202 print('closure is null');
1203 closure = new C().foo; 1203 closure = new C().foo;
1204 } 1204 }
1205 closure(named: 'v2'); 1205 closure(named: 'v2');
1206 } 1206 }
1207 """, 1207 """,
1208 const <String>['v2']), 1208 const <String>['v2']),
1209 ], 1209 ],
1210 1210
1211 /*
1212 // Test that a lazy static is supported. 1211 // Test that a lazy static is supported.
1213 // TODO(ahe): This test doesn't pass yet. 1212 // TODO(ahe): This test doesn't pass yet.
Johnni Winther 2014/12/09 11:53:52 Doesn't it?
ahe 2014/12/10 14:00:04 Done.
1214 const <ProgramResult>[ 1213 const <ProgramResult>[
1215 const ProgramResult( 1214 const ProgramResult(
1216 r""" 1215 r"""
1217 var normal; 1216 var normal;
1218 1217
1219 foo() { 1218 foo() {
1220 print(normal); 1219 print(normal);
1221 } 1220 }
1222 1221
1223 main() { 1222 main() {
(...skipping 25 matching lines...) Expand all
1249 if (normal == null) { 1248 if (normal == null) {
1250 normal = 'v1'; 1249 normal = 'v1';
1251 } else { 1250 } else {
1252 normal = ''; 1251 normal = '';
1253 } 1252 }
1254 foo(); 1253 foo();
1255 } 1254 }
1256 """, 1255 """,
1257 const <String>['v2', 'lazy']), 1256 const <String>['v2', 'lazy']),
1258 ], 1257 ],
1259 */
1260 1258
1261 // Test that superclasses of directly instantiated classes are also 1259 // Test that superclasses of directly instantiated classes are also
1262 // emitted. 1260 // emitted.
1263 const <ProgramResult>[ 1261 const <ProgramResult>[
1264 const ProgramResult( 1262 const ProgramResult(
1265 r""" 1263 r"""
1266 class A { 1264 class A {
1267 } 1265 }
1268 1266
1269 class B extends A { 1267 class B extends A {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 position: absolute; 1485 position: absolute;
1488 left: 0px; 1486 left: 0px;
1489 width: 3em; 1487 width: 3em;
1490 text-align: right; 1488 text-align: right;
1491 background-color: lightgoldenrodyellow; 1489 background-color: lightgoldenrodyellow;
1492 } 1490 }
1493 '''); 1491 ''');
1494 style.type = 'text/css'; 1492 style.type = 'text/css';
1495 return style; 1493 return style;
1496 } 1494 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698