browser_aboutprofiling-rtl.js (894B)
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 add_task(async function () { 8 await withAboutProfiling(async document => { 9 is(document.dir, "ltr", "About profiling has the expected direction ltr"); 10 is( 11 document.documentElement.getAttribute("lang"), 12 "en-US", 13 "About profiling has the expected lang" 14 ); 15 }); 16 }); 17 18 add_task(async function () { 19 await SpecialPowers.pushPrefEnv({ 20 set: [["intl.l10n.pseudo", "bidi"]], 21 }); 22 23 await withAboutProfiling(async document => { 24 is(document.dir, "rtl", "About profiling has the expected direction rtl"); 25 is( 26 document.documentElement.getAttribute("lang"), 27 "en-US", 28 "About profiling has the expected lang" 29 ); 30 }); 31 });