Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: pkg/stack_trace/test/frame_test.dart

Issue 29323004: Make stack frames without columns print correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/stack_trace/lib/src/frame.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/stack_trace/lib/src/frame.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698