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 the behavior of a List is not affected by adversarial michael@0: * changes to Array.prototype. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: $INCLUDE("testIntl.js"); michael@0: michael@0: taintArray(); michael@0: michael@0: testWithIntlConstructors(function (Constructor) { michael@0: var defaultLocale = new Constructor().resolvedOptions().locale; michael@0: var canonicalized = Constructor.supportedLocalesOf([defaultLocale, defaultLocale]); michael@0: if (canonicalized.length > 1) { michael@0: $ERROR("Canonicalization didn't remove duplicate language tags from locale list."); michael@0: } michael@0: }); michael@0: