diff --git a/.travis.yml b/.travis.yml index 18267fc..ace10ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: dart dart: - dev - - 2.0.0 + - 2.1.0 dart_task: - test: --platform vm,chrome diff --git a/pubspec.yaml b/pubspec.yaml index 813dd3b..71e10f6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ author: Dart Team homepage: https://github.com/dart-lang/source_span environment: - sdk: '>=2.0.0 <3.0.0' + sdk: '>=2.1.0 <3.0.0' dependencies: charcode: ^1.0.0 @@ -14,4 +14,4 @@ dependencies: term_glyph: ^1.0.0 dev_dependencies: - test: ^1.0.0 + test: ^1.6.0 diff --git a/test/file_test.dart b/test/file_test.dart index e043ac3..9a103c4 100644 --- a/test/file_test.dart +++ b/test/file_test.dart @@ -241,7 +241,7 @@ zip zap zop""", url: "bar.dart").span(10, 11); test("pointSpan() returns a FileSpan", () { var location = file.location(15); var span = location.pointSpan(); - expect(span, new isInstanceOf()); + expect(span, isA()); expect(span.start, equals(location)); expect(span.end, equals(location)); expect(span.text, isEmpty); @@ -344,14 +344,14 @@ zip zap zop }); test("returns a FileSpan for a FileSpan input", () { - expect(span.union(file.span(0, 5)), new isInstanceOf()); + expect(span.union(file.span(0, 5)), isA()); }); test("returns a base SourceSpan for a SourceSpan input", () { var other = new SourceSpan(new SourceLocation(0, sourceUrl: "foo.dart"), new SourceLocation(5, sourceUrl: "foo.dart"), "hey, "); var result = span.union(other); - expect(result, isNot(new isInstanceOf())); + expect(result, isNot(isA())); expect(result.start, equals(other.start)); expect(result.end, equals(span.end)); expect(result.text, equals("hey, ar baz\n"));