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 import 'package:source_span/src/colors.dart' as colors; | 7 import 'package:source_span/src/colors.dart' as colors; |
8 | 8 |
9 main() { | 9 main() { |
10 var span; | 10 var span; |
11 setUp(() { | 11 setUp(() { |
12 span = new SourceSpan( | 12 span = new SourceSpan( |
13 new SourceLocation(5, sourceUrl: "foo.dart"), | 13 new SourceLocation(5, sourceUrl: "foo.dart"), |
14 new SourceLocation(12, sourceUrl: "foo.dart"), | 14 new SourceLocation(12, sourceUrl: "foo.dart"), |
15 "foo bar"); | 15 "foo bar"); |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 test("a different source URL isn't equal", () { | 311 test("a different source URL isn't equal", () { |
312 var other = new SourceSpan( | 312 var other = new SourceSpan( |
313 new SourceLocation(5, sourceUrl: "bar.dart"), | 313 new SourceLocation(5, sourceUrl: "bar.dart"), |
314 new SourceLocation(12, sourceUrl: "bar.dart"), | 314 new SourceLocation(12, sourceUrl: "bar.dart"), |
315 "foo bar"); | 315 "foo bar"); |
316 | 316 |
317 expect(span, isNot(equals(other))); | 317 expect(span, isNot(equals(other))); |
318 }); | 318 }); |
319 }); | 319 }); |
320 } | 320 } |
OLD | NEW |