@@ -38,11 +38,6 @@ function setupTestWithMockFoundation(fixture: HTMLElement) {
38
38
return { anchorElem, tooltipElem, mockFoundation, component} ;
39
39
}
40
40
41
- function isIE ( ) {
42
- return navigator . userAgent . indexOf ( 'MSIE' ) !== - 1 ||
43
- navigator . userAgent . indexOf ( 'Trident' ) !== - 1 ;
44
- }
45
-
46
41
describe ( 'MDCTooltip' , ( ) => {
47
42
let fixture : HTMLElement ;
48
43
setUpMdcTestEnvironment ( ) ;
@@ -383,11 +378,6 @@ describe('MDCTooltip', () => {
383
378
384
379
it ( 'aria-expanded becomes false on anchor when anchor blurs and non-tooltip element is focused' ,
385
380
( ) => {
386
- // FocusEvent is not supported on IE11 so this test will not be run on
387
- // it.
388
- if ( isIE ( ) ) {
389
- return ;
390
- }
391
381
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
392
382
const anchorElem =
393
383
fixture . querySelector < HTMLElement > ( '[data-tooltip-id]' ) ! ;
@@ -404,11 +394,6 @@ describe('MDCTooltip', () => {
404
394
405
395
it ( 'aria-expanded remains true on anchor when anchor blurs and rich tooltip focuses' ,
406
396
( ) => {
407
- // FocusEvent is not supported on IE11 so this test will not be run on
408
- // it.
409
- if ( isIE ( ) ) {
410
- return ;
411
- }
412
397
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
413
398
const anchorElem =
414
399
fixture . querySelector < HTMLElement > ( '[data-tooltip-id]' ) ! ;
@@ -425,11 +410,6 @@ describe('MDCTooltip', () => {
425
410
426
411
it ( 'aria-expanded becomes false on anchor when rich tooltip focuses out and anchor does not receive focus' ,
427
412
( ) => {
428
- // FocusEvent is not supported on IE11 so this test will not be run on
429
- // it.
430
- if ( isIE ( ) ) {
431
- return ;
432
- }
433
413
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
434
414
const anchorElem =
435
415
fixture . querySelector < HTMLElement > ( '[data-tooltip-id]' ) ! ;
@@ -446,11 +426,6 @@ describe('MDCTooltip', () => {
446
426
447
427
it ( 'aria-expanded remains true on anchor when rich tooltip focuses out and anchor receives focus' ,
448
428
( ) => {
449
- // FocusEvent is not supported on IE11 so this test will not be run on
450
- // it.
451
- if ( isIE ( ) ) {
452
- return ;
453
- }
454
429
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
455
430
const anchorElem =
456
431
fixture . querySelector < HTMLElement > ( '[data-tooltip-id]' ) ! ;
@@ -467,11 +442,6 @@ describe('MDCTooltip', () => {
467
442
468
443
it ( 'aria-expanded remains true on anchor when rich tooltip focuses out and element within tooltip receives focus' ,
469
444
( ) => {
470
- // FocusEvent is not supported on IE11 so this test will not be run on
471
- // it.
472
- if ( isIE ( ) ) {
473
- return ;
474
- }
475
445
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
476
446
const tooltipContent =
477
447
fixture . querySelector < HTMLElement > ( '.mdc-tooltip__content' ) ! ;
@@ -636,11 +606,6 @@ describe('MDCTooltip', () => {
636
606
637
607
it ( 'aria-hidden becomes true on tooltip when anchor blurs and non-tooltip element is focused' ,
638
608
( ) => {
639
- // FocusEvent is not supported on IE11 so this test will not be run on
640
- // it.
641
- if ( isIE ( ) ) {
642
- return ;
643
- }
644
609
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
645
610
const anchorElem =
646
611
fixture . querySelector < HTMLElement > ( '[aria-describedby]' ) ! ;
@@ -657,11 +622,6 @@ describe('MDCTooltip', () => {
657
622
658
623
it ( 'aria-hidden remains false on tooltip when anchor blurs and rich tooltip focuses' ,
659
624
( ) => {
660
- // FocusEvent is not supported on IE11 so this test will not be run on
661
- // it.
662
- if ( isIE ( ) ) {
663
- return ;
664
- }
665
625
const tooltipElem = fixture . querySelector < HTMLElement > ( '#tt0' ) ! ;
666
626
const anchorElem =
667
627
fixture . querySelector < HTMLElement > ( '[aria-describedby]' ) ! ;
0 commit comments