| Index: pkg/stack_trace/test/frame_test.dart
|
| ===================================================================
|
| --- pkg/stack_trace/test/frame_test.dart (revision 27833)
|
| +++ pkg/stack_trace/test/frame_test.dart (working copy)
|
| @@ -10,7 +10,7 @@
|
|
|
| void main() {
|
| group('.parseVM', () {
|
| - test('parses a stack frame correctly', () {
|
| + test('parses a stack frame with column correctly', () {
|
| var frame = new Frame.parseVM("#1 Foo._bar "
|
| "(file:///home/nweiz/code/stuff.dart:42:21)");
|
| expect(frame.uri,
|
| @@ -20,6 +20,16 @@
|
| expect(frame.member, equals('Foo._bar'));
|
| });
|
|
|
| + test('parses a stack frame without column correctly', () {
|
| + var frame = new Frame.parseVM("#1 Foo._bar "
|
| + "(file:///home/nweiz/code/stuff.dart:24)");
|
| + expect(frame.uri,
|
| + equals(Uri.parse("file:///home/nweiz/code/stuff.dart")));
|
| + expect(frame.line, equals(24));
|
| + expect(frame.column, null);
|
| + expect(frame.member, equals('Foo._bar'));
|
| + });
|
| +
|
| test('converts "<anonymous closure>" to "<fn>"', () {
|
| String parsedMember(String member) =>
|
| new Frame.parseVM('#0 $member (foo:0:0)').member;
|
|
|