-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Cleanup iframes when running tests on chrome. #3313
Conversation
d2277e9
to
dac0cd1
Compare
dac0cd1
to
fbeeb94
Compare
@@ -76,7 +77,12 @@ sinon.sandbox.create = function(config) { | |||
// Global cleanup of tags added during tests. Cool to add more | |||
// to selector. | |||
afterEach(() => { | |||
const cleanup = document.querySelectorAll('link,meta'); | |||
const cleanupTagNames = ['link', 'meta']; | |||
if (platform.isChrome()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!platform.isSafari()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not pushed yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was, Github sometimes doesn't seem to update the diff view for some reason. Now updated.
LGTM |
Removes test iframes to address some of the issues with memory leaks #3138