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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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  * 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  */
    11 //CHECK#1
    12 if (!(undefined !== null)) {
    13   $ERROR('#1: undefined !== null');
    14 }
    16 //CHECK#2
    17 if (!(null !== undefined)) {
    18   $ERROR('#2: null !== undefined');
    19 }
    21 //CHECK#3
    22 if (!(null !== 0)) {
    23   $ERROR('#3: null !== 0');
    24 }
    26 //CHECK#4
    27 if (!(0 !== null)) {
    28   $ERROR('#4: 0 !== null');
    29 }
    31 //CHECK#5
    32 if (!(null !== false)) {
    33   $ERROR('#5: null !== false');
    34 }
    36 //CHECK#6
    37 if (!(false !== null)) {
    38   $ERROR('#6: false !== null');
    39 }
    41 //CHECK#7
    42 if (!(undefined !== false)) {
    43   $ERROR('#7: undefined !== false');
    44 }
    46 //CHECK#8
    47 if (!(false !== undefined)) {
    48   $ERROR('#8: false !== undefined');
    49 }
    51 //CHECK#9
    52 if (!(null !== new Object())) {
    53   $ERROR('#9: null !== new Object()');
    54 }
    56 //CHECK#10
    57 if (!(new Object() !== null)) {
    58   $ERROR('#10: new Object() !== null');
    59 }
    61 //CHECK#11
    62 if (!(null !== "null")) {
    63   $ERROR('#11: null !== "null"');
    64 }
    66 //CHECK#12
    67 if (!("null" !== null)) {
    68   $ERROR('#12: "null" !== null');
    69 }
    71 //CHECK#13
    72 if (!(undefined !== "undefined")) {
    73   $ERROR('#13: undefined !== "undefined"');
    74 }
    76 //CHECK#14
    77 if (!("undefined" !== undefined)) {
    78   $ERROR('#14: "undefined" !== undefined');
    79 }

mercurial