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