Skip to content

Commit 30c3bac

Browse files
committed
test(menu): give menu space to open in alt positions
1 parent ee55e78 commit 30c3bac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/menu/menu.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ describe('MdMenu', () => {
117117
trigger.style.position = 'relative';
118118
trigger.style.top = '600px';
119119

120+
// Push trigger to the right, so it has space to open "before"
121+
trigger.style.left = '100px';
122+
120123
fixture.componentInstance.trigger.openMenu();
121124
fixture.detectChanges();
122125
});
@@ -145,7 +148,7 @@ describe('MdMenu', () => {
145148
// Push trigger to the right side of viewport, so it doesn't have space to open
146149
// in its default "after" position on the right side.
147150
trigger.style.position = 'relative';
148-
trigger.style.left = '900px';
151+
trigger.style.left = '950px';
149152

150153
fixture.componentInstance.trigger.openMenu();
151154
fixture.detectChanges();
@@ -203,7 +206,7 @@ describe('MdMenu', () => {
203206
// push trigger to the bottom, right part of viewport, so it doesn't have space to open
204207
// in its default "after below" position.
205208
trigger.style.position = 'relative';
206-
trigger.style.left = '900px';
209+
trigger.style.left = '950px';
207210
trigger.style.top = '600px';
208211

209212
fixture.componentInstance.trigger.openMenu();

0 commit comments

Comments
 (0)