mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Make sure div is always removed after tests. (#705)
This commit is contained in:
committed by
Jeremy Elbourn
parent
497a3c147f
commit
c400fa2fa9
@@ -46,6 +46,7 @@ describe('ViewportRuler', () => {
|
||||
// successfully constrain its size. As such, skip assertions in environments where the
|
||||
// window size has changed since the start of the test.
|
||||
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
|
||||
document.body.removeChild(veryLargeElement);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -78,6 +79,7 @@ describe('ViewportRuler', () => {
|
||||
// successfully constrain its size. As such, skip assertions in environments where the
|
||||
// window size has changed since the start of the test.
|
||||
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
|
||||
document.body.removeChild(veryLargeElement);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user