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

Unified Diff: tests/html/custom_element_bindings_test.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 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
« no previous file with comments | « tests/corelib/set_retainAll_test.dart ('k') | tests/lib/async/stream_first_where_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom_element_bindings_test.dart
diff --git a/tests/html/custom_element_bindings_test.dart b/tests/html/custom_element_bindings_test.dart
index 3b9d6a9262fea8fa23966766e76e694b94f885c1..6548a7f908ac9eaf395dcfddf425cc3f98e2d71b 100644
--- a/tests/html/custom_element_bindings_test.dart
+++ b/tests/html/custom_element_bindings_test.dart
@@ -261,9 +261,9 @@ class AttributeMapWrapper<K, V> implements Map<K, V> {
AttributeMapWrapper(this._map);
- bool containsValue(V value) => _map.containsValue(value);
- bool containsKey(K key) => _map.containsKey(key);
- V operator [](K key) => _map[key];
+ bool containsValue(Object value) => _map.containsValue(value);
+ bool containsKey(Object key) => _map.containsKey(key);
+ V operator [](Object key) => _map[key];
void operator []=(K key, V value) {
log.add(['[]=', key, value]);
@@ -272,7 +272,7 @@ class AttributeMapWrapper<K, V> implements Map<K, V> {
V putIfAbsent(K key, V ifAbsent()) => _map.putIfAbsent(key, ifAbsent);
- V remove(K key) {
+ V remove(Object key) {
log.add(['remove', key]);
_map.remove(key);
}
« no previous file with comments | « tests/corelib/set_retainAll_test.dart ('k') | tests/lib/async/stream_first_where_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698