[gjs] Add UTF-8 tests from Everything typelib.
- From: Johan Bilien <jobi src gnome org>
- To: svn-commits-list gnome org
- Subject: [gjs] Add UTF-8 tests from Everything typelib.
- Date: Tue, 12 May 2009 11:15:02 -0400 (EDT)
commit b9596e993133a06009960771c7913bec078fb58c
Author: C. Scott Ananian <cscott litl com>
Date: Fri May 1 15:34:43 2009 -0400
Add UTF-8 tests from Everything typelib.
---
test/js/testEverythingBasic.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/test/js/testEverythingBasic.js b/test/js/testEverythingBasic.js
index 901c589..261c967 100644
--- a/test/js/testEverythingBasic.js
+++ b/test/js/testEverythingBasic.js
@@ -118,6 +118,18 @@ function testStrv() {
assertRaises(function() { Everything.test_strv_in(['1', 2, 3]); });
}
+function testUtf8() {
+ const CONST_STR = "const \u2665 utf8";
+ const NONCONST_STR = "nonconst \u2665 utf8";
+
+ assertEquals(CONST_STR, Everything.test_utf8_const_return());
+ assertEquals(NONCONST_STR, Everything.test_utf8_nonconst_return());
+ Everything.test_utf8_nonconst_in(NONCONST_STR);
+ Everything.test_utf8_const_in(CONST_STR);
+ assertEquals(NONCONST_STR, Everything.test_utf8_out());
+ assertEquals(NONCONST_STR, Everything.test_utf8_inout(CONST_STR));
+}
+
function testFilenameReturn() {
var filenames = Everything.test_filename_return();
assertEquals(2, filenames.length);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]