[gjs] tests: Test explicitly for Intl API
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Test explicitly for Intl API
- Date: Wed, 1 Mar 2017 20:46:13 +0000 (UTC)
commit 42e01b318a518bf8d636d22d5eb9de22c1a8456e
Author: Philip Chimento <philip endlessm com>
Date: Wed Mar 1 11:33:24 2017 -0800
tests: Test explicitly for Intl API
This should at least make it more clear what is going on if these tests
fail, and what the fix is: compile the Intl API into SpiderMonkey.
A build-time check would be preferred, but that is not possible; see bug
report.
https://bugzilla.gnome.org/show_bug.cgi?id=779412
installed-tests/js/testLocale.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/installed-tests/js/testLocale.js b/installed-tests/js/testLocale.js
index 16b17ac..edd8a6e 100644
--- a/installed-tests/js/testLocale.js
+++ b/installed-tests/js/testLocale.js
@@ -1,4 +1,8 @@
describe('JS_SetLocaleCallbacks', function () {
+ it('Intl API was compiled into SpiderMonkey', function () {
+ expect(Intl).toBeDefined();
+ });
+
// Requesting the weekday name tests locale_to_unicode
it('toLocaleDateString() works', function () {
let date = new Date('12/15/1981');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]