(name)
| 38 | }); |
| 39 | |
| 40 | function insertElement(name) { |
| 41 | const testElement = createElementWithAttributes(doc, name, { |
| 42 | width: '300', |
| 43 | height: '250', |
| 44 | type: '_ping_', |
| 45 | 'data-aax_size': '300*250', |
| 46 | 'data-aax_pubname': 'abc123', |
| 47 | 'data-aax_src': '302', |
| 48 | }); |
| 49 | doc.body.appendChild(testElement); |
| 50 | } |
| 51 | |
| 52 | it('should register a new class immediately if no need to wait', () => { |
| 53 | upgradeOrRegisterElement(win, 'amp-element1', ConcreteElement); |
no test coverage detected