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

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

Issue 738743002: Incremental compilation of added class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41886 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 main() { 782 main() {
783 if (instance == null) { 783 if (instance == null) {
784 instance = new C(); 784 instance = new C();
785 } 785 }
786 786
787 instance.foo(); 787 instance.foo();
788 } 788 }
789 """, 789 """,
790 const <String>['v2']), 790 const <String>['v2']),
791 ], 791 ],
792
793 // Test that adding a class is supported.
794 const <ProgramResult>[
795 const ProgramResult(
796 r"""
797 main() {
798 print('v1');
799 }
800 """,
801 const <String>['v1']),
802 const ProgramResult(
803 r"""
804 class C {
805 void foo() {
806 print('v2');
807 }
808 }
809
810 main() {
811 new C().foo();
812 }
813 """,
814 const <String>['v2']),
815 ],
792 ]; 816 ];
793 817
794 void main() { 818 void main() {
795 listener.start(); 819 listener.start();
796 820
797 document.head.append(lineNumberStyle()); 821 document.head.append(lineNumberStyle());
798 822
799 return asyncTest(() => Future.forEach(tests, compileAndRun)); 823 return asyncTest(() => Future.forEach(tests, compileAndRun));
800 } 824 }
801 825
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 position: absolute; 932 position: absolute;
909 left: 0px; 933 left: 0px;
910 width: 3em; 934 width: 3em;
911 text-align: right; 935 text-align: right;
912 background-color: lightgoldenrodyellow; 936 background-color: lightgoldenrodyellow;
913 } 937 }
914 '''); 938 ''');
915 style.type = 'text/css'; 939 style.type = 'text/css';
916 return style; 940 return style;
917 } 941 }
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