| OLD | NEW |
| 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 import 'package:unittest/unittest.dart'; | 5 import 'package:unittest/unittest.dart'; |
| 6 | 6 |
| 7 import 'utils.dart'; | 7 import 'utils.dart'; |
| 8 | 8 |
| 9 void main() { | 9 void main() { |
| 10 test("a valid Dart file doesn't throw any errors", () { | 10 test("a valid Dart file doesn't throw any errors", () { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 test("an error in the middle of a very long line", () { | 53 test("an error in the middle of a very long line", () { |
| 54 expect(errorsForFile('$veryLongString void foo;$veryLongString'), | 54 expect(errorsForFile('$veryLongString void foo;$veryLongString'), |
| 55 equals('Error on line 1 of test.dart: ...\n' | 55 equals('Error on line 1 of test.dart: ...\n' |
| 56 '... ' | 56 '... ' |
| 57 'void foo; ' | 57 'void foo; ' |
| 58 '...\n' | 58 '...\n' |
| 59 ' ' | 59 ' ' |
| 60 '^^^^\n')); | 60 '^^^^\n')); |
| 61 }); | 61 }); |
| 62 } | 62 } |
| OLD | NEW |