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

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

Issue 17157009: Fix the pkg/stack_trace tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/lib/src/frame.dart ('k') | pkg/stack_trace/test/trace_test.dart » ('j') | 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 de0715a9ddd35496362566c7d8101ce55e453873..a140670f840b26a1fb36757478cadca6dee1ad9b 100644
--- a/pkg/stack_trace/test/frame_test.dart
+++ b/pkg/stack_trace/test/frame_test.dart
@@ -114,9 +114,8 @@ void main() {
});
test('returns the relative path for file URIs', () {
- var uri = path.toUri(path.join('foo', 'bar.dart'));
- expect(new Frame.parse('#0 Foo ($uri:0:0)').library,
- equals(path.join('foo', 'bar.dart')));
+ expect(new Frame.parse('#0 Foo (foo/bar.dart:0:0)').library,
+ equals('foo/bar.dart'));
});
});
@@ -126,9 +125,8 @@ void main() {
expect(new Frame.parse('#0 Foo '
'(http://dartlang.org/thing.dart:5:10)').location,
equals('http://dartlang.org/thing.dart 5:10'));
- var uri = path.toUri(path.join('foo', 'bar.dart'));
- expect(new Frame.parse('#0 Foo ($uri:1:2)').location,
- equals('${path.join('foo', 'bar.dart')} 1:2'));
+ expect(new Frame.parse('#0 Foo (foo/bar.dart:1:2)').location,
+ equals('foo/bar.dart 1:2'));
});
});
« no previous file with comments | « pkg/stack_trace/lib/src/frame.dart ('k') | pkg/stack_trace/test/trace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698