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

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

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 months 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 'memory_source_file_helper.dart'; 10 import 'memory_source_file_helper.dart';
11 11
12 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 12 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
13 as dart2js; 13 as dart2js;
14 14
15 void main() { 15 void main() {
16 Uri script = currentDirectory.resolve(nativeToUriPath(new Options().script)); 16 Uri script = currentDirectory.resolve(nativeToUriPath(Platform.script));
17 Uri libraryRoot = script.resolve('../../../sdk/'); 17 Uri libraryRoot = script.resolve('../../../sdk/');
18 Uri packageRoot = script.resolve('./packages/'); 18 Uri packageRoot = script.resolve('./packages/');
19 19
20 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES; 20 MemorySourceFileProvider.MEMORY_SOURCE_FILES = MEMORY_SOURCE_FILES;
21 var provider = new MemorySourceFileProvider(); 21 var provider = new MemorySourceFileProvider();
22 var handler = new FormattingDiagnosticHandler(provider); 22 var handler = new FormattingDiagnosticHandler(provider);
23 23
24 Compiler compiler = new Compiler(provider.readStringFromUri, 24 Compiler compiler = new Compiler(provider.readStringFromUri,
25 (name, extension) => null, 25 (name, extension) => null,
26 handler.diagnosticHandler, 26 handler.diagnosticHandler,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class MyClass { 70 class MyClass {
71 const MyClass(); 71 const MyClass();
72 72
73 foo(x) { 73 foo(x) {
74 new DateTime.now(); 74 new DateTime.now();
75 return (x - 3) ~/ 2; 75 return (x - 3) ~/ 2;
76 } 76 }
77 } 77 }
78 """, 78 """,
79 }; 79 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/codegen_helper.dart ('k') | tests/compiler/dart2js/diagnose_ambiguous_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698