Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: LayoutTests/accessibility/removed-anonymous-block-child-causes-crash.html

Issue 3109006: Revert 55683 - Merge 65095 - Removing an element from an anonymous block caus... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/WebKit/472/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
5 <script>
6 var successfullyParsed = false;
7
8 function removeElement() {
9 document.getElementById('div').removeChild(document.getElementById('div' ).children[2]);
10 }
11
12 function queryIsEnabledOnDecendants(accessibilityObject) {
13 accessibilityObject.isEnabled
14
15 var count = accessibilityObject.childrenCount;
16 for (var i = 0; i < count; ++i)
17 queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i));
18 }
19 </script>
20 <script src="../fast/js/resources/js-test-pre.js"></script>
21 </head>
22 <body>
23
24 <div id="div">
25 <span>
26 <div>a</div>
27 </span>
28 <div style="float:left">a</div>
29 <span title="title">b</span>
30 </div>
31
32 <p id="description"></p>
33 <div id="console"></div>
34
35 <script>
36 description("In certain cases removing a decendent from an anonymous block e lement does not update the parent chain correctly. This can cause a crash.");
37
38 if (window.accessibilityController) {
39 // First build up full accessibility tree.
40 document.body.focus();
41 queryIsEnabledOnDecendants(accessibilityController.focusedElement);
42
43 removeElement()
44
45 // Now call isEnabled on each accessibility object.
46 document.body.focus();
47 queryIsEnabledOnDecendants(accessibilityController.focusedElement);
48 }
49
50 successfullyParsed = true;
51 </script>
52
53 <script src="../fast/js/resources/js-test-post.js"></script>
54 </body>
55 </html>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/accessibility/removed-anonymous-block-child-causes-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698