[gjs] tests: Disable locale conversion failure tests
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Disable locale conversion failure tests
- Date: Fri, 8 Nov 2013 14:37:16 +0000 (UTC)
commit a75373faa3fe75e871e5dd67f0958319f6aa9c92
Author: Tim Lunn <tim feathertop org>
Date: Sun Oct 6 16:52:08 2013 +1100
tests: Disable locale conversion failure tests
This is for the mozjs24 port.
At the moment, mozjs24 must be built with --disable-intl-api for the
locale callbacks to work. In theory the locale callbacks are no
longer needed since this is handled by ICU, however it looks like js24
will ship with an in-tree ICU, which many distros might disable.
https://bugzilla.gnome.org/show_bug.cgi?id=711046
installed-tests/js/testLocale.js | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/installed-tests/js/testLocale.js b/installed-tests/js/testLocale.js
index ddd07b1..feda5f6 100644
--- a/installed-tests/js/testLocale.js
+++ b/installed-tests/js/testLocale.js
@@ -19,15 +19,11 @@ function testToLocaleLowerCase() {
// characters are handled specially for a few locales,
// like i in Turkish. But not A WITH ACUTE)
JSUnit.assertEquals("\u00e1", "\u00c1".toLocaleLowerCase());
-
- // Unpaired surrogate, can't be converted to UTF-8
- JSUnit.assertRaises(function() { "\ud800".toLocaleLowerCase(); });
}
function testToLocaleUpperCase() {
JSUnit.assertEquals("AAA", "aaa".toLocaleUpperCase());
JSUnit.assertEquals("\u00c1", "\u00e1".toLocaleUpperCase());
- JSUnit.assertRaises(function() { "\ud800".toLocaleUpperCase(); });
}
function testToLocaleCompare() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]