| OLD | NEW |
| 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 import 'test_try.dart'; | 5 import 'test_try.dart'; |
| 6 | 6 |
| 7 InteractionContext interaction; | 7 InteractionContext interaction; |
| 8 | 8 |
| 9 void main() { | 9 void main() { |
| 10 interaction = mockTryDartInteraction(); | 10 interaction = mockTryDartInteraction(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 expectSource('Foo\nBarBaz'); | 25 expectSource('Foo\nBarBaz'); |
| 26 }), | 26 }), |
| 27 | 27 |
| 28 ]); | 28 ]); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void expectSource(String expected) { | 31 void expectSource(String expected) { |
| 32 String actualSource = interaction.currentCompilationUnit.content; | 32 String actualSource = interaction.currentCompilationUnit.content; |
| 33 Expect.stringEquals(expected, actualSource); | 33 Expect.stringEquals(expected, actualSource); |
| 34 } | 34 } |
| OLD | NEW |