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 objects constructed by Intl.Collator have the specified internal properties. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: var obj = new Intl.Collator(); michael@0: michael@0: var actualPrototype = Object.getPrototypeOf(obj); michael@0: if (actualPrototype !== Intl.Collator.prototype) { michael@0: $ERROR("Prototype of object constructed by Intl.Collator isn't Intl.Collator.prototype; got " + actualPrototype); michael@0: } michael@0: michael@0: if (!Object.isExtensible(obj)) { michael@0: $ERROR("Object constructed by Intl.Collator must be extensible."); michael@0: } michael@0: