| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library frame_test; | 5 library frame_test; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 8 import 'package:stack_trace/stack_trace.dart'; | 8 import 'package:stack_trace/stack_trace.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 expect(new Frame.parseVM('#0 Foo (http://dartlang.org/thing.dart:5:10)') | 314 expect(new Frame.parseVM('#0 Foo (http://dartlang.org/thing.dart:5:10)') |
| 315 .toString(), | 315 .toString(), |
| 316 equals('http://dartlang.org/thing.dart 5:10 in Foo')); | 316 equals('http://dartlang.org/thing.dart 5:10 in Foo')); |
| 317 }); | 317 }); |
| 318 | 318 |
| 319 test('converts "<anonymous closure>" to "<fn>"', () { | 319 test('converts "<anonymous closure>" to "<fn>"', () { |
| 320 expect(new Frame.parseVM('#0 Foo.<anonymous closure> ' | 320 expect(new Frame.parseVM('#0 Foo.<anonymous closure> ' |
| 321 '(dart:core/uri.dart:5:10)').toString(), | 321 '(dart:core/uri.dart:5:10)').toString(), |
| 322 equals('dart:core/uri.dart 5:10 in Foo.<fn>')); | 322 equals('dart:core/uri.dart 5:10 in Foo.<fn>')); |
| 323 }); | 323 }); |
| 324 |
| 325 test('prints a frame without a column correctly', () { |
| 326 expect(new Frame.parseVM('#0 Foo (dart:core/uri.dart:5)').toString(), |
| 327 equals('dart:core/uri.dart 5 in Foo.<fn>')); |
| 328 }); |
| 324 }); | 329 }); |
| 325 } | 330 } |
| OLD | NEW |