Skip to content

Commit

Permalink
amp-sticky-ad: Fix unit test (#26855)
Browse files Browse the repository at this point in the history
Resolve the following unit test failure:
  should not build when child is not ad
  Error: Uncaught Error: The element did not specify a layout
    attribute...
  • Loading branch information
mdmower committed Feb 21, 2020
1 parent caf985d commit 7627a16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-sticky-ad/1.0/test/test-amp-sticky-ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ describes.realWin(
ampStickyAd = win.document.createElement('amp-sticky-ad');
ampStickyAd.setAttribute('layout', 'nodisplay');
ampImg = win.document.createElement('amp-img');
ampImg.setAttribute('layout', 'nodisplay');
ampAd1 = createElementWithAttributes(win.document, 'amp-ad', {
'type': '_ping_',
'height': 50,
Expand Down

0 comments on commit 7627a16

Please sign in to comment.