| Index: third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..86f7ccf11da8c51fadbffd1a4ecc2966da094e5b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale.html
|
| @@ -0,0 +1,23 @@
|
| +<!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>
|
|
|