build: autocomplete test failure in iOS Safari (#7906)

This commit is contained in:
Kristiyan Kostadinov
2017-10-20 23:03:36 +02:00
committed by tinayuangao
parent fe08c2b74b
commit 5c6e3df64a
+4 -4
View File
@@ -1229,8 +1229,8 @@ describe('MatAutocomplete', () => {
it('should fall back to above position if panel cannot fit below', async(() => {
// Push the autocomplete trigger down so it won't have room to open "below"
inputReference.style.top = '600px';
inputReference.style.position = 'relative';
inputReference.style.bottom = '0';
inputReference.style.position = 'fixed';
fixture.componentInstance.trigger.openPanel();
fixture.detectChanges();
@@ -1247,8 +1247,8 @@ describe('MatAutocomplete', () => {
it('should align panel properly when filtering in "above" position', async(() => {
// Push the autocomplete trigger down so it won't have room to open "below"
inputReference.style.top = '600px';
inputReference.style.position = 'relative';
inputReference.style.bottom = '0';
inputReference.style.position = 'fixed';
fixture.componentInstance.trigger.openPanel();
fixture.detectChanges();