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

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

Issue 768993003: Track emitted classes in incremental compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42279. 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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 """, 1299 """,
1300 const <String>['v1']), 1300 const <String>['v1']),
1301 const ProgramResult( 1301 const ProgramResult(
1302 r""" 1302 r"""
1303 main() { 1303 main() {
1304 ['v2'].forEach(print); 1304 ['v2'].forEach(print);
1305 } 1305 }
1306 """, 1306 """,
1307 const <String>['v2']), 1307 const <String>['v2']),
1308 ], 1308 ],
1309
1310 // Test that newly instantiated classes are handled correctly when there is
1311 // more than one change.
1312 const <ProgramResult>[
1313 const ProgramResult(
1314 r"""
1315 class A {
1316 foo() {
1317 print('Called foo');
1318 }
1319
1320 bar() {
1321 print('Called bar');
1322 }
1323 }
1324
1325 class B extends A {
1326 }
1327
1328 main() {
1329 new B().foo();
1330 }
1331 """,
1332 const <String>['Called foo']),
1333 const ProgramResult(
1334 r"""
1335 class A {
1336 foo() {
1337 print('Called foo');
1338 }
1339
1340 bar() {
1341 print('Called bar');
1342 }
1343 }
1344
1345 class B extends A {
1346 }
1347
1348 main() {
1349 new B().foo();
1350 }
1351 """,
1352 const <String>['Called foo']),
1353 const ProgramResult(
1354 r"""
1355 class A {
1356 foo() {
1357 print('Called foo');
1358 }
1359
1360 bar() {
1361 print('Called bar');
1362 }
1363 }
1364
1365 class B extends A {
1366 }
1367
1368 main() {
1369 new A().bar();
1370 }
1371 """,
1372 const <String>['Called bar']),
1373 ],
1309 ]; 1374 ];
1310 1375
1311 void main() { 1376 void main() {
1312 listener.start(); 1377 listener.start();
1313 1378
1314 document.head.append(lineNumberStyle()); 1379 document.head.append(lineNumberStyle());
1315 1380
1316 summary = new SpanElement(); 1381 summary = new SpanElement();
1317 document.body.append(new HeadingElement.h1() 1382 document.body.append(new HeadingElement.h1()
1318 ..appendText("Incremental compiler tests") 1383 ..appendText("Incremental compiler tests")
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 position: absolute; 1564 position: absolute;
1500 left: 0px; 1565 left: 0px;
1501 width: 3em; 1566 width: 3em;
1502 text-align: right; 1567 text-align: right;
1503 background-color: lightgoldenrodyellow; 1568 background-color: lightgoldenrodyellow;
1504 } 1569 }
1505 '''); 1570 ''');
1506 style.type = 'text/css'; 1571 style.type = 'text/css';
1507 return style; 1572 return style;
1508 } 1573 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698