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

Side by Side Diff: tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart

Issue 690103004: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 // Test that the additional runtime type support is output to the right 5 // Test that the additional runtime type support is output to the right
6 // Files when using deferred loading. 6 // Files when using deferred loading.
7 7
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 import "package:async_helper/async_helper.dart"; 9 import "package:async_helper/async_helper.dart";
10 import 'memory_source_file_helper.dart'; 10 import 'memory_source_file_helper.dart';
11 import "dart:async"; 11 import "dart:async";
12 12
13 import 'package:compiler/implementation/dart2jslib.dart' 13 import 'package:compiler/src/dart2jslib.dart'
14 as dart2js; 14 as dart2js;
15 15
16 class MemoryOutputSink extends EventSink<String> { 16 class MemoryOutputSink extends EventSink<String> {
17 StringBuffer mem = new StringBuffer(); 17 StringBuffer mem = new StringBuffer();
18 void add(String event) { 18 void add(String event) {
19 mem.write(event); 19 mem.write(event);
20 } 20 }
21 void addError(String event, [StackTrace stackTrace]) { 21 void addError(String event, [StackTrace stackTrace]) {
22 Expect.isTrue(false); 22 Expect.isTrue(false);
23 } 23 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 """, "lib2.dart": """ 168 """, "lib2.dart": """
169 import "main.dart" as main; 169 import "main.dart" as main;
170 const C4 = "string4"; 170 const C4 = "string4";
171 const C5 = const main.C(1); 171 const C5 = const main.C(1);
172 const C6 = const main.C(2); 172 const C6 = const main.C(2);
173 foo() { 173 foo() {
174 print("lib2"); 174 print("lib2");
175 main.foo(); 175 main.foo();
176 } 176 }
177 """}; 177 """};
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698