OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.test.run; | 5 library fletchc.test.run; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 | 10 |
11 import 'dart:io' as io; | 11 import 'dart:io' as io; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 settings = await readSettings(fileUri(fletchSettingsFile, Uri.base)); | 155 settings = await readSettings(fileUri(fletchSettingsFile, Uri.base)); |
156 } | 156 } |
157 SessionState state = createSessionState("test", settings); | 157 SessionState state = createSessionState("test", settings); |
158 await compile(fileUri(script, Uri.base), state, Uri.base); | 158 await compile(fileUri(script, Uri.base), state, Uri.base); |
159 await startAndAttachDirectly(state, Uri.base); | 159 await startAndAttachDirectly(state, Uri.base); |
160 state.stdoutSink.attachCommandSender(stdout.add); | 160 state.stdoutSink.attachCommandSender(stdout.add); |
161 state.stderrSink.attachCommandSender(stderr.add); | 161 state.stderrSink.attachCommandSender(stderr.add); |
162 await developer.export( | 162 await developer.export( |
163 state, fileUri(snapshot, Uri.base), binaryProgramInfo: binaryProgramInfo); | 163 state, fileUri(snapshot, Uri.base), binaryProgramInfo: binaryProgramInfo); |
164 } | 164 } |
OLD | NEW |