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

Unified Diff: pkg/stack_trace/test/frame_test.dart

Issue 180363003: Work around issue 17083 in pkg/stack_trace. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/stack_trace/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 482794c310d379beb97d150293da4032e266f599..b61e8bb89ddef714a84421159efd3250f5d3bcc1 100644
--- a/pkg/stack_trace/test/frame_test.dart
+++ b/pkg/stack_trace/test/frame_test.dart
@@ -33,7 +33,25 @@ void main() {
test('parses a stack frame with timer_impl correctly', () {
var frame = new Frame.parseVM("#1 Foo._bar "
"(timer_impl.dart:24)");
- expect(frame.uri, equals(Uri.parse("dart:async/timer_impl.dart")));
+ expect(frame.uri, equals(Uri.parse("dart:io/timer_impl.dart")));
+ expect(frame.line, equals(24));
+ expect(frame.column, null);
+ expect(frame.member, equals('Foo._bar'));
+ });
+
+ test('parses a stack frame with http_parser correctly', () {
+ var frame = new Frame.parseVM("#1 Foo._bar "
+ "(http_parser.dart:24)");
+ expect(frame.uri, equals(Uri.parse("dart:io/http_parser.dart")));
+ expect(frame.line, equals(24));
+ expect(frame.column, null);
+ expect(frame.member, equals('Foo._bar'));
+ });
+
+ test('parses a stack frame with http_impl correctly', () {
+ var frame = new Frame.parseVM("#1 Foo._bar "
+ "(http_impl.dart:24)");
+ expect(frame.uri, equals(Uri.parse("dart:io/http_impl.dart")));
expect(frame.line, equals(24));
expect(frame.column, null);
expect(frame.member, equals('Foo._bar'));
« no previous file with comments | « pkg/stack_trace/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698