| 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 'package:unittest/unittest.dart'; | 5 import 'package:test/test.dart'; |
| 6 import 'package:source_span/source_span.dart'; | 6 import 'package:source_span/source_span.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 var file; | 9 var file; |
| 10 setUp(() { | 10 setUp(() { |
| 11 file = new SourceFile(""" | 11 file = new SourceFile(""" |
| 12 foo bar baz | 12 foo bar baz |
| 13 whiz bang boom | 13 whiz bang boom |
| 14 zip zap zop""", url: "foo.dart"); | 14 zip zap zop""", url: "foo.dart"); |
| 15 }); | 15 }); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 expect(span.expand(other), equals(span)); | 367 expect(span.expand(other), equals(span)); |
| 368 }); | 368 }); |
| 369 | 369 |
| 370 test("works with an external overlapping span", () { | 370 test("works with an external overlapping span", () { |
| 371 var other = file.span(0, 16); | 371 var other = file.span(0, 16); |
| 372 expect(span.expand(other), equals(other)); | 372 expect(span.expand(other), equals(other)); |
| 373 }); | 373 }); |
| 374 }); | 374 }); |
| 375 }); | 375 }); |
| 376 } | 376 } |
| OLD | NEW |