From b32a9df7294f6b938f1ee477656284e7cf735be2 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Fri, 31 Aug 2018 08:31:55 +0200 Subject: [PATCH] Ensure the test runner decodes files as UTF-8 (#2246) * Ensure the test runner decodes files as UTF-8 Before this change, the `document.charset` of the HTML test files would be 'windows-1252' when accessed through the `file://` protocol, resulting in issues with library or test files containing non-ASCII symbols. This patch ensures tests still run correctly when files contain non-ASCII symbols. * Ensure ASCII-safety of source code --- javascript/i18n/phonenumbers/asyoutypeformatter_test.html | 1 + javascript/i18n/phonenumbers/demo-compiled.html | 1 + javascript/i18n/phonenumbers/demo.html | 1 + javascript/i18n/phonenumbers/phonenumberutil.js | 6 +++--- javascript/i18n/phonenumbers/phonenumberutil_test.html | 1 + javascript/i18n/phonenumbers/shortnumberinfo_test.html | 1 + 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/javascript/i18n/phonenumbers/asyoutypeformatter_test.html b/javascript/i18n/phonenumbers/asyoutypeformatter_test.html index 750d20391..a237c9f1a 100644 --- a/javascript/i18n/phonenumbers/asyoutypeformatter_test.html +++ b/javascript/i18n/phonenumbers/asyoutypeformatter_test.html @@ -20,6 +20,7 @@ limitations under the License. Author: Nikolaos Trogkanis --> + libphonenumber Unit Tests - i18n.phonenumbers - asyoutypeformatter.js diff --git a/javascript/i18n/phonenumbers/demo.html b/javascript/i18n/phonenumbers/demo.html index a6d65161f..bdde7cca5 100644 --- a/javascript/i18n/phonenumbers/demo.html +++ b/javascript/i18n/phonenumbers/demo.html @@ -20,6 +20,7 @@ limitations under the License. Author: Nikolaos Trogkanis --> + Phone Number Parser Demo