diff --git a/tests/core/creators/aria.js b/tests/core/creators/aria.js index faf3c8c83af..328cceb285a 100644 --- a/tests/core/creators/aria.js +++ b/tests/core/creators/aria.js @@ -61,15 +61,18 @@ var editor = bot.editor, container = editor.container, frame = container.findOne( 'iframe' ), + frameDocument = frame.getFrameDocument(), expectedApplicationLabel = createApplicationLabel( editor ), actualApplicationLabel = container.findOne( '#cke_wysiwygarea_arialbl' ).getHtml(), expectedEditorLabel = createEditorLabel( editor ), actualEditorLabel = frame.getAttribute( 'title' ), - actualBodyLabel = frame.getFrameDocument().findOne( 'body' ).getAttribute( 'aria-label' ); + actualBodyLabel = frameDocument.findOne( 'body' ).getAttribute( 'aria-label' ), + actualTitleLabel = frameDocument.findOne( 'title' ).getHtml(); assert.areSame( expectedApplicationLabel, actualApplicationLabel, 'Application label is incorrect' ); assert.areSame( expectedEditorLabel, actualEditorLabel, 'Editor label is incorrect' ); assert.areSame( expectedEditorLabel, actualBodyLabel, 'Editor\'s body label is incorrect' ); + assert.areSame( expectedEditorLabel, actualTitleLabel, 'Editor\'s title label is incorrect' ); } ); }, @@ -189,13 +192,16 @@ var editor = bot.editor, container = editor.container, frame = container.findOne( 'iframe' ), + frameDocument = frame.getFrameDocument(), actualApplicationLabel = container.getAttribute( 'aria-labelledby' ), actualEditorLabel = frame.getAttribute( 'title' ), - actualBodyLabel = frame.getFrameDocument().findOne( 'body' ).getAttribute( 'aria-label' ); + actualBodyLabel = frameDocument.findOne( 'body' ).getAttribute( 'aria-label' ), + actualTitleLabel = frameDocument.findOne( 'title' ).getHtml(); assert.isNull( actualApplicationLabel, 'Application label is incorrect' ); assert.isNull( actualEditorLabel, 'Editor label is incorrect' ); assert.isNull( actualBodyLabel, 'Editor\'s body label is incorrect' ); + assert.areSame( ' ', actualTitleLabel, 'Editor\'s title label is incorrect' ); } ); } } ); diff --git a/tests/core/creators/manual/themeduidisablededitorlabels.md b/tests/core/creators/manual/themeduidisablededitorlabels.md index 2c838202a1e..866dec5a53d 100644 --- a/tests/core/creators/manual/themeduidisablededitorlabels.md +++ b/tests/core/creators/manual/themeduidisablededitorlabels.md @@ -13,8 +13,8 @@ Sample announcements for the `iframe`-based editor: * VoiceOver+Chrome: "Frame. edit text. <content and selection info>" -* NVDA+Firefox: "Rich Text Editor, wysiwygarea, null document editable" -* JAWS+Firefox: "Rich Text Editor, wysiwygarea, frame, null edit <content> type and text" +* NVDA+Firefox: "Rich Text Editor, wysiwygarea, document editable" +* JAWS+Firefox: "Rich Text Editor, wysiwygarea, frame, edit <content> type and text" Sample announcements for the `div`-based editor: