js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,87 @@
     1.4 +// Copyright 2009 the Sputnik authors.  All rights reserved.
     1.5 +// This code is governed by the BSD license found in the LICENSE file.
     1.6 +
     1.7 +/**
     1.8 + * Global object has properties such as built-in objects such as
     1.9 + * Math, String, Date, parseInt, etc
    1.10 + *
    1.11 + * @path ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js
    1.12 + * @description Global execution context - Constructor Properties
    1.13 + */
    1.14 +
    1.15 +//CHECK#13
    1.16 +if ( Object === null ) {
    1.17 +  $ERROR("#13: Object === null");
    1.18 +}
    1.19 +
    1.20 +//CHECK#14
    1.21 +if ( Function === null ) {
    1.22 +  $ERROR("#14: Function === null");
    1.23 +}
    1.24 +
    1.25 +//CHECK#15
    1.26 +if ( String === null ) {
    1.27 +  $ERROR("#15: String === null");
    1.28 +}
    1.29 +
    1.30 +//CHECK#16
    1.31 +if ( Number === null ) {
    1.32 +  $ERROR("#16: Number === null");
    1.33 +}
    1.34 +
    1.35 +//CHECK#17
    1.36 +if ( Array === null ) {
    1.37 +  $ERROR("#17: Array === null");
    1.38 +}
    1.39 +
    1.40 +//CHECK#18
    1.41 +if ( Boolean === null ) {
    1.42 +  $ERROR("#20: Boolean === null");
    1.43 +}
    1.44 +
    1.45 +//CHECK#18
    1.46 +if ( Date === null ) {
    1.47 +  $ERROR("#18: Date === null");
    1.48 +}
    1.49 +
    1.50 +//CHECK#19
    1.51 +if ( RegExp === null ) {
    1.52 +  $ERROR("#19: RegExp === null");
    1.53 +}
    1.54 +
    1.55 +//CHECK#20
    1.56 +if ( Error === null ) {
    1.57 +  $ERROR("#20: Error === null");
    1.58 +}
    1.59 +
    1.60 +//CHECK#21
    1.61 +if ( EvalError === null ) {
    1.62 +  $ERROR("#21: EvalError === null");
    1.63 +}
    1.64 +
    1.65 +//CHECK#22
    1.66 +if ( RangeError === null ) {
    1.67 +  $ERROR("#22: RangeError === null");
    1.68 +}
    1.69 +
    1.70 +//CHECK#23
    1.71 +if ( ReferenceError === null ) {
    1.72 +  $ERROR("#23: ReferenceError === null");
    1.73 +}
    1.74 +
    1.75 +//CHECK#24
    1.76 +if ( SyntaxError === null ) {
    1.77 +  $ERROR("#24: SyntaxError === null");
    1.78 +}
    1.79 +
    1.80 +//CHECK#25
    1.81 +if ( TypeError === null ) {
    1.82 +  $ERROR("#25: TypeError === null");
    1.83 +}
    1.84 +
    1.85 +//CHECK#26
    1.86 +if ( URIError === null ) {
    1.87 +  $ERROR("#26: URIError === null");
    1.88 +}
    1.89 +
    1.90 +

mercurial