@@ -1431,6 +1431,15 @@ describe('MdSelect', () => {
1431
1431
// Scroll the select into view
1432
1432
setScrollTop ( 1700 ) ;
1433
1433
1434
+ // In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1435
+ // body causes karma's iframe for the test to stretch to fit that content once we attempt to
1436
+ // scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1437
+ // successfully constrain its size. As such, skip assertions in environments where the
1438
+ // window size has changed since the start of the test.
1439
+ if ( window . innerHeight > startingWindowHeight ) {
1440
+ return ;
1441
+ }
1442
+
1434
1443
trigger . click ( ) ;
1435
1444
fixture . detectChanges ( ) ;
1436
1445
@@ -1450,6 +1459,15 @@ describe('MdSelect', () => {
1450
1459
// Scroll the select into view
1451
1460
setScrollTop ( 1700 ) ;
1452
1461
1462
+ // In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1463
+ // body causes karma's iframe for the test to stretch to fit that content once we attempt to
1464
+ // scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1465
+ // successfully constrain its size. As such, skip assertions in environments where the
1466
+ // window size has changed since the start of the test.
1467
+ if ( window . innerHeight > startingWindowHeight ) {
1468
+ return ;
1469
+ }
1470
+
1453
1471
trigger . click ( ) ;
1454
1472
fixture . detectChanges ( ) ;
1455
1473
@@ -1522,6 +1540,15 @@ describe('MdSelect', () => {
1522
1540
// Scroll the select so that it has insufficient space to open above the trigger
1523
1541
setScrollTop ( 1950 ) ;
1524
1542
1543
+ // In the iOS simulator (BrowserStack & SauceLabs), adding the content to the
1544
+ // body causes karma's iframe for the test to stretch to fit that content once we attempt to
1545
+ // scroll the page. Setting width / height / maxWidth / maxHeight on the iframe does not
1546
+ // successfully constrain its size. As such, skip assertions in environments where the
1547
+ // window size has changed since the start of the test.
1548
+ if ( window . innerHeight > startingWindowHeight ) {
1549
+ return ;
1550
+ }
1551
+
1525
1552
trigger . click ( ) ;
1526
1553
fixture . detectChanges ( ) ;
1527
1554
0 commit comments