function textInfo(tag) { returnnew Intl.Locale(tag).getTextInfo();
}
// Unknown language, script, and region should all give the same results.
assertDeepEq(textInfo("und"), {direction: "ltr"});
assertDeepEq(textInfo("und-ZZ"), {direction: "ltr"});
assertDeepEq(textInfo("und-Zzzz"), {direction: undefined});
assertDeepEq(textInfo("und-Zzzz-ZZ"), {direction: undefined});
// Test some locales.
assertDeepEq(textInfo("en"), {direction: "ltr"});
assertDeepEq(textInfo("de"), {direction: "ltr"});
assertDeepEq(textInfo("ar"), {direction: "rtl"});
if (typeof reportCompare === "function")
reportCompare(0, 0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.