[Mac] Cocoa throws exception when the return type of NSAccessibilityLinkedUIElementsA...
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jul 2014 20:51:13 +0000 (20:51 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Jul 2014 20:51:13 +0000 (20:51 +0000)
commit299d73e7dbf3f4fb85d7a8fa126de4dcdc932b18
treef13812d48430f83774b53861adb02d3a57e03d74
parent3afdeccce8952ec8c79e9991a3f24483a7f3702c
[Mac] Cocoa throws exception when the return type of NSAccessibilityLinkedUIElementsAttribute is not an array
https://bugs.webkit.org/show_bug.cgi?id=135165

Reviewed by Simon Fraser.

Source/WebCore:
Return an empty array instead of nil.

Updated tests.

* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:
Updating tests.

* accessibility/parent-delete-expected.txt:
* accessibility/transformed-element-expected.txt:
* platform/mac/accessibility/aria-columnrowheaders-expected.txt:
* platform/mac/accessibility/bounds-for-range-expected.txt:
* platform/mac/accessibility/document-attributes-expected.txt:
* platform/mac/accessibility/document-links-expected.txt:
* platform/mac/accessibility/image-link-expected.txt:
* platform/mac/accessibility/image-map2-expected.txt:
* platform/mac/accessibility/internal-link-anchors-expected.txt:
* platform/mac/accessibility/internal-link-anchors2-expected.txt:
* platform/mac/accessibility/lists-expected.txt:
* platform/mac/accessibility/plugin-expected.txt:
* platform/mac/accessibility/table-attributes-expected.txt:
* platform/mac/accessibility/table-cell-spans-expected.txt:
* platform/mac/accessibility/table-cells-expected.txt:
* platform/mac/accessibility/table-detection-expected.txt:
* platform/mac/accessibility/table-one-cell-expected.txt:
* platform/mac/accessibility/table-sections-expected.txt:
* platform/mac/accessibility/table-with-rules-expected.txt:
* platform/mac-mountainlion/accessibility/lists-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@171360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/accessibility/parent-delete-expected.txt
LayoutTests/accessibility/transformed-element-expected.txt
LayoutTests/platform/mac-mountainlion/accessibility/lists-expected.txt
LayoutTests/platform/mac/accessibility/aria-columnrowheaders-expected.txt
LayoutTests/platform/mac/accessibility/bounds-for-range-expected.txt
LayoutTests/platform/mac/accessibility/document-attributes-expected.txt
LayoutTests/platform/mac/accessibility/document-links-expected.txt
LayoutTests/platform/mac/accessibility/image-link-expected.txt
LayoutTests/platform/mac/accessibility/image-map2-expected.txt
LayoutTests/platform/mac/accessibility/internal-link-anchors-expected.txt
LayoutTests/platform/mac/accessibility/internal-link-anchors2-expected.txt
LayoutTests/platform/mac/accessibility/lists-expected.txt
LayoutTests/platform/mac/accessibility/plugin-expected.txt
LayoutTests/platform/mac/accessibility/table-attributes-expected.txt
LayoutTests/platform/mac/accessibility/table-cell-spans-expected.txt
LayoutTests/platform/mac/accessibility/table-cells-expected.txt
LayoutTests/platform/mac/accessibility/table-detection-expected.txt
LayoutTests/platform/mac/accessibility/table-one-cell-expected.txt
LayoutTests/platform/mac/accessibility/table-sections-expected.txt
LayoutTests/platform/mac/accessibility/table-with-rules-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm