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

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

Issue 13157004: Use the stack_trace library in scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
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 c65f39559a7b2b41129904c0c34cd5227cf57bb5..02bec68349348fa0f2aca21d5fb67ce12ccbcbb2 100644
--- a/pkg/stack_trace/test/frame_test.dart
+++ b/pkg/stack_trace/test/frame_test.dart
@@ -139,6 +139,22 @@ void main() {
});
});
+ group('.package', () {
+ test('returns null for non-package URIs', () {
+ expect(new Frame.parse('#0 Foo (dart:async:0:0)').package, isNull);
+ expect(new Frame.parse('#0 Foo '
+ '(http://dartlang.org/stuff/thing.dart:0:0)').package,
+ isNull);
+ });
+
+ test('returns the package name for package: URIs', () {
+ expect(new Frame.parse('#0 Foo (package:foo/foo.dart:0:0)').package,
+ equals('foo'));
+ expect(new Frame.parse('#0 Foo (package:foo/zap/bar.dart:0:0)').package,
+ equals('foo'));
+ });
+ });
+
group('.toString()', () {
test('returns the library and line/column numbers for non-core '
'libraries', () {

Powered by Google App Engine
This is Rietveld 408576698