()
| 70 | }); |
| 71 | |
| 72 | function simpleSuccess() { |
| 73 | handleClick(event); |
| 74 | expect(open).to.be.calledOnce; |
| 75 | expect(open.lastCall.args).to.jsonEqual([ |
| 76 | 'https://cdn.ampproject.org/c/www.example.com/amp.html#click=' + |
| 77 | 'https%3A%2F%2Ftest.com%3Famp%3D1%26adurl%3Dhttps%253A%252F%252F' + |
| 78 | 'cdn.ampproject.org%252Fc%252Fwww.example.com%252Famp.html', |
| 79 | '_top', |
| 80 | undefined, |
| 81 | ]); |
| 82 | expect(event.preventDefault).to.be.calledOnce; |
| 83 | } |
| 84 | |
| 85 | function a2aSuccess(ampParent) { |
| 86 | handleClick(event); |
no test coverage detected