From 35befdecd18a4d00841114ecb2ed4d39bc603e2c Mon Sep 17 00:00:00 2001 From: Yuxi Chen Date: Wed, 1 Mar 2017 19:56:29 -0800 Subject: [PATCH] Fix amp-ad test --- extensions/amp-ad/0.1/test/test-amp-ad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/amp-ad/0.1/test/test-amp-ad.js b/extensions/amp-ad/0.1/test/test-amp-ad.js index d7c12bb31613..99ab24ee6ea2 100644 --- a/extensions/amp-ad/0.1/test/test-amp-ad.js +++ b/extensions/amp-ad/0.1/test/test-amp-ad.js @@ -140,7 +140,7 @@ describe('Ad loader', () => { const meta = doc.createElement('meta'); meta.setAttribute('name', 'amp-3p-iframe-src'); meta.setAttribute('content', 'https://example.com/remote.html'); - doc.head.append(meta); + doc.head.appendChild(meta); a4aRegistry['zort'] = () => true; ampAdElement.setAttribute('type', 'zort'); const upgraded = new AmpAd(ampAdElement).upgradeCallback();