michael@0: // Copyright 2013 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 constructing a DateTimeFormat doesn't create or modify michael@0: * unwanted properties on the RegExp constructor. michael@0: * @author Norbert Lindenberg michael@0: */ michael@0: michael@0: $INCLUDE("testIntl.js"); michael@0: michael@0: testForUnwantedRegExpChanges(function () { michael@0: new Intl.DateTimeFormat("de-DE-u-ca-gregory"); michael@0: }); michael@0: michael@0: testForUnwantedRegExpChanges(function () { michael@0: new Intl.DateTimeFormat("de-DE-u-ca-gregory", {timeZone: "UTC"}); michael@0: });