js/src/tests/test262/ch11/11.9/11.9.4/S11.9.4_A2.1_T1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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 x === y uses GetValue
     6  *
     7  * @path ch11/11.9/11.9.4/S11.9.4_A2.1_T1.js
     8  * @description Either Type is not Reference or GetBase is not null
     9  */
    11 //CHECK#1
    12 if (!(1 === 1)) {
    13   $ERROR('#1: 1 === 1');
    14 }
    16 //CHECK#2
    17 var x = 1;
    18 if (!(x === 1)) {
    19   $ERROR('#2: var x = 1; x === 1');
    20 }
    22 //CHECK#3
    23 var y = 1;
    24 if (!(1 === y)) {
    25   $ERROR('#3: var y = 1; 1 === y');
    26 }
    28 //CHECK#4
    29 var x = 1;
    30 var y = 1;
    31 if (!(x === y)) {
    32   $ERROR('#4: var x = 1; var y = 1; x === y');
    33 }
    35 //CHECK#5
    36 var objectx = new Object();
    37 var objecty = new Object();
    38 objectx.prop = 1;
    39 objecty.prop = 1;
    40 if (!(objectx.prop === objecty.prop)) {
    41   $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop === objecty.prop');
    42 }

mercurial