blob: 86f7ccf11da8c51fadbffd1a4ecc2966da094e5b [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script>
'use strict';
(function () {
test(function () {
assert_exists(window, 'internals');
}, 'This test requires "internals.canHyphenate"');
['en-us'].forEach(function (locale) {
test(function () {
assert_true(internals.canHyphenate(locale));
}, `"${locale}" can hyphenate`);
});
['ja-jp'].forEach(function (locale) {
test(function () {
assert_false(internals.canHyphenate(locale));
}, `"${locale}" cannot hyphenate`);
});
})();
</script>