js/src/tests/test262/ch11/11.8/11.8.6/S11.8.6_A1.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     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  * White Space and Line Terminator between RelationalExpression and "instanceof" and between "instanceof" and ShiftExpression are allowed
     6  *
     7  * @path ch11/11.8/11.8.6/S11.8.6_A1.js
     8  * @description Checking by using eval
     9  */
    11 //CHECK#1
    12 if (eval("({})\u0009instanceof\u0009Object") !== true) {
    13   $ERROR('#1: ({})\\u0009instanceof\\u0009Object === true');
    14 }
    16 //CHECK#2
    17 if (eval("({})\u000Binstanceof\u000BObject") !== true) {
    18   $ERROR('#2: ({})\\u000Binstanceof\\u000BObject === true');  
    19 }
    21 //CHECK#3
    22 if (eval("({})\u000Cinstanceof\u000CObject") !== true) {
    23   $ERROR('#3: ({})\\u000Cinstanceof\\u000CObject === true');
    24 }
    26 //CHECK#4
    27 if (eval("({})\u0020instanceof\u0020Object") !== true) {
    28   $ERROR('#4: ({})\\u0020instanceof\\u0020Object === true');
    29 }
    31 //CHECK#5
    32 if (eval("({})\u00A0instanceof\u00A0Object") !== true) {
    33   $ERROR('#5: ({})\\u00A0instanceof\\u00A0Object === true');
    34 }
    36 //CHECK#6
    37 if (eval("({})\u000Ainstanceof\u000AObject") !== true) {
    38   $ERROR('#6: ({})\\u000Ainstanceof\\u000AObject === true');  
    39 }
    41 //CHECK#7
    42 if (eval("({})\u000Dinstanceof\u000DObject") !== true) {
    43   $ERROR('#7: ({})\\u000Dinstanceof\\u000DObject === true');
    44 }
    46 //CHECK#8
    47 if (eval("({})\u2028instanceof\u2028Object") !== true) {
    48   $ERROR('#8: ({})\\u2028instanceof\\u2028Object === true');
    49 }
    51 //CHECK#9
    52 if (eval("({})\u2029instanceof\u2029Object") !== true) {
    53   $ERROR('#9: ({})\\u2029instanceof\\u2029Object === true');
    54 }
    56 //CHECK#10
    57 if (eval("({})\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029instanceof\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029Object") !== true) {
    58   $ERROR('#10: ({})\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029instanceof\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029Object === true');
    59 }

mercurial