Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

tests/template_element.js NestedRepeatDeletionOfMultipleSubTemplates tests anything? #134

Closed
kevmoo opened this issue Aug 7, 2013 · 1 comment

Comments

@kevmoo
Copy link

kevmoo commented Aug 7, 2013

repaet is spelled wrong. No asserts.

  test('NestedRepeatDeletionOfMultipleSubTemplates', function() {
    var div = createTestHtml(
        '<ul>' +
          '<template repeat="{{}}" id=t1>' +
            '<li>{{name}}' +
              '<ul>' +
                '<template ref=t1 repaet="{{items}}"></template>' +
              '</ul>' +
            '</li>' +
          '</template>' +
        '</ul>');

    var m = [
      {
        name: 'Item 1',
        items: [
          {
            name: 'Item 1.1'
          }
        ]
      }
    ];

    recursivelySetTemplateModel(div, m);

    Platform.performMicrotaskCheckpoint();
    m.splice(0, 1);
    Platform.performMicrotaskCheckpoint();
  });
@rafaelw
Copy link
Contributor

rafaelw commented Sep 9, 2013

If memory serves, this was testing a "crash" (probably null dereference). Fixed the "repaet" and added asserts. Thanks!

88bdc50

@rafaelw rafaelw closed this as completed Sep 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants