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