Index: pkg/stack_trace/test/frame_test.dart |
diff --git a/pkg/stack_trace/test/frame_test.dart b/pkg/stack_trace/test/frame_test.dart |
index d1f53f6045df7f32673ab2bba99ca8cc2d1f3949..de0715a9ddd35496362566c7d8101ce55e453873 100644 |
--- a/pkg/stack_trace/test/frame_test.dart |
+++ b/pkg/stack_trace/test/frame_test.dart |
@@ -7,7 +7,6 @@ library frame_test; |
import 'dart:io'; |
import 'package:pathos/path.dart' as path; |
-import 'package:stack_trace/src/utils.dart'; |
import 'package:stack_trace/stack_trace.dart'; |
import 'package:unittest/unittest.dart'; |
@@ -41,7 +40,7 @@ void main() { |
// TODO(nweiz): use URL-style paths when such a thing exists. |
var builder = new path.Builder(style: path.Style.posix); |
expect(builder.basename(frame.uri.path), equals('frame_test.dart')); |
- expect(frame.line, equals(16)); |
+ expect(frame.line, equals(15)); |
expect(frame.column, equals(5)); |
expect(frame.member, equals('getStackFrame')); |
}); |
@@ -115,7 +114,7 @@ void main() { |
}); |
test('returns the relative path for file URIs', () { |
- var uri = pathToFileUri(path.join('foo', 'bar.dart')); |
+ var uri = path.toUri(path.join('foo', 'bar.dart')); |
expect(new Frame.parse('#0 Foo ($uri:0:0)').library, |
equals(path.join('foo', 'bar.dart'))); |
}); |
@@ -127,7 +126,7 @@ void main() { |
expect(new Frame.parse('#0 Foo ' |
'(http://dartlang.org/thing.dart:5:10)').location, |
equals('http://dartlang.org/thing.dart 5:10')); |
- var uri = pathToFileUri(path.join('foo', 'bar.dart')); |
+ var uri = path.toUri(path.join('foo', 'bar.dart')); |
expect(new Frame.parse('#0 Foo ($uri:1:2)').location, |
equals('${path.join('foo', 'bar.dart')} 1:2')); |
}); |