@@ -1319,23 +1319,15 @@ fdescribe('MdSelect', () => {
1319
1319
describe ( 'x-axis positioning' , ( ) => {
1320
1320
1321
1321
beforeEach ( ( ) => {
1322
- < < < << << HEAD
1323
1322
select . style . position = 'fixed' ;
1324
1323
select . style . left = '30px' ;
1325
1324
} ) ;
1326
1325
1327
1326
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
1334
1327
trigger . click ( ) ;
1335
1328
tick ( 400 ) ;
1336
1329
fixture . detectChanges ( ) ;
1337
1330
1338
- < < < << << HEAD
1339
1331
const triggerLeft = trigger . getBoundingClientRect ( ) . left ;
1340
1332
const firstOptionLeft = document . querySelector ( '.cdk-overlay-pane md-option' )
1341
1333
. getBoundingClientRect ( ) . left ;
@@ -1347,30 +1339,13 @@ fdescribe('MdSelect', () => {
1347
1339
} ) ) ;
1348
1340
1349
1341
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
1366
1342
dir . value = 'rtl' ;
1367
1343
fixture . detectChanges ( ) ;
1368
1344
1369
1345
trigger . click ( ) ;
1370
1346
tick ( 400 ) ;
1371
1347
fixture . detectChanges ( ) ;
1372
1348
1373
- < < < << << HEAD
1374
1349
const triggerRight = trigger . getBoundingClientRect ( ) . right ;
1375
1350
const firstOptionRight =
1376
1351
document . querySelector ( '.cdk-overlay-pane md-option' ) . getBoundingClientRect ( ) . right ;
@@ -1493,21 +1468,6 @@ fdescribe('MdSelect', () => {
1493
1468
expect ( Math . floor ( selectedOptionLeft ) ) . toEqual ( Math . floor ( triggerLeft - 16 ) ) ;
1494
1469
} ) ) ;
1495
1470
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
1511
1471
} ) ;
1512
1472
1513
1473
describe ( 'with header' , ( ) => {
0 commit comments