blob: 239959b9bff3b6f2d8f3bc62b33faedbe1a81aee [file] [log] [blame]
jdiggs@igalia.com14bfdfa82013-12-10 15:44:30 +00001<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
simon.fraser@apple.combff0cf82015-08-04 03:21:43 +00004<script src="../../resources/js-test-pre.js"></script>
jdiggs@igalia.com14bfdfa82013-12-10 15:44:30 +00005</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>
simon.fraser@apple.combff0cf82015-08-04 03:21:43 +000022<script src="../../resources/js-test-post.js"></script>
jdiggs@igalia.com14bfdfa82013-12-10 15:44:30 +000023</body>
24</html>