blob: 007e3f6448e44918c3ff7998870966a546e1626b [file] [log] [blame]
This tests that -webkit-alt applies to text and image content in CSS styles, and that it makes it to accessibility.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test1 - webkit-alt on image content with attr() function
AXRole: AXImage
AXDescription: ALTERNATIVE CONTENT TEST1
AXTitle:
AXValue:
Test2 - webkit-alt on image content that is a string
AXRole: AXImage
AXDescription: ALTERNATIVE CONTENT TEST2
AXTitle:
AXValue:
Test3 - webkit-alt on image content that is an empty string - representing that it should be ignored.
AXRole:
AXDescription:
AXTitle:
AXValue:
Test4 - webkit-alt on text content
AXRole: AXStaticText
AXDescription:
AXTitle:
AXValue: ALTERNATIVE CONTENT TEST4
Test5 - webkit-alt on text content that is an empty string - representing that is should be ignored.
AXRole: AXStaticText
AXDescription:
AXTitle:
AXValue: test5
Test6 - webkit-alt on text content that uses the attr() function.
AXRole: AXStaticText
AXDescription:
AXTitle:
AXValue: ALTERNATIVE CONTENT TEST6
WebKitAlt accessed through Javascript: "ALTERNATIVE CONTENT TEST2"
Test7 - webkit-alt does not apply to DOM nodes.
AXRole: AXImage
AXDescription: This is the right text
AXTitle:
AXValue:
PASS successfullyParsed is true
TEST COMPLETE