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

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

Issue 730423002: Incremental compilation of superclass change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add type arguments. Created 6 years, 1 month 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'; 7 import 'dart:html';
8 8
9 import 'dart:async' show 9 import 'dart:async' show
10 Future; 10 Future;
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 try { 839 try {
840 new C(); 840 new C();
841 print('v1'); 841 print('v1');
842 } catch (e) { 842 } catch (e) {
843 print('v2'); 843 print('v2');
844 } 844 }
845 } 845 }
846 """, 846 """,
847 const <String>['v2']), 847 const <String>['v2']),
848 ], 848 ],
849
850 // Test that changing the supertype of a class.
851 const <ProgramResult>[
852 const ProgramResult(
853 r"""
854 class A {
855 m() {
856 print('v2');
857 }
858 }
859 class B extends A {
860 m() {
861 print('v1');
862 }
863 }
864 class C extends B {
865 m() {
866 super.m();
867 }
868 }
869
870 var instance;
871
872 main() {
873 if (instance == null) {
874 instance = new C();
875 }
876 instance.m();
877 }
878 """,
879 const <String>['v1']),
880 const ProgramResult(
881 r"""
882 class A {
883 m() {
884 print('v2');
885 }
886 }
887 class B extends A {
888 m() {
889 print('v1');
890 }
891 }
892 class C extends A {
893 m() {
894 super.m();
895 }
896 }
897
898 var instance;
899
900 main() {
901 if (instance == null) {
902 instance = new C();
903 }
904 instance.m();
905 }
906 """,
907 const <String>['v2']),
908 ],
849 ]; 909 ];
850 910
851 void main() { 911 void main() {
852 listener.start(); 912 listener.start();
853 913
854 document.head.append(lineNumberStyle()); 914 document.head.append(lineNumberStyle());
855 915
856 return asyncTest(() => Future.forEach(tests, compileAndRun)); 916 return asyncTest(() => Future.forEach(tests, compileAndRun));
857 } 917 }
858 918
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 position: absolute; 1025 position: absolute;
966 left: 0px; 1026 left: 0px;
967 width: 3em; 1027 width: 3em;
968 text-align: right; 1028 text-align: right;
969 background-color: lightgoldenrodyellow; 1029 background-color: lightgoldenrodyellow;
970 } 1030 }
971 '''); 1031 ''');
972 style.type = 'text/css'; 1032 style.type = 'text/css';
973 return style; 1033 return style;
974 } 1034 }
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