~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A1.2_T3.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 2009 the Sputnik authors.  All rights reserved.
 
2
// This code is governed by the BSD license found in the LICENSE file.
 
3
 
 
4
/**
 
5
 * Global object has properties such as built-in objects such as
 
6
 * Math, String, Date, parseInt, etc
 
7
 *
 
8
 * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js
 
9
 * @description Function execution context - Constructor Properties
 
10
 */
 
11
 
 
12
function test() {
 
13
  //CHECK#13
 
14
  if ( Object === null ) {
 
15
    $ERROR("#13: Object === null");
 
16
  }
 
17
 
 
18
  //CHECK#14
 
19
  if ( Function === null ) {
 
20
    $ERROR("#14: Function === null");
 
21
  }
 
22
 
 
23
  //CHECK#15
 
24
  if ( String === null ) {
 
25
    $ERROR("#15: String === null");
 
26
  }
 
27
 
 
28
  //CHECK#16
 
29
  if ( Number === null ) {
 
30
    $ERROR("#16: Function === null");
 
31
  }
 
32
 
 
33
  //CHECK#17
 
34
  if ( Array === null ) {
 
35
    $ERROR("#17: Array === null");
 
36
  }
 
37
 
 
38
  //CHECK#18
 
39
  if ( Boolean === null ) {
 
40
    $ERROR("#20: Boolean === null");
 
41
  }
 
42
 
 
43
  //CHECK#18
 
44
  if ( Date === null ) {
 
45
    $ERROR("#18: Date === null");
 
46
  }
 
47
 
 
48
  //CHECK#19
 
49
  if ( RegExp === null ) {
 
50
    $ERROR("#19: RegExp === null");
 
51
  }
 
52
 
 
53
  //CHECK#20
 
54
  if ( Error === null ) {
 
55
    $ERROR("#20: Error === null");
 
56
  }
 
57
 
 
58
  //CHECK#21
 
59
  if ( EvalError === null ) {
 
60
    $ERROR("#21: EvalError === null");
 
61
  }
 
62
 
 
63
  //CHECK#22
 
64
  if ( RangeError === null ) {
 
65
    $ERROR("#22: RangeError === null");
 
66
  }
 
67
 
 
68
  //CHECK#23
 
69
  if ( ReferenceError === null ) {
 
70
    $ERROR("#23: ReferenceError === null");
 
71
  }
 
72
 
 
73
  //CHECK#24
 
74
  if ( SyntaxError === null ) {
 
75
    $ERROR("#24: SyntaxError === null");
 
76
  }
 
77
 
 
78
  //CHECK#25
 
79
  if ( TypeError === null ) {
 
80
    $ERROR("#25: TypeError === null");
 
81
  }
 
82
 
 
83
  //CHECK#26
 
84
  if ( URIError === null ) {
 
85
    $ERROR("#26: URIError === null");
 
86
  }
 
87
}
 
88
 
 
89
test();
 
90