Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo the overflow toggling system #1012

Merged
merged 1 commit into from
Nov 30, 2015
Merged

Conversation

dvoytenko
Copy link
Contributor

The goals:

  1. Extend this system to any other element that needs it
  2. Enable two-way toggling. Current fallback system only allows to turn it "on", but we will also need to be able to turn it "off"

Partial for #814, #812, #367

it('should noop when overflow is missing', () => {
element.removeChild(overflowElement);
element.overflowCallback(true, 111);
element.overflowCallback(false, 111);
Copy link
Member

Choose a reason for hiding this comment

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

could you point me to the assertion for this it block? couldnt find it in the beforeEach

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Change to expect.to.not.throw

@erwinmombay
Copy link
Member

LGTM, just one question.

dvoytenko added a commit that referenced this pull request Nov 30, 2015
Redo the overflow toggling system
@dvoytenko dvoytenko merged commit f015966 into ampproject:master Nov 30, 2015
@dvoytenko dvoytenko deleted the resize3 branch November 30, 2015 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants