| 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 library test.end2end_test; | 5 library test.end2end_test; |
| 6 | 6 |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:test/test.dart'; |
| 8 import 'package:source_maps/source_maps.dart'; | 8 import 'package:source_maps/source_maps.dart'; |
| 9 import 'package:source_span/source_span.dart'; | 9 import 'package:source_span/source_span.dart'; |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 test('end-to-end setup', () { | 13 test('end-to-end setup', () { |
| 14 expect(inputVar1.text, 'longVar1'); | 14 expect(inputVar1.text, 'longVar1'); |
| 15 expect(inputFunction.text, 'longName'); | 15 expect(inputFunction.text, 'longName'); |
| 16 expect(inputVar2.text, 'longVar2'); | 16 expect(inputVar2.text, 'longVar2'); |
| 17 expect(inputVar1NoSymbol.text, 'longVar1'); | 17 expect(inputVar1NoSymbol.text, 'longVar1'); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 check(file.span(71, 71), mapping, ispan(70, 70), true); | 153 check(file.span(71, 71), mapping, ispan(70, 70), true); |
| 154 | 154 |
| 155 // Start of the last line | 155 // Start of the last line |
| 156 var oOffset = out.length - 2; | 156 var oOffset = out.length - 2; |
| 157 var iOffset = INPUT.length - 2; | 157 var iOffset = INPUT.length - 2; |
| 158 check(file.span(oOffset, oOffset), mapping, ispan(iOffset, iOffset), true); | 158 check(file.span(oOffset, oOffset), mapping, ispan(iOffset, iOffset), true); |
| 159 check(file.span(oOffset + 1, oOffset + 1), mapping, | 159 check(file.span(oOffset + 1, oOffset + 1), mapping, |
| 160 ispan(iOffset, iOffset), true); | 160 ispan(iOffset, iOffset), true); |
| 161 }); | 161 }); |
| 162 } | 162 } |
| OLD | NEW |