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

Side by Side Diff: tests/compiler/dart2js/deferred_load_graph_segmentation_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 of the graph segmentation algorithm used by deferred loading 5 // Test of the graph segmentation algorithm used by deferred loading
6 // to determine which elements can be deferred and which libraries 6 // to determine which elements can be deferred and which libraries
7 // much be included in the initial download (loaded eagerly). 7 // much be included in the initial download (loaded eagerly).
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import "package:async_helper/async_helper.dart"; 10 import "package:async_helper/async_helper.dart";
11 import 'memory_source_file_helper.dart'; 11 import 'memory_source_file_helper.dart';
12 import "dart:async"; 12 import "dart:async";
13 13
14 import 'package:compiler/implementation/dart2jslib.dart' 14 import 'package:compiler/src/dart2jslib.dart'
15 as dart2js; 15 as dart2js;
16 16
17 import 'package:compiler/implementation/deferred_load.dart'; 17 import 'package:compiler/src/deferred_load.dart';
18 18
19 class FakeOutputStream<T> extends EventSink<T> { 19 class FakeOutputStream<T> extends EventSink<T> {
20 void add(T event) {} 20 void add(T event) {}
21 void addError(T event, [StackTrace stackTrace]) {} 21 void addError(T event, [StackTrace stackTrace]) {}
22 void close() {} 22 void close() {}
23 } 23 }
24 24
25 void main() { 25 void main() {
26 Uri script = currentDirectory.resolveUri(Platform.script); 26 Uri script = currentDirectory.resolveUri(Platform.script);
27 Uri libraryRoot = script.resolve('../../../sdk/'); 27 Uri libraryRoot = script.resolve('../../../sdk/');
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 bar1() { 165 bar1() {
166 return "hello"; 166 return "hello";
167 } 167 }
168 168
169 bar2() { 169 bar2() {
170 return 2; 170 return 2;
171 } 171 }
172 """, 172 """,
173 }; 173 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698