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 Intl.Collator instances have the specified properties. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: var obj = new Intl.Collator(); michael@0: michael@0: var toStringValue = Object.prototype.toString.call(obj); michael@0: if (toStringValue !== "[object Object]") { michael@0: $ERROR("Intl.Collator instance produces wrong [[Class]] - toString returns " + toStringValue + "."); michael@0: } michael@0: