~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

Viewing changes to js/src/tests/test262/intl402/ch12/12.2/12.2.1.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012 Mozilla Corporation. All rights reserved.
 
2
// This code is governed by the license found in the LICENSE file.
 
3
 
 
4
/**
 
5
 * @description Tests that Intl.DateTimeFormat.prototype has the required attributes.
 
6
 * @author Norbert Lindenberg
 
7
 */
 
8
 
 
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
}
 
22