| OLD | NEW |
| 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'; | 7 import 'dart:html'; |
| 8 | 8 |
| 9 import 'dart:async' show | 9 import 'dart:async' show |
| 10 Future; | 10 Future; |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 if (instance == null) { | 454 if (instance == null) { |
| 455 instance = new A(); | 455 instance = new A(); |
| 456 } else { | 456 } else { |
| 457 instance = new B(); | 457 instance = new B(); |
| 458 } | 458 } |
| 459 instance.m(); | 459 instance.m(); |
| 460 } | 460 } |
| 461 """, | 461 """, |
| 462 const <String>['Called B.m']), | 462 const <String>['Called B.m']), |
| 463 ], | 463 ], |
| 464 |
| 465 // Test that source maps don't throw exceptions. |
| 466 const <ProgramResult>[ |
| 467 const ProgramResult( |
| 468 """ |
| 469 main() { |
| 470 print('a'); |
| 471 } |
| 472 """, |
| 473 const <String>['a']), |
| 474 |
| 475 const ProgramResult( |
| 476 """ |
| 477 main() { |
| 478 print('a'); |
| 479 print('b'); |
| 480 print('c'); |
| 481 } |
| 482 """, |
| 483 const <String>['a', 'b', 'c']), |
| 484 ], |
| 464 ]; | 485 ]; |
| 465 | 486 |
| 466 void main() { | 487 void main() { |
| 467 listener.start(); | 488 listener.start(); |
| 468 | 489 |
| 469 document.head.append(lineNumberStyle()); | 490 document.head.append(lineNumberStyle()); |
| 470 | 491 |
| 471 return asyncTest(() => Future.forEach(tests, compileAndRun)); | 492 return asyncTest(() => Future.forEach(tests, compileAndRun)); |
| 472 } | 493 } |
| 473 | 494 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 position: absolute; | 601 position: absolute; |
| 581 left: 0px; | 602 left: 0px; |
| 582 width: 3em; | 603 width: 3em; |
| 583 text-align: right; | 604 text-align: right; |
| 584 background-color: lightgoldenrodyellow; | 605 background-color: lightgoldenrodyellow; |
| 585 } | 606 } |
| 586 '''); | 607 '''); |
| 587 style.type = 'text/css'; | 608 style.type = 'text/css'; |
| 588 return style; | 609 return style; |
| 589 } | 610 } |
| OLD | NEW |