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

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: 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
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..30ab9694c0f3fd2ec309e3ad4422f2b01a3d93e1 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 = convertStringToSymbolMap(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 = convertStringToSymbolMap(map);
Expect.equals(res, Function.apply(func, list, map));
}
testList(42, test0, null);

Powered by Google App Engine
This is Rietveld 408576698