diff options
Diffstat (limited to 'test/suite/intl402/ch12/12.1/12.1.1_a.js')
-rw-r--r-- | test/suite/intl402/ch12/12.1/12.1.1_a.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/suite/intl402/ch12/12.1/12.1.1_a.js b/test/suite/intl402/ch12/12.1/12.1.1_a.js new file mode 100644 index 000000000..4f5f3dbf5 --- /dev/null +++ b/test/suite/intl402/ch12/12.1/12.1.1_a.js @@ -0,0 +1,18 @@ +// Copyright 2013 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * @description Tests that constructing a DateTimeFormat doesn't create or modify + * unwanted properties on the RegExp constructor. + * @author Norbert Lindenberg + */ + +$INCLUDE("testIntl.js"); + +testForUnwantedRegExpChanges(function () { + new Intl.DateTimeFormat("de-DE-u-ca-gregory"); +}); + +testForUnwantedRegExpChanges(function () { + new Intl.DateTimeFormat("de-DE-u-ca-gregory", {timeZone: "UTC"}); +}); |