aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/10_Execution_Contexts/10.1_Definitions/10.1.5_Global_Object/S10.1.5_A1.2_T3.js
blob: 27928b2ede527327c709a7ff736e8e3b41aa3640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S10.1.5_A1.2_T3;
 * @section: 10.1.5, 15.1;
 * @assertion: Global object has properties such as built-in objects such as 
 * Math, String, Date, parseInt, etc; 
 * @description: Function execution context - Constructor Properties;
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S10.1.5_A1.2_T3",

path: "TestCases/10_Execution_Contexts/10.1_Definitions/10.1.5_Global_Object/S10.1.5_A1.2_T3.js",

assertion: "Global object has properties such as built-in objects such as",

description: "Function execution context - Constructor Properties",

test: function testcase() {
   function test() {
  //CHECK#13
  if ( Object === null ) {
    $ERROR("#13: Object === null");
  }

  //CHECK#14
  if ( Function === null ) {
    $ERROR("#14: Function === null");
  }

  //CHECK#15
  if ( String === null ) {
    $ERROR("#15: String === null");
  }

  //CHECK#16
  if ( Number === null ) {
    $ERROR("#16: Function === null");
  }

  //CHECK#17
  if ( Array === null ) {
    $ERROR("#17: Array === null");
  }

  //CHECK#18
  if ( Boolean === null ) {
    $ERROR("#20: Boolean === null");
  }

  //CHECK#18
  if ( Date === null ) {
    $ERROR("#18: Date === null");
  }

  //CHECK#19
  if ( RegExp === null ) {
    $ERROR("#19: RegExp === null");
  }

  //CHECK#20
  if ( Error === null ) {
    $ERROR("#20: Error === null");
  }

  //CHECK#21
  if ( EvalError === null ) {
    $ERROR("#21: EvalError === null");
  }

  //CHECK#22
  if ( RangeError === null ) {
    $ERROR("#22: RangeError === null");
  }

  //CHECK#23
  if ( ReferenceError === null ) {
    $ERROR("#23: ReferenceError === null");
  }

  //CHECK#24
  if ( SyntaxError === null ) {
    $ERROR("#24: SyntaxError === null");
  }

  //CHECK#25
  if ( TypeError === null ) {
    $ERROR("#25: TypeError === null");
  }

  //CHECK#26
  if ( URIError === null ) {
    $ERROR("#26: URIError === null");
  }
}

test();

 }
});