js/src/tests/test262/ch11/11.8/11.8.7/S11.8.7_A4.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Operator "in" calls ToString(ShiftExpression)
     6  *
     7  * @path ch11/11.8/11.8.7/S11.8.7_A4.js
     8  * @description Checking ToString coversion;
     9  */
    11 //CHECK#1
    12 var object = {};
    13 object["true"] = 1;
    14 if (true in object !== "true" in object) {  
    15   $ERROR('#1: "var object = {}; object["true"] = 1; true in object === "true" in object');  
    16 }
    18 //CHECK#2
    19 var object = {};
    20 object.Infinity = 1;
    21 if (Infinity in object !== "Infinity" in object) {  
    22   $ERROR('#2: "var object = {}; object.Infinity = 1; Infinity in object === "Infinity" in object');  
    23 }
    25 //CHECK#4
    26 var object = {};
    27 object.undefined = 1;
    28 if (undefined in object !== "undefined" in object) {  
    29   $ERROR('#4: "var object = {}; object.undefined = 1; undefined in object === "undefined" in object');  
    30 }
    32 //CHECK#5
    33 var object = {};
    34 object["null"] = 1;
    35 if (null in object !== "null" in object) {  
    36   $ERROR('#5: "var object = {}; object["null"] = 1; null in object === "null" in object');  
    37 }

mercurial