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

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

Issue 19590007: [mdv] template.ref must recursive to find the original source template (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: revert file generated by dom.py Created 7 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/mdv/lib/src/template.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv/test/template_element_test.dart
diff --git a/pkg/mdv/test/template_element_test.dart b/pkg/mdv/test/template_element_test.dart
index 28055c1aec65e3d1c7611ab124ab693f1f484c64..30ea211304d175b6d5491ef987fb45fc72dd3670 100644
--- a/pkg/mdv/test/template_element_test.dart
+++ b/pkg/mdv/test/template_element_test.dart
@@ -1349,6 +1349,21 @@ templateElementTests() {
expect(div.nodes[3].text, 'Name: Leela');
});
+ observeTest('RecursiveRef', () {
+ var div = createTestHtml(
+ '<template bind>' +
justinfagnani 2013/07/19 22:11:09 no need for +s
Jennifer Messerly 2013/07/23 02:51:31 Done.
+ '<template id=src>{{ foo }}</template>' +
+ '<template bind ref=src></template>' +
+ '</template>');
+
+ var m = toSymbols({ 'foo': 'bar'});
justinfagnani 2013/07/19 22:11:09 extra space before 'foo'
Jennifer Messerly 2013/07/23 02:51:31 Done.
+ recursivelySetTemplateModel(div, m);
+ performMicrotaskCheckpoint();
+
+ expect(div.nodes.length, 4);
+ expect(div.nodes[3].text, 'bar');
+ });
+
observeTest('ChangeFromBindToRepeat', () {
var div = createTestHtml(
'<template bind="{{a}}">'
« no previous file with comments | « pkg/mdv/lib/src/template.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698