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

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

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs Created 7 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 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:io'; 8 import 'dart:io';
9 export 'dart:io' show Platform; 9 export 'dart:io' show Platform;
10 10
11 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' 11 export '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart'
12 show Compiler; 12 show Compiler;
13 13
14 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' 14 export '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'
15 show currentDirectory, nativeToUriPath; 15 show currentDirectory;
16 16
17 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart' 17 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'
18 show StringSourceFile; 18 show StringSourceFile;
19 19
20 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart' 20 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart'
21 show SourceFileProvider; 21 show SourceFileProvider;
22 22
23 export '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart' 23 export '../../../sdk/lib/_internal/compiler/implementation/source_file_provider. dart'
24 show SourceFileProvider, FormattingDiagnosticHandler; 24 show SourceFileProvider, FormattingDiagnosticHandler;
25 25
(...skipping 10 matching lines...) Expand all
36 if (source == null) { 36 if (source == null) {
37 return new Future.error(new Exception('No such file $resourceUri')); 37 return new Future.error(new Exception('No such file $resourceUri'));
38 } 38 }
39 String resourceName = '$resourceUri'; 39 String resourceName = '$resourceUri';
40 this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source); 40 this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source);
41 return new Future.value(source); 41 return new Future.value(source);
42 } 42 }
43 43
44 Future<String> call(Uri resourceUri) => readStringFromUri(resourceUri); 44 Future<String> call(Uri resourceUri) => readStringFromUri(resourceUri);
45 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698