js/src/tests/test262/ch11/11.9/11.9.5/S11.9.5_A8_T4.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:8cffadcdda7b
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 * If Type(x) is different from Type(y), return true
6 *
7 * @path ch11/11.9/11.9.5/S11.9.5_A8_T4.js
8 * @description x or y is null or undefined
9 */
10
11 //CHECK#1
12 if (!(undefined !== null)) {
13 $ERROR('#1: undefined !== null');
14 }
15
16 //CHECK#2
17 if (!(null !== undefined)) {
18 $ERROR('#2: null !== undefined');
19 }
20
21 //CHECK#3
22 if (!(null !== 0)) {
23 $ERROR('#3: null !== 0');
24 }
25
26 //CHECK#4
27 if (!(0 !== null)) {
28 $ERROR('#4: 0 !== null');
29 }
30
31 //CHECK#5
32 if (!(null !== false)) {
33 $ERROR('#5: null !== false');
34 }
35
36 //CHECK#6
37 if (!(false !== null)) {
38 $ERROR('#6: false !== null');
39 }
40
41 //CHECK#7
42 if (!(undefined !== false)) {
43 $ERROR('#7: undefined !== false');
44 }
45
46 //CHECK#8
47 if (!(false !== undefined)) {
48 $ERROR('#8: false !== undefined');
49 }
50
51 //CHECK#9
52 if (!(null !== new Object())) {
53 $ERROR('#9: null !== new Object()');
54 }
55
56 //CHECK#10
57 if (!(new Object() !== null)) {
58 $ERROR('#10: new Object() !== null');
59 }
60
61 //CHECK#11
62 if (!(null !== "null")) {
63 $ERROR('#11: null !== "null"');
64 }
65
66 //CHECK#12
67 if (!("null" !== null)) {
68 $ERROR('#12: "null" !== null');
69 }
70
71 //CHECK#13
72 if (!(undefined !== "undefined")) {
73 $ERROR('#13: undefined !== "undefined"');
74 }
75
76 //CHECK#14
77 if (!("undefined" !== undefined)) {
78 $ERROR('#14: "undefined" !== undefined');
79 }
80

mercurial