Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2012 Mozilla Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
4 /**
5 * @description Tests that Intl.DateTimeFormat.prototype has the required attributes.
6 * @author Norbert Lindenberg
7 */
9 var desc = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat, "prototype");
10 if (desc === undefined) {
11 $ERROR("Intl.DateTimeFormat.prototype is not defined.");
12 }
13 if (desc.writable) {
14 $ERROR("Intl.DateTimeFormat.prototype must not be writable.");
15 }
16 if (desc.enumerable) {
17 $ERROR("Intl.DateTimeFormat.prototype must not be enumerable.");
18 }
19 if (desc.configurable) {
20 $ERROR("Intl.DateTimeFormat.prototype must not be configurable.");
21 }