| This test ensures PDFs loaded in embed tags are exposed in the accessibility tree. |
| |
| PASS: pdfEmbedElement.domIdentifier === 'pdfEmbed' |
| PASS: pdfEmbedElement.role === 'AXRole: AXGroup' |
| PASS: pdfEmbedElement.subrole === 'AXSubrole: AXApplicationGroup' |
| PASS: pdfEmbedElement.childrenCount === 1 |
| PASS: pdfAxObject.stringAttributeValue('AXSubrole') === 'AXPDFPluginSubrole' |
| PASS: pdfAxObject.childrenCount === 1 |
| PASS: pdfAxObject.parentElement().domIdentifier === 'pdfEmbed' |
| PASS: pdfPageObject.role === 'AXRole: AXPage' |
| PASS: pdfTextNode.stringAttributeValue('AXRole') === 'AXStaticText' |
| PASS: pdfTextNode.stringValue.split(' ')[1] === 'Welcome' |
| PASS: Hit test role was an expected value |
| PASS: pdfTextNode.stringAttributeValue('AXRole') === 'AXStaticText' |
| PASS: pdfTextNode.stringValue.split(' ')[1] === 'Welcome' |
| PASS: searchResultElement.stringAttributeValue('AXSubrole') === 'AXPDFPluginSubrole' |
| |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |