[gjs: 3/5] Automate testing for unicode encoding.
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/5] Automate testing for unicode encoding.
- Date: Tue, 17 Apr 2018 05:34:47 +0000 (UTC)
commit 2119c8f039eab534f3c63da72a542044dc5da11a
Author: rockon999 <rockon999 users noreply github com>
Date: Fri Apr 6 01:30:19 2018 -0400
Automate testing for unicode encoding.
installed-tests/scripts/testCommandLine.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh
index bdc57b77..040eb04f 100755
--- a/installed-tests/scripts/testCommandLine.sh
+++ b/installed-tests/scripts/testCommandLine.sh
@@ -100,10 +100,10 @@ else
fi
# ensure the encoding of argv is being properly handled
-$gjs -c 'log(ARGV[0])' "Valentín"
-report "Valentín should be outputed. ValentÃn is incorrect and if shown encoding is broken for argv"
-$gjs -c 'log(ARGV[0])' "☭"
-report "☭ should be outputed. If you see a unicode code point, encoding is broken for argv (and possibly
imports)"
+$gjs -c 'imports.system.exit((ARGV[0] !== "Valentín") ? 1 : 0)' "Valentín"
+report "Basic unicode encoding (accents, etc) should be functioning properly for ARGV and imports."
+$gjs -c 'imports.system.exit((ARGV[0] !== "☭") ? 1 : 0)' "☭"
+report "Unicode encoding for symbols should be functioning properly for ARGV and imports."
# gjs --help prints GJS help
$gjs --help >/dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]