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

Unified Diff: test/frame_test.dart

Issue 1320393003: Improve the display of data: URIs in stack traces. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 years, 3 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/frame_test.dart
diff --git a/test/frame_test.dart b/test/frame_test.dart
index 1233cbf85b1b002772863e70a4e9a7fead3d7b2e..63035e0e692867676d52fc060f96f9cd87f5be12 100644
--- a/test/frame_test.dart
+++ b/test/frame_test.dart
@@ -503,6 +503,12 @@ void main() {
expect(new Frame.parseVM('#0 Foo (foo/bar.dart:0:0)').library,
equals(path.join('foo', 'bar.dart')));
});
+
+ test('truncates data: URIs', () {
+ var frame = new Frame.parseVM(
+ '#0 Foo (data:application/dart;charset=utf-8,blah:0:0)');
+ expect(frame.library, equals('data:...'));
+ });
});
group('.location', () {
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698