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

Unified Diff: tests/html/template_element_test.dart

Issue 14812016: expose MDV addBindings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/TemplateBindings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/template_element_test.dart
diff --git a/tests/html/template_element_test.dart b/tests/html/template_element_test.dart
index 3a5854c9f29c582bccb32031c53ec0e6a09df5fd..d71f8545fef9bb264ac700a196f4b27745170635 100644
--- a/tests/html/template_element_test.dart
+++ b/tests/html/template_element_test.dart
@@ -1320,6 +1320,24 @@ templateElementTests() {
}
});
+ test('BindShadowDOM bindModel', () {
+ if (ShadowRoot.supported) {
+ var root = createShadowTestHtml('Hi {{ name }}');
+ var model = toSymbolMap({'name': 'Leela'});
+ TemplateElement.bindModel(root, model);
+ deliverChangeRecords();
+ expect(root.text, 'Hi Leela');
+ }
+ });
+
+ test('bindModel to polyfilled shadow root', () {
+ var root = createTestHtml('Hi {{ name }}');
+ var model = toSymbolMap({'name': 'Leela'});
+ TemplateElement.bindModel(root, model);
+ deliverChangeRecords();
+ expect(root.text, 'Hi Leela');
+ });
+
// https://github.com/toolkitchen/mdv/issues/8
test('UnbindingInNestedBind', () {
var div = createTestHtml(
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/TemplateBindings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698