Skip to content

Commit

Permalink
Set amp-ad unit test to use unreachable domain (#26670)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq authored and rcebulko committed Feb 7, 2020
1 parent f1e2635 commit bb478df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/amp-ad/0.1/test/test-amp-ad-3p-impl.js
Expand Up @@ -227,7 +227,7 @@ describes.realWin(
});

it('should use custom path', () => {
const remoteUrl = 'https://example.com/boot/remote.html';
const remoteUrl = 'https://testsrc/boot/remote.html';
const meta = win.document.createElement('meta');
meta.setAttribute('name', 'amp-3p-iframe-src');
meta.setAttribute('content', remoteUrl);
Expand All @@ -245,7 +245,7 @@ describes.realWin(
it('should use default path if custom disabled', () => {
const meta = win.document.createElement('meta');
meta.setAttribute('name', 'amp-3p-iframe-src');
meta.setAttribute('content', 'https://example.com/boot/remote.html');
meta.setAttribute('content', 'https://testsrc/boot/remote.html');
win.document.head.appendChild(meta);
ad3p.config.remoteHTMLDisabled = true;
ad3p.onLayoutMeasure();
Expand Down Expand Up @@ -346,7 +346,7 @@ describes.realWin(
});

it('should use remote html path for preload', () => {
const remoteUrl = 'https://example.com/boot/remote.html';
const remoteUrl = 'https://testsrc/boot/remote.html';
const meta = win.document.createElement('meta');
meta.setAttribute('name', 'amp-3p-iframe-src');
meta.setAttribute('content', remoteUrl);
Expand All @@ -365,7 +365,7 @@ describes.realWin(
it('should not use remote html path for preload if disabled', () => {
const meta = win.document.createElement('meta');
meta.setAttribute('name', 'amp-3p-iframe-src');
meta.setAttribute('content', 'https://example.com/boot/remote.html');
meta.setAttribute('content', 'https://testsrc/boot/remote.html');
win.document.head.appendChild(meta);
ad3p.config.remoteHTMLDisabled = true;
ad3p.buildCallback();
Expand Down

0 comments on commit bb478df

Please sign in to comment.