| 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 c1a49aa14f2e603840c8dc546c07ae2346279c47..82dc5d4e5b95d163a906b9d1fa346810414e0589 100644
|
| --- a/pkg/mdv/test/template_element_test.dart
|
| +++ b/pkg/mdv/test/template_element_test.dart
|
| @@ -1349,6 +1349,25 @@ templateElementTests() {
|
| expect(div.nodes[3].text, 'Name: Leela');
|
| });
|
|
|
| + observeTest('Template - Self is terminator', () {
|
| + var div = createTestHtml(
|
| + '<template repeat>{{ foo }}'
|
| + '<template bind></template>'
|
| + '</template>');
|
| +
|
| + var m = toSymbols([{ 'foo': 'bar' }]);
|
| + recursivelySetTemplateModel(div, m);
|
| + performMicrotaskCheckpoint();
|
| +
|
| + m.add(toSymbols({ 'foo': 'baz' }));
|
| + recursivelySetTemplateModel(div, m);
|
| + performMicrotaskCheckpoint();
|
| +
|
| + expect(div.nodes.length, 5);
|
| + expect(div.nodes[1].text, 'bar');
|
| + expect(div.nodes[3].text, 'baz');
|
| + });
|
| +
|
| observeTest('RecursiveRef', () {
|
| var div = createTestHtml(
|
| '<template bind>'
|
|
|