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

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: Address comments and also test for needsDefineClass to see if defineClass is needed. 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
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
1214 const <ProgramResult>[ 1212 const <ProgramResult>[
1215 const ProgramResult( 1213 const ProgramResult(
1216 r""" 1214 r"""
1217 var normal; 1215 var normal;
1218 1216
1219 foo() { 1217 foo() {
1220 print(normal); 1218 print(normal);
1221 } 1219 }
1222 1220
1223 main() { 1221 main() {
(...skipping 25 matching lines...) Expand all
1249 if (normal == null) { 1247 if (normal == null) {
1250 normal = 'v1'; 1248 normal = 'v1';
1251 } else { 1249 } else {
1252 normal = ''; 1250 normal = '';
1253 } 1251 }
1254 foo(); 1252 foo();
1255 } 1253 }
1256 """, 1254 """,
1257 const <String>['v2', 'lazy']), 1255 const <String>['v2', 'lazy']),
1258 ], 1256 ],
1259 */
1260 1257
1261 // Test that superclasses of directly instantiated classes are also 1258 // Test that superclasses of directly instantiated classes are also
1262 // emitted. 1259 // emitted.
1263 const <ProgramResult>[ 1260 const <ProgramResult>[
1264 const ProgramResult( 1261 const ProgramResult(
1265 r""" 1262 r"""
1266 class A { 1263 class A {
1267 } 1264 }
1268 1265
1269 class B extends A { 1266 class B extends A {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 position: absolute; 1486 position: absolute;
1490 left: 0px; 1487 left: 0px;
1491 width: 3em; 1488 width: 3em;
1492 text-align: right; 1489 text-align: right;
1493 background-color: lightgoldenrodyellow; 1490 background-color: lightgoldenrodyellow;
1494 } 1491 }
1495 '''); 1492 ''');
1496 style.type = 'text/css'; 1493 style.type = 'text/css';
1497 return style; 1494 return style;
1498 } 1495 }
OLDNEW
« no previous file with comments | « dart/pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698