Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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.2/S11.9.2_A2.1_T1.js
8 * @description Either Type is not Reference or GetBase is not null
9 */
11 //CHECK#1
12 if ((1 != 1) !== false) {
13 $ERROR('#1: (1 != 1) === false');
14 }
16 //CHECK#2
17 var x = 1;
18 if ((x != 1) !== false) {
19 $ERROR('#2: var x = 1; (x != 1) === false');
20 }
22 //CHECK#3
23 var y = 1;
24 if ((1 != y) !== false) {
25 $ERROR('#3: var y = 1; (1 != y) === false');
26 }
28 //CHECK#4
29 var x = 1;
30 var y = 1;
31 if ((x != y) !== false) {
32 $ERROR('#4: var x = 1; var y = 1; (x != y) === false');
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) !== false) {
41 $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; (objectx.prop != objecty.prop) === false');
42 }