[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / image-map-title-causes-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">\r
2 <html>\r
3 <head>\r
4 <script>\r
5 \r
6     function removeAreaElement() {\r
7         document.getElementById("test").innerHTML=1\r
8     }\r
9 \r
10     function queryTitleOnDecendants(accessibilityObject) {\r
11         accessibilityObject.title\r
12 \r
13         var count = accessibilityObject.childrenCount;\r
14         for (var i = 0; i < count; ++i)\r
15             queryTitleOnDecendants(accessibilityObject.childAtIndex(i));\r
16     }\r
17 </script>\r
18 <script src="../resources/js-test-pre.js"></script>\r
19 </head>\r
20 <body>\r
21 \r
22 <img usemap="#map">\r
23 <map name="map" id="test"><area href="javascript:document.getElementById('result').innerHTML='area clicked'" /></map>\r
24 \r
25 <p id="description"></p>\r
26 <div id="console"></div>\r
27 \r
28 <script>\r
29     description("Requesting the title of an AccessibilityImageMapLink can cause a crash when the map's area element has been removed.");\r
30 \r
31     if (window.accessibilityController) {\r
32         // First build up full accessibility tree.\r
33         document.body.focus();\r
34         queryTitleOnDecendants(accessibilityController.focusedElement);\r
35         \r
36         removeAreaElement()\r
37         \r
38         // Now call request the title for each accessibility object.\r
39         document.body.focus();\r
40         queryTitleOnDecendants(accessibilityController.focusedElement);\r
41     }\r
42 \r
43 </script>\r
44 \r
45 <script src="../resources/js-test-post.js"></script>\r
46 </body>\r
47 </html>\r