| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: "\"This\" operator only evaluates Expression" |
| 6 |
es5id: 11.1.6_A3_T3 |
| 7 |
description: Applying grouping operator to String |
| 8 |
---*/ |
| 9 |
|
| 10 |
//Check for String |
| 11 |
|
| 12 |
//CHECK#1 |
| 13 |
if (("1") !== "1") { |
| 14 |
$ERROR('#1: ("1") === "1". Actual: ' + (("1"))); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#2 |
| 18 |
if (("x") !== "x") { |
| 19 |
$ERROR('#2: ("x") === "x". Actual: ' + (("x"))); |
| 20 |
} |
| 21 |
|
| 22 |
//CHECK#3 |
| 23 |
var x = new Number("1"); |
| 24 |
if ((x) !== x) { |
| 25 |
$ERROR('#3: var x = new Number("1"); (x) === x. Actual: ' + ((x))); |
| 26 |
} |