AX: [ATK] Convert the get_text atktest.c unit tests to layout tests
[WebKit-https.git] / LayoutTests / platform / gtk / accessibility / text-for-range-extraneous-whitespace.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <p>This
8                           paragraph
9                                                       is
10                                                                                                                                                                                                                                                                                                                                                                             borked!</p>
11 <p id="description"></p>
12 <div id="console"></div>
13 <script>
14     description("This tests the ability to get element text for a specified range.");
15     if (window.accessibilityController) {
16         document.getElementById("body").focus();
17         var webArea = accessibilityController.focusedElement;
18         var paragraph = webArea.childAtIndex(0);
19         shouldBe("paragraph.stringForRange(0, 25)", "'This paragraph is borked!'");
20     }
21 </script>
22 <script src="../../../resources/js-test-post.js"></script>
23 </body>
24 </html>