OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // Unittest for the [LineColumnCollector]. | 5 // Unittest for the [LineColumnCollector]. |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:compiler/src/io/code_output.dart'; | 8 import 'package:compiler/src/io/code_output.dart'; |
9 import 'package:compiler/src/io/line_column_provider.dart'; | 9 import 'package:compiler/src/io/line_column_provider.dart'; |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 test(["a", buffer2], positions); | 75 test(["a", buffer2], positions); |
76 | 76 |
77 CodeBuffer buffer3 = new CodeBuffer(); | 77 CodeBuffer buffer3 = new CodeBuffer(); |
78 buffer3.add("a"); | 78 buffer3.add("a"); |
79 test([buffer3, buffer2], positions); | 79 test([buffer3, buffer2], positions); |
80 | 80 |
81 CodeBuffer buffer4 = new CodeBuffer(); | 81 CodeBuffer buffer4 = new CodeBuffer(); |
82 buffer4.addBuffer(buffer3); | 82 buffer4.addBuffer(buffer3); |
83 test([buffer4, buffer2], positions); | 83 test([buffer4, buffer2], positions); |
84 } | 84 } |
OLD | NEW |