4 testRunner.dumpAsText();
7 <meta http-equiv="content-language" content="en-gb">
10 <!-- This tests the ability to get the content language for various elements using various techniques -->
14 <p lang="de">germannish</p>
15 <p lang="ja">elvish</p>
19 <div id="result"></div>
22 if (window.accessibilityController) {
23 var body = document.getElementById("body");
25 var webArea = accessibilityController.focusedElement;
26 var result = document.getElementById("result");
28 var text1 = webArea.childAtIndex(0).childAtIndex(0);
29 var text2 = webArea.childAtIndex(1).childAtIndex(0);
30 var text3 = webArea.childAtIndex(2).childAtIndex(0);
31 var text4 = webArea.childAtIndex(3).childAtIndex(0);
33 if ( webArea.language == "AXLanguage: en-gb" && text1.language == "AXLanguage: en-gb" &&
34 text2.language == "AXLanguage: de" && text3.language == "AXLanguage: ja" &&
35 text4.language == "AXLanguage: en-gb") {
36 result.innerText = "Passed";
39 result.innerText = "Failed. Could not find AXLanguages: " + webArea.language + " - " + text1.language;