js/src/tests/test262/ch11/11.4/11.4.2/S11.4.2_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 "void" and UnaryExpression are allowed
     6  *
     7  * @path ch11/11.4/11.4.2/S11.4.2_A1.js
     8  * @description Checking by using eval
     9  */
    11 //CHECK#1
    12 if (eval("void\u00090") !== undefined) {
    13   $ERROR('#1: void\\u00090 === undefined');
    14 }
    16 //CHECK#2
    17 if (eval("void\u000B0") !== undefined) {
    18   $ERROR('#2: void\\u000B0 === undefined');  
    19 }
    21 //CHECK#3
    22 if (eval("void\u000C0") !== undefined) {
    23   $ERROR('#3: void\\u000C0 === undefined');
    24 }
    26 //CHECK#4
    27 if (eval("void\u00200") !== undefined) {
    28   $ERROR('#4: void\\u00200 === undefined');
    29 }
    31 //CHECK#5
    32 if (eval("void\u00A00") !== undefined) {
    33   $ERROR('#5: void\\u00A00 === undefined');
    34 }
    36 //CHECK#6
    37 if (eval("void\u000A0") !== undefined) {
    38   $ERROR('#6: void\\u000A0 === undefined');  
    39 }
    41 //CHECK#7
    42 if (eval("void\u000D0") !== undefined) {
    43   $ERROR('#7: void\\u000D0 === undefined');
    44 }
    46 //CHECK#8
    47 if (eval("void\u20280") !== undefined) {
    48   $ERROR('#8: void\\u20280 === undefined');
    49 }
    51 //CHECK#9
    52 if (eval("void\u20290") !== undefined) {
    53   $ERROR('#9: void\\u20290 === undefined');
    54 }
    56 //CHECK#10
    57 if (eval("void\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== undefined) {
    58   $ERROR('#10: void\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20290 === undefined');
    59 }

mercurial