2011-05-24 Jay Civelli <jcivelli@chromium.org>
[WebKit-https.git] / LayoutTests / accessibility / first-letter-text-transform-causes-crash.html
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 <style>
6        dt:first-letter{text-transform:uppercase;}
7 </style>
8 <script>
9     var successfullyParsed = false;
10
11     function buildAccessibilityTree(accessibilityObject) {
12         var count = accessibilityObject.childrenCount;
13         for (var i = 0; i < count; ++i)
14             buildAccessibilityTree(accessibilityObject.childAtIndex(i));
15     }
16 </script>
17 <script src="../fast/js/resources/js-test-pre.js"></script>
18 </head>
19 <body>
20
21 <dt>dt</dt>
22
23 <p id="description"></p>
24 <div id="console"></div>
25
26 <script>
27     description("First letter text transform causes assert and bad type cast. This can cause a crash.");
28
29     // Trigger a layout operation to create the two RenderTextFragment instances.
30     document.body.children[0].offsetWidth;
31
32     if (window.accessibilityController) {
33         // Build up full accessibility tree.
34         document.body.focus();
35         buildAccessibilityTree(accessibilityController.focusedElement);
36     }
37
38     successfullyParsed = true;
39 </script>
40
41 <script src="../fast/js/resources/js-test-post.js"></script>
42 </body>
43 </html>