@@ -1319,23 +1319,15 @@ fdescribe('MdSelect', () => {
13191319 describe ( 'x-axis positioning' , ( ) => {
13201320
13211321 beforeEach ( ( ) => {
1322- < < < << << HEAD
13231322 select . style . position = 'fixed' ;
13241323 select . style . left = '30px' ;
13251324 } ) ;
13261325
13271326 it ( 'should align the trigger and the selected option on the x-axis in ltr' , fakeAsync ( ( ) => {
1328- = === ===
1329- select . style . marginLeft = select . style . marginRight = '50px' ;
1330- } ) ;
1331-
1332- it ( 'should align the trigger and the selected option on the x-axis in ltr' , async ( ( ) => {
1333- > >>> >>> chore: try to fix edge tests
13341327 trigger . click ( ) ;
13351328 tick ( 400 ) ;
13361329 fixture . detectChanges ( ) ;
13371330
1338- < < < << << HEAD
13391331 const triggerLeft = trigger . getBoundingClientRect ( ) . left ;
13401332 const firstOptionLeft = document . querySelector ( '.cdk-overlay-pane md-option' )
13411333 . getBoundingClientRect ( ) . left ;
@@ -1347,30 +1339,13 @@ fdescribe('MdSelect', () => {
13471339 } ) ) ;
13481340
13491341 it ( 'should align the trigger and the selected option on the x-axis in rtl' , fakeAsync ( ( ) => {
1350- = === ===
1351- fixture . whenStable ( ) . then ( ( ) => {
1352- const triggerLeft = trigger . getBoundingClientRect ( ) . left ;
1353- const firstOptionLeft =
1354- document . querySelector ( '.cdk-overlay-pane md-option' ) . getBoundingClientRect ( ) . left ;
1355-
1356- // Each option is 32px wider than the trigger, so it must be adjusted 16px
1357- // to ensure the text overlaps correctly.
1358- expect ( firstOptionLeft . toFixed ( 2 ) )
1359- . toEqual ( ( triggerLeft - 16 ) . toFixed ( 2 ) ,
1360- `Expected trigger to align with the selected option on the x-axis in LTR.` ) ;
1361- } ) ;
1362- } ) ) ;
1363-
1364- it ( 'should align the trigger and the selected option on the x-axis in rtl' , async ( ( ) => {
1365- > >>> >>> chore: try to fix edge tests
13661342 dir . value = 'rtl' ;
13671343 fixture . detectChanges ( ) ;
13681344
13691345 trigger . click ( ) ;
13701346 tick ( 400 ) ;
13711347 fixture . detectChanges ( ) ;
13721348
1373- < < < << << HEAD
13741349 const triggerRight = trigger . getBoundingClientRect ( ) . right ;
13751350 const firstOptionRight =
13761351 document . querySelector ( '.cdk-overlay-pane md-option' ) . getBoundingClientRect ( ) . right ;
@@ -1493,21 +1468,6 @@ fdescribe('MdSelect', () => {
14931468 expect ( Math . floor ( selectedOptionLeft ) ) . toEqual ( Math . floor ( triggerLeft - 16 ) ) ;
14941469 } ) ) ;
14951470
1496- = === ===
1497- fixture . whenStable ( ) . then ( ( ) => {
1498- const triggerRight = trigger . getBoundingClientRect ( ) . right ;
1499- const firstOptionRight =
1500- document . querySelector ( '.cdk-overlay-pane md-option' ) . getBoundingClientRect ( ) . right ;
1501-
1502- // Each option is 32px wider than the trigger, so it must be adjusted 16px
1503- // to ensure the text overlaps correctly.
1504- expect ( firstOptionRight . toFixed ( 2 ) )
1505- . toEqual ( ( triggerRight + 16 ) . toFixed ( 2 ) ,
1506- `Expected trigger to align with the selected option on the x-axis in RTL.` ) ;
1507- } ) ;
1508- } ) ) ;
1509-
1510- >>> > >>> chore : try to fix edge tests
15111471 } ) ;
15121472
15131473 describe ( 'with header' , ( ) => {
0 commit comments