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

Unified Diff: test/source_map_stack_trace_test.dart

Issue 2069043004: Properly map function names with named arguments. (Closed) Base URL: git@github.com:dart-lang/source_map_stack_trace.git@master
Patch Set: Created 4 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
« lib/source_map_stack_trace.dart ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/source_map_stack_trace_test.dart
diff --git a/test/source_map_stack_trace_test.dart b/test/source_map_stack_trace_test.dart
index 411bf291cfe1ab125554cb1cd1f9bca27ae904e2..12ae7b189fe39a440dd8e6a50c6def5b1482ea2c 100644
--- a/test/source_map_stack_trace_test.dart
+++ b/test/source_map_stack_trace_test.dart
@@ -153,6 +153,11 @@ foo.dart.js 10:11 baz
expect(_prettify(r"foo$1234"), equals("foo"));
});
+ test("named arguments", () {
+ expect(_prettify(r"foo$1$bar"), equals("foo"));
+ expect(_prettify(r"foo$123$bar$bang$qux"), equals("foo"));
+ });
+
test("closures", () {
expect(_prettify("foo_closure.call"), equals("foo.<fn>"));
});
« lib/source_map_stack_trace.dart ('K') | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698