Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / removed-anonymous-block-child-causes-crash.html
blob02cc13998480f049b6ca724da27fe14f2c0149c8
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
6 function removeElement() {
7 document.getElementById('div').removeChild(document.getElementById('div').children[2]);
10 function queryIsEnabledOnDecendants(accessibilityObject) {
11 accessibilityObject.isEnabled
13 var count = accessibilityObject.childrenCount;
14 for (var i = 0; i < count; ++i)
15 queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i));
17 </script>
18 <script src="../resources/js-test.js"></script>
19 </head>
20 <body>
22 <div id="div">
23 <span>
24 <div>a</div>
25 </span>
26 <div style="float:left">a</div>
27 <span title="title">b</span>
28 </div>
30 <p id="description"></p>
31 <div id="console"></div>
33 <script>
34 description("In certain cases removing a decendent from an anonymous block element does not update the parent chain correctly. This can cause a crash.");
36 if (window.accessibilityController) {
37 // First build up full accessibility tree.
38 document.body.focus();
39 queryIsEnabledOnDecendants(accessibilityController.focusedElement);
41 removeElement()
43 // Now call isEnabled on each accessibility object.
44 document.body.focus();
45 queryIsEnabledOnDecendants(accessibilityController.focusedElement);
48 </script>
50 </body>
51 </html>