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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 7 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 library dart2js.test.memory_source_file_helper; 5 library dart2js.test.memory_source_file_helper;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 import 'dart:uri' show Uri;
9 export 'dart:uri' show Uri;
10 import 'dart:io'; 8 import 'dart:io';
11 export 'dart:io' show Options; 9 export 'dart:io' show Options;
12 10
13 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' 11 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart'
14 show Compiler; 12 show Compiler;
15 13
16 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' 14 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
17 show currentDirectory, nativeToUriPath; 15 show currentDirectory, nativeToUriPath;
18 16
19 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart' 17 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'
(...skipping 12 matching lines...) Expand all
32 return super.readStringFromUri(resourceUri); 30 return super.readStringFromUri(resourceUri);
33 } 31 }
34 String source = MEMORY_SOURCE_FILES[resourceUri.path]; 32 String source = MEMORY_SOURCE_FILES[resourceUri.path];
35 // TODO(ahe): Return new Future.error(...) ? 33 // TODO(ahe): Return new Future.error(...) ?
36 if (source == null) throw 'No such file $resourceUri'; 34 if (source == null) throw 'No such file $resourceUri';
37 String resourceName = '$resourceUri'; 35 String resourceName = '$resourceUri';
38 this.sourceFiles[resourceName] = new SourceFile(resourceName, source); 36 this.sourceFiles[resourceName] = new SourceFile(resourceName, source);
39 return new Future.value(source); 37 return new Future.value(source);
40 } 38 }
41 } 39 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/gvn_dynamic_field_get_test.dart ('k') | tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698