| 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 62cfd2ee0a2b1b8c0ec997ca1c26fecdb42841bb..4b347c99869f9e67849082676b714095ddcc4e55 100644
|
| --- a/pkg/stack_trace/test/frame_test.dart
|
| +++ b/pkg/stack_trace/test/frame_test.dart
|
| @@ -202,6 +202,18 @@ void main() {
|
| expect(frame.member, equals("foo.<fn>"));
|
| });
|
|
|
| + test('parses a deeply-nested anonymous stack frame with parameters '
|
| + 'correctly', () {
|
| + var frame = new Frame.parseFirefox(
|
| + '.convertDartClosureToJS/\$function</<@'
|
| + 'http://pub.dartlang.org/stuff.dart.js:560');
|
| + expect(frame.uri,
|
| + equals(Uri.parse("http://pub.dartlang.org/stuff.dart.js")));
|
| + expect(frame.line, equals(560));
|
| + expect(frame.column, isNull);
|
| + expect(frame.member, equals("convertDartClosureToJS.<fn>.<fn>"));
|
| + });
|
| +
|
| test('throws a FormatException for malformed frames', () {
|
| expect(() => new Frame.parseFirefox(''), throwsFormatException);
|
| expect(() => new Frame.parseFirefox('.foo'), throwsFormatException);
|
|
|