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

Unified Diff: dart/tests/corelib/apply_test.dart

Issue 14107006: Update Function.apply to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years, 8 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 | « dart/tests/corelib/apply2_test.dart ('k') | dart/tests/corelib/symbol_map_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/corelib/apply_test.dart
diff --git a/dart/tests/corelib/apply_test.dart b/dart/tests/corelib/apply_test.dart
index 71e87b9d76c44214cb5be36a722957a0909cb75f..d872227ce50ebe8e2da4e82968d0be09045f718f 100644
--- a/dart/tests/corelib/apply_test.dart
+++ b/dart/tests/corelib/apply_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import "symbol_map_helper.dart";
// Testing Function.apply calls correctly.
// This test is not testing error handling, only that correct parameters
@@ -38,15 +39,17 @@ confuse() {
main() {
testMap(res, func, map) {
+ map = symbolMapToStringMap(map);
Expect.equals(res, Function.apply(func, null, map));
Expect.equals(res, Function.apply(func, [], map));
}
testList(res, func, list) {
Expect.equals(res, Function.apply(func, list));
Expect.equals(res, Function.apply(func, list, null));
- Expect.equals(res, Function.apply(func, list, {}));
+ Expect.equals(res, Function.apply(func, list, new Map<Symbol, dynamic>()));
}
test(res, func, list, map) {
+ map = symbolMapToStringMap(map);
Expect.equals(res, Function.apply(func, list, map));
}
testList(42, test0, null);
« no previous file with comments | « dart/tests/corelib/apply2_test.dart ('k') | dart/tests/corelib/symbol_map_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698