OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 'use strict'; |
| 6 (function () { |
| 7 test(function () { |
| 8 assert_exists(window, 'internals'); |
| 9 }, 'This test requires "internals.canHyphenate"'); |
| 10 |
| 11 ['en-us'].forEach(function (locale) { |
| 12 test(function () { |
| 13 assert_true(internals.canHyphenate(locale)); |
| 14 }, `"${locale}" can hyphenate`); |
| 15 }); |
| 16 |
| 17 ['ja-jp'].forEach(function (locale) { |
| 18 test(function () { |
| 19 assert_false(internals.canHyphenate(locale)); |
| 20 }, `"${locale}" cannot hyphenate`); |
| 21 }); |
| 22 })(); |
| 23 </script> |
OLD | NEW |