aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.1_T4.js
blob: 081fc2d0b2eac786e75a1e0fe1ca6b0de4f8d116 (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
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
* @name: S11.11.2_A2.1_T4;
* @section: 11.11.2, 8.7.1, 16;
* @assertion: Operator x || y uses GetValue;
* @description: If ToBoolean(x) is true and GetBase(y) is null, return true;
*/


// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {
id: "S11.11.2_A2.1_T4",

path: "TestCases/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.1_T4.js",

assertion: "Operator x || y uses GetValue",

description: "If ToBoolean(x) is true and GetBase(y) is null, return true",

test: function testcase() {
   //CHECK#1
if ((true || x) !== true) {
  $ERROR('#1: (true || x) === true');
}

 }
});