|
638 | 638 | test('handle notifcation event and set property with observer when connected', function() {
|
639 | 639 | var el = document.createElement('x-handle-notify-event');
|
640 | 640 | document.body.appendChild(el);
|
641 |
| - assert.ok(el.shadowRoot.querySelector('#before'), 'element not found before default notifying elmeent'); |
642 |
| - assert.ok(el.shadowRoot.querySelector('#later'), 'element not found after default notifying elmeent'); |
| 641 | + assert.ok(el.shadowRoot.querySelector('#before'), 'element not found before default notifying element'); |
| 642 | + assert.ok(el.shadowRoot.querySelector('#later'), 'element not found after default notifying element'); |
643 | 643 | assert.isTrue(el.readySpy.calledOnce, 'ready called more than once');
|
644 | 644 | assert.isTrue(el.handleNotify.calledOnce, 'listener called more than once');
|
645 | 645 | assert.isTrue(el.propChanged.calledOnce, 'observer called more than once');
|
|
652 | 652 | test('handle notifcation event and set property with observer when *not* connected and _enableProperties called', function() {
|
653 | 653 | var el = document.createElement('x-handle-notify-event');
|
654 | 654 | el._enableProperties();
|
655 |
| - assert.ok(el.shadowRoot.querySelector('#before'), 'element not found before default notifying elmeent'); |
656 |
| - assert.ok(el.shadowRoot.querySelector('#later'), 'element not found after default notifying elmeent'); |
| 655 | + assert.ok(el.shadowRoot.querySelector('#before'), 'element not found before default notifying element'); |
| 656 | + assert.ok(el.shadowRoot.querySelector('#later'), 'element not found after default notifying element'); |
657 | 657 | assert.isTrue(el.readySpy.calledOnce, 'ready called more than once');
|
658 | 658 | assert.isTrue(el.handleNotify.calledOnce, 'listener called more than once');
|
659 | 659 | assert.isTrue(el.propChanged.calledOnce, 'observer called more than once');
|
|
0 commit comments