browser_language.js (1664B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 addAccessibleTask( 8 "e10s/doc_language.html", 9 async function (browser, docAcc) { 10 is(docAcc.language, "en", "Document language correct"); 11 const inheritEn = findAccessibleChildByID(docAcc, "inheritEn"); 12 is(inheritEn.language, "en", "inheritEn language correct"); 13 is(inheritEn.firstChild.language, "en", "inheritEn leaf language correct"); 14 const imgInheritEn = findAccessibleChildByID(docAcc, "imgInheritEn"); 15 is(imgInheritEn.language, "en", "imgInheritEn language correct"); 16 const de = findAccessibleChildByID(docAcc, "de"); 17 is(de.language, "de", "de language correct"); 18 const inheritDe = findAccessibleChildByID(docAcc, "inheritDe"); 19 is(inheritDe.language, "de", "inheritDe language correct"); 20 is(inheritDe.firstChild.language, "de", "inheritDe leaf language correct"); 21 is(inheritDe.getChildAt(1).language, "es", "es leaf language correct"); 22 const imgInheritDe = findAccessibleChildByID(docAcc, "imgInheritDe"); 23 is(imgInheritDe.language, "de", "imgInheritDe language correct"); 24 const fr = findAccessibleChildByID(docAcc, "fr"); 25 is(fr.language, "fr", "fr language correct"); 26 const imgFr = findAccessibleChildByID(docAcc, "imgFr"); 27 is(imgFr.language, "fr", "imgFr language correct"); 28 const radioFr = findAccessibleChildByID(docAcc, "radioFr"); 29 is(radioFr.language, "fr", "radioFr language correct"); 30 }, 31 { chrome: true, topLevel: true, remoteIframe: true } 32 );