| 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 b592cb59cc73b5b392a8bf3de0197aa39e5c27c7..d4cd50101d983eb7bb4066ce1ba66ab535013705 100644
|
| --- a/pkg/mdv/test/template_element_test.dart
|
| +++ b/pkg/mdv/test/template_element_test.dart
|
| @@ -1416,6 +1416,25 @@ templateElementTests() {
|
| expect(div.nodes[3].text, 'baz');
|
| });
|
|
|
| + observeTest('Template - Same Contents, Different Array has no effect', () {
|
| + if (!MutationObserver.supported) return;
|
| +
|
| + var div = createTestHtml('<template repeat>{{ foo }}</template>');
|
| +
|
| + var m = toSymbols([{ 'foo': 'bar' }, { 'foo': 'bat'}]);
|
| + recursivelySetTemplateModel(div, m);
|
| + performMicrotaskCheckpoint();
|
| +
|
| + var observer = new MutationObserver((records, _) {});
|
| + observer.observe(div, childList: true);
|
| +
|
| + var template = div.firstChild;
|
| + template.bind('repeat', toObservable(m.toList()), '');
|
| + performMicrotaskCheckpoint();
|
| + var records = observer.takeRecords();
|
| + expect(records.length, 0);
|
| + });
|
| +
|
| observeTest('RecursiveRef', () {
|
| var div = createTestHtml(
|
| '<template bind>'
|
|
|