Skip to content

Conversation

jelbourn
Copy link
Member

No description provided.

@jelbourn jelbourn requested a review from crisbeto June 27, 2017 19:43
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 27, 2017
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

overlayRef.attach(fixture.componentInstance.templatePortal);
fixture.detectChanges();

expect(document.body.querySelector('.cdk-overlay-container'))
Copy link
Member

Choose a reason for hiding this comment

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

Does this pass? I know that when I did the cleanup last time, there were still some divs left over between tests because the overlay container didn't have any cleanup logic.

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jun 27, 2017
// injectable in a unit test.
overlayContainer.ngOnDestroy();

expect(document.body.querySelector('.cdk-overlay-container'))
Copy link
Member

Choose a reason for hiding this comment

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

Can be just document.querySelector(...).

@jelbourn jelbourn force-pushed the overlay-container-destroy branch from 4422c0f to 1dccf5a Compare June 27, 2017 20:14
@jelbourn
Copy link
Member Author

@crisbeto passed everywhere except browserstack. I changed the test to ensure that all overlay containers are remove with a beforeAll. Also got rid of body.

@mmalerba mmalerba added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels Jul 7, 2017
@mmalerba
Copy link
Contributor

mmalerba commented Jul 7, 2017

needs rebase

@jelbourn jelbourn force-pushed the overlay-container-destroy branch from 1dccf5a to d1727da Compare August 22, 2017 17:16
@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker and removed pr: needs rebase labels Aug 22, 2017
@kara kara merged commit 154bb55 into angular:master Aug 22, 2017
@jelbourn jelbourn deleted the overlay-container-destroy branch April 2, 2018 22:30
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants