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

Side by Side Diff: tests/try/poi/compiler_test_case.dart

Issue 1336843003: Avoid dart:io dependency in try (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
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 // Helper class for writing compiler tests. 5 // Helper class for writing compiler tests.
6 library trydart.compiler_test_case; 6 library trydart.compiler_test_case;
7 7
8 import 'dart:async' show 8 import 'dart:async' show
9 Future; 9 Future;
10 10
11 export 'dart:async' show 11 export 'dart:async' show
12 Future; 12 Future;
13 13
14 import 'package:async_helper/async_helper.dart' show 14 import 'package:async_helper/async_helper.dart' show
15 asyncTest; 15 asyncTest;
16 16
17 import '../../compiler/dart2js/compiler_helper.dart' show 17 import '../../compiler/dart2js/mock_compiler.dart' show
18 MockCompiler, 18 MockCompiler,
19 compilerFor; 19 compilerFor;
20 20
21 export 'package:expect/expect.dart' show 21 export 'package:expect/expect.dart' show
22 Expect; 22 Expect;
23 23
24 import 'package:compiler/src/elements/elements.dart' show 24 import 'package:compiler/src/elements/elements.dart' show
25 LibraryElement; 25 LibraryElement;
26 26
27 export 'package:compiler/src/elements/elements.dart' show 27 export 'package:compiler/src/elements/elements.dart' show
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 /// Returns a future for the mainApp after running the compiler. 78 /// Returns a future for the mainApp after running the compiler.
79 Future<LibraryElement> compile() { 79 Future<LibraryElement> compile() {
80 return loadMainApp().then((LibraryElement library) { 80 return loadMainApp().then((LibraryElement library) {
81 return compiler.runCompiler(scriptUri).then((_) => library); 81 return compiler.runCompiler(scriptUri).then((_) => library);
82 }); 82 });
83 } 83 }
84 84
85 String toString() => source; 85 String toString() => source;
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698