michael@0: // Copyright 2012 Mozilla Corporation. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * @description Tests that default locale is available. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: $INCLUDE("testIntl.js"); michael@0: michael@0: testWithIntlConstructors(function (Constructor) { michael@0: var defaultLocale = new Constructor().resolvedOptions().locale; michael@0: var supportedLocales = Constructor.supportedLocalesOf([defaultLocale]); michael@0: if (supportedLocales.indexOf(defaultLocale) === -1) { michael@0: $ERROR("Default locale is not reported as available."); michael@0: } michael@0: }); michael@0: