Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale.html

Issue 2113933003: Add mojo interface to load hyphenation dictionaries on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « content/content_browser.gypi ('k') | third_party/WebKit/LayoutTests/fast/text/hyphens/can-hyphenate-locale-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698