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

Unified Diff: pkg/mdv/test/mdv_test_utils.dart

Issue 27618002: package:observe fix various api issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/mdv/test/element_bindings_test.dart ('k') | pkg/mdv/test/node_bindings_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv/test/mdv_test_utils.dart
diff --git a/pkg/mdv/test/mdv_test_utils.dart b/pkg/mdv/test/mdv_test_utils.dart
index 97893de19d2d38c4dd2dc9e4aea57f56656be185..7f7650694bb74bf260a5d6e2058110379e633662 100644
--- a/pkg/mdv/test/mdv_test_utils.dart
+++ b/pkg/mdv/test/mdv_test_utils.dart
@@ -17,15 +17,6 @@ final bool parserHasNativeTemplate = () {
div.firstChild.firstChild.tagName == 'TEMPLATE';
}();
-toSymbolMap(Map map) {
- var result = new ObservableMap.linked();
- map.forEach((key, value) {
- if (value is Map) value = toSymbolMap(value);
- result[new Symbol(key)] = value;
- });
- return result;
-}
-
recursivelySetTemplateModel(element, model, [delegate]) {
for (var node in element.queryAll('*')) {
if (node.isTemplate) {
@@ -39,7 +30,7 @@ dispatchEvent(type, target) {
target.dispatchEvent(new Event(type, cancelable: false));
}
-class FooBarModel extends ObservableBase {
+class FooBarModel extends Observable {
@observable var foo;
@observable var bar;
@@ -47,7 +38,7 @@ class FooBarModel extends ObservableBase {
}
@reflectable
-class FooBarNotifyModel extends ChangeNotifierBase implements FooBarModel {
+class FooBarNotifyModel extends ChangeNotifier implements FooBarModel {
var _foo;
var _bar;
« no previous file with comments | « pkg/mdv/test/element_bindings_test.dart ('k') | pkg/mdv/test/node_bindings_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698