| 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' hide | 7 import 'dart:html' hide |
| 8 Element; | 8 Element; |
| 9 | 9 |
| 10 import 'dart:async' show | 10 import 'dart:async' show |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 const B(this.value); | 1695 const B(this.value); |
| 1696 | 1696 |
| 1697 toString() => 'B($value)'; | 1697 toString() => 'B($value)'; |
| 1698 } | 1698 } |
| 1699 | 1699 |
| 1700 main() { | 1700 main() { |
| 1701 print(const B(const A('v2'))); | 1701 print(const B(const A('v2'))); |
| 1702 print(const A(const B('v2'))); | 1702 print(const A(const B('v2'))); |
| 1703 } | 1703 } |
| 1704 """, | 1704 """, |
| 1705 // TODO(ahe): Broken test, wrong output. | |
| 1706 const <String>['B(null)', 'A(null)']), | |
| 1707 /* These are the correct expectations: | |
| 1708 const <String>['B(A(v2))', 'A(B(v2))']), | 1705 const <String>['B(A(v2))', 'A(B(v2))']), |
| 1709 */ | |
| 1710 ], | 1706 ], |
| 1711 | 1707 |
| 1712 // Test constants of new classes. | 1708 // Test constants of new classes. |
| 1713 const <ProgramResult>[ | 1709 const <ProgramResult>[ |
| 1714 const ProgramResult( | 1710 const ProgramResult( |
| 1715 r""" | 1711 r""" |
| 1716 class A { | 1712 class A { |
| 1717 final value; | 1713 final value; |
| 1718 const A(this.value); | 1714 const A(this.value); |
| 1719 | 1715 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 position: absolute; | 1940 position: absolute; |
| 1945 left: 0px; | 1941 left: 0px; |
| 1946 width: 3em; | 1942 width: 3em; |
| 1947 text-align: right; | 1943 text-align: right; |
| 1948 background-color: lightgoldenrodyellow; | 1944 background-color: lightgoldenrodyellow; |
| 1949 } | 1945 } |
| 1950 '''); | 1946 '''); |
| 1951 style.type = 'text/css'; | 1947 style.type = 'text/css'; |
| 1952 return style; | 1948 return style; |
| 1953 } | 1949 } |
| OLD | NEW |