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

Unified Diff: pkg/polymer/test/auto_binding_test.dart

Issue 420673002: Roll polymer packages to version 0.3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/polymer/pubspec.yaml ('k') | pkg/polymer/test/bind_properties_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/auto_binding_test.dart
diff --git a/pkg/polymer/test/auto_binding_test.dart b/pkg/polymer/test/auto_binding_test.dart
index b563814516a79a91a594554cb24f79245e615da1..1feea1691a1b26d06c61eb15f59a2931cdc1efc4 100644
--- a/pkg/polymer/test/auto_binding_test.dart
+++ b/pkg/polymer/test/auto_binding_test.dart
@@ -39,9 +39,22 @@ main() => initPolymer().run(() {
expect(ce.detail, ['handled'], reason: 'element event handler fired');
}
- if (events == 2) completer.complete();
+ if (events == 3) completer.complete();
+ });
+
+ /// test dynamic creation
+ new Future(() {
+ var d = new DivElement();
+ d.setInnerHtml('<template is="auto-binding">Dynamical'
+ ' <input value="{{value}}"><div>{{value}}</div></template>',
+ treeSanitizer: new _NullSanitizer());
+ document.body.append(d);
});
return completer.future;
});
});
+
+class _NullSanitizer implements NodeTreeSanitizer {
+ sanitizeTree(Node node) {}
+}
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/polymer/test/bind_properties_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698