Skip to content

amp-sticky-ad: Fix unit test#26855

Merged
erwinmombay merged 1 commit intoampproject:masterfrom
mdmower:pr-sticky-ad
Feb 21, 2020
Merged

amp-sticky-ad: Fix unit test#26855
erwinmombay merged 1 commit intoampproject:masterfrom
mdmower:pr-sticky-ad

Conversation

@mdmower
Copy link
Copy Markdown
Contributor

@mdmower mdmower commented Feb 19, 2020

Resolve the following unit test failure:

DESCRIBE => amp-sticky-ad 1.0 version
  DESCRIBE =>  
    DESCRIBE => with unvalid child 1.0
      IT => should not build when child is not ad
        ✗ Error: Uncaught Error: The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details.​​​ (/home/travis/build/ampproject/amphtml/src/log.js:436:7 <- /tmp/e37c3a9eb37e0c201b3e74053a0d4391.browserify.js:75967)
            at Context.<anonymous> (home/travis/build/ampproject/amphtml/extensions/amp-sticky-ad/1.0/test/test-amp-sticky-ad.js:296:21)

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...
Copy link
Copy Markdown
Contributor

@zhouyx zhouyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix

@erwinmombay erwinmombay merged commit 7627a16 into ampproject:master Feb 21, 2020
robinvanopstal added a commit to jungvonmatt/amphtml that referenced this pull request Feb 24, 2020
* master: (41 commits)
  custom-element: Minor test improvements (ampproject#26923)
  amp-pixel: Minor test improvements (ampproject#26918)
  viewer: Minor test improvements (ampproject#26906)
  dom: Minor test improvements (ampproject#26913)
  amp-action: Support whitelist lookup in AmpDocShadow (ampproject#26684)
  ✨ Update amp-access-scroll (ampproject#26810)
  🚀 Remove doc css and base css from ESM build (ampproject#26889)
  📖 [amp-story-player] Initial docs (ampproject#26606)
  Amp consent restrict fullscreen prod flag (ampproject#26909)
  📖 Clarify SXG duration minimum (ampproject#26890)
  Improve test vendor requests macros (ampproject#26828)
  🚀 Move scroll left and top macros out of url-replacement-impl (ampproject#25594)
  Update consent string maximum size to 200 bytes (ampproject#26741)
  ✨[amp-story-player] Adds tap-to-next/previous story (ampproject#26865)
  update owners file with correct syntax (ampproject#26899)
  amp-sticky-ad: Fix unit test (ampproject#26855)
  Add performance metrics to README (ampproject#26891)
  🐛 Bug fix: check links test (ampproject#26739)
  ✨Idealmedia uniq ad (ampproject#25838)
  📦 Update dependency jsdom to v16.2.0 (ampproject#26591)
  ...
@mdmower mdmower deleted the pr-sticky-ad branch March 16, 2020 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants