@@ -555,7 +555,7 @@ suite('ARIA', function () {
555555 block . getFocusableElement ( ) ,
556556 Blockly . utils . aria . State . LABEL ,
557557 ) ;
558- assert . isTrue ( label . endsWith ( 'has input' ) ) ;
558+ assert . isTrue ( label . replace ( / , $ / , '' ) . endsWith ( 'has input' ) ) ;
559559 } ) ;
560560
561561 test ( 'Blocks with multiple inputs are properly labeled' , function ( ) {
@@ -564,7 +564,7 @@ suite('ARIA', function () {
564564 block . getFocusableElement ( ) ,
565565 Blockly . utils . aria . State . LABEL ,
566566 ) ;
567- assert . isTrue ( label . endsWith ( 'has inputs' ) ) ;
567+ assert . isTrue ( label . replace ( / , $ / , '' ) . endsWith ( 'has inputs' ) ) ;
568568 } ) ;
569569 test ( 'Blocks with multiple statement inputs are properly labeled' , function ( ) {
570570 const json = {
@@ -592,7 +592,7 @@ suite('ARIA', function () {
592592 ) ;
593593 assert . isFalse ( label . includes ( 'else if, do' ) ) ;
594594 assert . isFalse ( label . includes ( 'else,' ) ) ;
595- assert . isTrue ( label . endsWith ( 'has 4 branches' ) ) ;
595+ assert . isTrue ( label . replace ( / , $ / , '' ) . endsWith ( 'has 4 branches' ) ) ;
596596 } ) ;
597597 } ) ;
598598
0 commit comments