js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A1.1_T2.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_T2.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     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_T2.js
    1.12 + * @description Global execution context - Function Properties
    1.13 + */
    1.14 +
    1.15 +//CHECK#4
    1.16 +if ( eval === null ) {
    1.17 +  $ERROR("#4: eval === null");
    1.18 +}
    1.19 +
    1.20 +//CHECK#5
    1.21 +if ( parseInt === null ) {
    1.22 +  $ERROR("#5: parseInt === null");
    1.23 +}
    1.24 +
    1.25 +//CHECK#6
    1.26 +if ( parseFloat === null ) {
    1.27 +  $ERROR("#6: parseFloat === null");
    1.28 +}
    1.29 +
    1.30 +//CHECK#7
    1.31 +if ( isNaN === null ) {
    1.32 +  $ERROR("#7: isNaN === null");
    1.33 +}
    1.34 +
    1.35 +//CHECK#8
    1.36 +if ( isFinite === null ) {
    1.37 +  $ERROR("#8: isFinite === null");
    1.38 +}
    1.39 +
    1.40 +//CHECK#9
    1.41 +if ( decodeURI === null ) {
    1.42 +  $ERROR("#9: decodeURI === null");
    1.43 +}
    1.44 +
    1.45 +//CHECK#10
    1.46 +if ( decodeURIComponent === null ) {
    1.47 +  $ERROR("#10: decodeURIComponent === null");
    1.48 +}
    1.49 +
    1.50 +//CHECK#11
    1.51 +if ( encodeURI === null ) {
    1.52 +  $ERROR("#11: encodeURI === null");
    1.53 +}
    1.54 +
    1.55 +//CHECK#12
    1.56 +if ( encodeURIComponent === null ) {
    1.57 +  $ERROR("#12: encodeURIComponent === null");
    1.58 +}
    1.59 +

mercurial