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

Unified Diff: test/frame_test.dart

Issue 1288573002: Properly parse native-code V8 frames. (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 years, 4 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 01177f0d7125f64eb1b7ff43dea6b4f292fbba1f..809822a6db0f66ad5f3fb178dfc1c9b1abbf540b 100644
--- a/test/frame_test.dart
+++ b/test/frame_test.dart
@@ -149,6 +149,15 @@ void main() {
expect(frame.member, equals('<fn>'));
});
+ test('parses a native stack frame correctly', () {
+ var frame = new Frame.parseV8(
+ " at Object.stringify (native)");
+ expect(frame.uri, Uri.parse('native'));
+ expect(frame.line, isNull);
+ expect(frame.column, isNull);
+ expect(frame.member, equals('Object.stringify'));
+ });
+
test('parses a stack frame with [as ...] correctly', () {
// Ignore "[as ...]", since other stack trace formats don't support a
// similar construct.
« 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