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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 } | 859 } |
860 } | 860 } |
861 """, | 861 """, |
862 const <String>['v2']), | 862 const <String>['v2']), |
863 ], | 863 ], |
864 | 864 |
865 // Test that removing a class is supported, using a static method. | 865 // Test that removing a class is supported, using a static method. |
866 const <ProgramResult>[ | 866 const <ProgramResult>[ |
867 const ProgramResult( | 867 const ProgramResult( |
868 r""" | 868 r""" |
869 import 'dart:collection'; | |
870 | |
871 class C { | 869 class C { |
872 static m() { | 870 static m() { |
873 print('v1'); | 871 print('v1'); |
874 } | 872 } |
875 } | 873 } |
876 | 874 |
877 main() { | 875 main() { |
878 // TODO(ahe): The incremental compiler magter ikke static tear-off closures. | |
879 new HashMap(equals: identical); | |
880 try { | 876 try { |
881 C.m(); | 877 C.m(); |
882 } catch (e) { | 878 } catch (e) { |
883 print('v2'); | 879 print('v2'); |
884 } | 880 } |
885 } | 881 } |
886 """, | 882 """, |
887 const <String>['v1']), | 883 const <String>['v1']), |
888 const ProgramResult( | 884 const ProgramResult( |
889 r""" | 885 r""" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 position: absolute; | 1228 position: absolute; |
1233 left: 0px; | 1229 left: 0px; |
1234 width: 3em; | 1230 width: 3em; |
1235 text-align: right; | 1231 text-align: right; |
1236 background-color: lightgoldenrodyellow; | 1232 background-color: lightgoldenrodyellow; |
1237 } | 1233 } |
1238 '''); | 1234 '''); |
1239 style.type = 'text/css'; | 1235 style.type = 'text/css'; |
1240 return style; | 1236 return style; |
1241 } | 1237 } |
OLD | NEW |