⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245725 in webkit


Ignore:
Timestamp:
May 23, 2019, 4:34:20 PM (7 years ago)
Author:
Ryan Haddad
Message:

Land test changes for rdar://problem/51086725.

  • inspector/runtime/parse-expected.txt:
  • inspector/runtime/parse.html:
Location:
branches/safari-607-branch/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/LayoutTests/ChangeLog

    r245405 r245725  
     12019-05-23  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Land test changes for rdar://problem/51086725.
     4
     5        * inspector/runtime/parse-expected.txt:
     6        * inspector/runtime/parse.html:
     7
    182019-05-16  Shawn Roberts  <sroberts@apple.com>
    29
  • branches/safari-607-branch/LayoutTests/inspector/runtime/parse-expected.txt

    r211319 r245725  
    7676PASS: Should be SyntaxErrorType Recoverable.
    7777Source: (
    78         ^
    79 Error Message: Unexpected end of script
    80 Error Range: {"startOffset":0,"endOffset":1}
     78         ^
     79Error Message: Unexpected end of script
     80Error Range: {"startOffset":1,"endOffset":1}
    8181
    8282PASS: Should be SyntaxErrorType Recoverable.
    8383Source: {
    84         ^
    85 Error Message: Unexpected end of script
    86 Error Range: {"startOffset":0,"endOffset":1}
     84         ^
     85Error Message: Unexpected end of script
     86Error Range: {"startOffset":1,"endOffset":1}
    8787
    8888PASS: Should be SyntaxErrorType Recoverable.
    8989Source: !
    90         ^
    91 Error Message: Unexpected end of script
    92 Error Range: {"startOffset":0,"endOffset":1}
     90         ^
     91Error Message: Unexpected end of script
     92Error Range: {"startOffset":1,"endOffset":1}
    9393
    9494PASS: Should be SyntaxErrorType Recoverable.
    9595Source: -
    96         ^
    97 Error Message: Unexpected end of script
    98 Error Range: {"startOffset":0,"endOffset":1}
     96         ^
     97Error Message: Unexpected end of script
     98Error Range: {"startOffset":1,"endOffset":1}
    9999
    100100PASS: Should be SyntaxErrorType Recoverable.
    101101Source: +
    102         ^
    103 Error Message: Unexpected end of script
    104 Error Range: {"startOffset":0,"endOffset":1}
     102         ^
     103Error Message: Unexpected end of script
     104Error Range: {"startOffset":1,"endOffset":1}
    105105
    106106PASS: Should be SyntaxErrorType Recoverable.
    107107Source: ~
    108         ^
    109 Error Message: Unexpected end of script
    110 Error Range: {"startOffset":0,"endOffset":1}
     108         ^
     109Error Message: Unexpected end of script
     110Error Range: {"startOffset":1,"endOffset":1}
    111111
    112112PASS: Should be SyntaxErrorType Recoverable.
    113113Source: 1,
    114          ^
    115 Error Message: Unexpected end of script
    116 Error Range: {"startOffset":1,"endOffset":2}
     114          ^
     115Error Message: Unexpected end of script
     116Error Range: {"startOffset":2,"endOffset":2}
    117117
    118118PASS: Should be SyntaxErrorType Recoverable.
    119119Source: var
    120         ^~~
    121 Error Message: Unexpected end of script
    122 Error Range: {"startOffset":0,"endOffset":3}
     120           ^
     121Error Message: Unexpected end of script
     122Error Range: {"startOffset":3,"endOffset":3}
    123123
    124124PASS: Should be SyntaxErrorType Recoverable.
    125125Source: 'use strict'; let
    126                       ^~~
    127 Error Message: Unexpected end of script
    128 Error Range: {"startOffset":14,"endOffset":17}
     126                         ^
     127Error Message: Unexpected end of script
     128Error Range: {"startOffset":17,"endOffset":17}
    129129
    130130PASS: Should be SyntaxErrorType Recoverable.
    131131Source: const
    132         ^~~~~
    133 Error Message: Unexpected end of script
    134 Error Range: {"startOffset":0,"endOffset":5}
     132             ^
     133Error Message: Unexpected end of script
     134Error Range: {"startOffset":5,"endOffset":5}
    135135
    136136PASS: Should be SyntaxErrorType Recoverable.
    137137Source: var {x
     138              ^
     139Error Message: Unexpected end of script
     140Error Range: {"startOffset":6,"endOffset":6}
     141
     142PASS: Should be SyntaxErrorType Recoverable.
     143Source: var [x
     144              ^
     145Error Message: Unexpected end of script
     146Error Range: {"startOffset":6,"endOffset":6}
     147
     148PASS: Should be SyntaxErrorType Recoverable.
     149Source: var x,
     150              ^
     151Error Message: Unexpected end of script
     152Error Range: {"startOffset":6,"endOffset":6}
     153
     154PASS: Should be SyntaxErrorType Recoverable.
     155Source: if(1)
    138156             ^
    139157Error Message: Unexpected end of script
    140 Error Range: {"startOffset":5,"endOffset":6}
    141 
    142 PASS: Should be SyntaxErrorType Recoverable.
    143 Source: var [x
     158Error Range: {"startOffset":5,"endOffset":5}
     159
     160PASS: Should be SyntaxErrorType Recoverable.
     161Source: if(1){
     162              ^
     163Error Message: Unexpected end of script
     164Error Range: {"startOffset":6,"endOffset":6}
     165
     166PASS: Should be SyntaxErrorType Recoverable.
     167Source: if(1){}else
     168                   ^
     169Error Message: Unexpected end of script
     170Error Range: {"startOffset":11,"endOffset":11}
     171
     172PASS: Should be SyntaxErrorType Recoverable.
     173Source: if(1){}else{
     174                    ^
     175Error Message: Unexpected end of script
     176Error Range: {"startOffset":12,"endOffset":12}
     177
     178PASS: Should be SyntaxErrorType Recoverable.
     179Source: while(1)
     180                ^
     181Error Message: Unexpected end of script
     182Error Range: {"startOffset":8,"endOffset":8}
     183
     184PASS: Should be SyntaxErrorType Recoverable.
     185Source: while(1){
     186                 ^
     187Error Message: Unexpected end of script
     188Error Range: {"startOffset":9,"endOffset":9}
     189
     190PASS: Should be SyntaxErrorType Recoverable.
     191Source: for(;;)
     192               ^
     193Error Message: Unexpected end of script
     194Error Range: {"startOffset":7,"endOffset":7}
     195
     196PASS: Should be SyntaxErrorType Recoverable.
     197Source: for(;;){
     198                ^
     199Error Message: Unexpected end of script
     200Error Range: {"startOffset":8,"endOffset":8}
     201
     202PASS: Should be SyntaxErrorType Recoverable.
     203Source: ()=>
     204            ^
     205Error Message: Unexpected end of script
     206Error Range: {"startOffset":4,"endOffset":4}
     207
     208PASS: Should be SyntaxErrorType Recoverable.
     209Source: ()=>{
    144210             ^
    145211Error Message: Unexpected end of script
    146 Error Range: {"startOffset":5,"endOffset":6}
    147 
    148 PASS: Should be SyntaxErrorType Recoverable.
    149 Source: var x,
    150              ^
    151 Error Message: Unexpected end of script
    152 Error Range: {"startOffset":5,"endOffset":6}
    153 
    154 PASS: Should be SyntaxErrorType Recoverable.
    155 Source: if(1)
    156             ^
    157 Error Message: Unexpected end of script
    158 Error Range: {"startOffset":4,"endOffset":5}
    159 
    160 PASS: Should be SyntaxErrorType Recoverable.
    161 Source: if(1){
    162              ^
    163 Error Message: Unexpected end of script
    164 Error Range: {"startOffset":5,"endOffset":6}
    165 
    166 PASS: Should be SyntaxErrorType Recoverable.
    167 Source: if(1){}else
    168                ^~~~
    169 Error Message: Unexpected end of script
    170 Error Range: {"startOffset":7,"endOffset":11}
    171 
    172 PASS: Should be SyntaxErrorType Recoverable.
    173 Source: if(1){}else{
    174                    ^
    175 Error Message: Unexpected end of script
    176 Error Range: {"startOffset":11,"endOffset":12}
    177 
    178 PASS: Should be SyntaxErrorType Recoverable.
    179 Source: while(1)
    180                ^
    181 Error Message: Unexpected end of script
    182 Error Range: {"startOffset":7,"endOffset":8}
    183 
    184 PASS: Should be SyntaxErrorType Recoverable.
    185 Source: while(1){
    186                 ^
    187 Error Message: Unexpected end of script
    188 Error Range: {"startOffset":8,"endOffset":9}
    189 
    190 PASS: Should be SyntaxErrorType Recoverable.
    191 Source: for(;;)
    192               ^
    193 Error Message: Unexpected end of script
    194 Error Range: {"startOffset":6,"endOffset":7}
    195 
    196 PASS: Should be SyntaxErrorType Recoverable.
    197 Source: for(;;){
    198                ^
    199 Error Message: Unexpected end of script
    200 Error Range: {"startOffset":7,"endOffset":8}
    201 
    202 PASS: Should be SyntaxErrorType Recoverable.
    203 Source: ()=>
    204           ^~
    205 Error Message: Unexpected end of script
    206 Error Range: {"startOffset":2,"endOffset":4}
    207 
    208 PASS: Should be SyntaxErrorType Recoverable.
    209 Source: ()=>{
    210             ^
    211 Error Message: Unexpected end of script
    212 Error Range: {"startOffset":4,"endOffset":5}
     212Error Range: {"startOffset":5,"endOffset":5}
    213213
    214214PASS: Should be SyntaxErrorType Recoverable.
     
    232232PASS: Should be SyntaxErrorType Recoverable.
    233233Source: `${
    234         ^~~
    235 Error Message: Unexpected end of script
    236 Error Range: {"startOffset":0,"endOffset":3}
     234           ^
     235Error Message: Unexpected end of script
     236Error Range: {"startOffset":3,"endOffset":3}
    237237
    238238PASS: Should be SyntaxErrorType Recoverable.
    239239Source: function
    240         ^~~~~~~~
    241 Error Message: Unexpected end of script
    242 Error Range: {"startOffset":0,"endOffset":8}
     240                ^
     241Error Message: Unexpected end of script
     242Error Range: {"startOffset":8,"endOffset":8}
    243243
    244244PASS: Should be SyntaxErrorType Recoverable.
    245245Source: function foo
    246                  ^~~
    247 Error Message: Unexpected end of script
    248 Error Range: {"startOffset":9,"endOffset":12}
     246                    ^
     247Error Message: Unexpected end of script
     248Error Range: {"startOffset":12,"endOffset":12}
    249249
    250250PASS: Should be SyntaxErrorType Recoverable.
    251251Source: function foo(
    252                     ^
    253 Error Message: Unexpected end of script
    254 Error Range: {"startOffset":12,"endOffset":13}
     252                     ^
     253Error Message: Unexpected end of script
     254Error Range: {"startOffset":13,"endOffset":13}
    255255
    256256PASS: Should be SyntaxErrorType Recoverable.
    257257Source: function foo(){
     258                       ^
     259Error Message: Unexpected end of script
     260Error Range: {"startOffset":15,"endOffset":15}
     261
     262PASS: Should be SyntaxErrorType Recoverable.
     263Source: (function() {
     264                     ^
     265Error Message: Unexpected end of script
     266Error Range: {"startOffset":13,"endOffset":13}
     267
     268PASS: Should be SyntaxErrorType Recoverable.
     269Source: (function() {}
    258270                      ^
    259271Error Message: Unexpected end of script
    260 Error Range: {"startOffset":14,"endOffset":15}
    261 
    262 PASS: Should be SyntaxErrorType Recoverable.
    263 Source: (function() {
    264                     ^
    265 Error Message: Unexpected end of script
    266 Error Range: {"startOffset":12,"endOffset":13}
    267 
    268 PASS: Should be SyntaxErrorType Recoverable.
    269 Source: (function() {}
    270                      ^
    271 Error Message: Unexpected end of script
    272 Error Range: {"startOffset":13,"endOffset":14}
     272Error Range: {"startOffset":14,"endOffset":14}
    273273
    274274PASS: Should be SyntaxErrorType Recoverable.
    275275Source: (function() {})(
    276                        ^
    277 Error Message: Unexpected end of script
    278 Error Range: {"startOffset":15,"endOffset":16}
     276                        ^
     277Error Message: Unexpected end of script
     278Error Range: {"startOffset":16,"endOffset":16}
    279279
    280280PASS: Should be SyntaxErrorType Recoverable.
    281281Source: switch(x)
    282                 ^
    283 Error Message: Unexpected end of script
    284 Error Range: {"startOffset":8,"endOffset":9}
     282                 ^
     283Error Message: Unexpected end of script
     284Error Range: {"startOffset":9,"endOffset":9}
    285285
    286286PASS: Should be SyntaxErrorType Recoverable.
    287287Source: switch(x){
     288                  ^
     289Error Message: Unexpected end of script
     290Error Range: {"startOffset":10,"endOffset":10}
     291
     292PASS: Should be SyntaxErrorType Recoverable.
     293Source: switch(x){case
     294                      ^
     295Error Message: Unexpected end of script
     296Error Range: {"startOffset":14,"endOffset":14}
     297
     298PASS: Should be SyntaxErrorType Recoverable.
     299Source: switch(x){case 1
     300                        ^
     301Error Message: Unexpected end of script
     302Error Range: {"startOffset":16,"endOffset":16}
     303
     304PASS: Should be SyntaxErrorType Recoverable.
     305Source: switch(x){case 1:
     306                         ^
     307Error Message: Unexpected end of script
     308Error Range: {"startOffset":17,"endOffset":17}
     309
     310PASS: Should be SyntaxErrorType Recoverable.
     311Source: class
     312             ^
     313Error Message: Unexpected end of script
     314Error Range: {"startOffset":5,"endOffset":5}
     315
     316PASS: Should be SyntaxErrorType Recoverable.
     317Source: class Klass
     318                   ^
     319Error Message: Unexpected end of script
     320Error Range: {"startOffset":11,"endOffset":11}
     321
     322PASS: Should be SyntaxErrorType Recoverable.
     323Source: class Klass {
     324                     ^
     325Error Message: Unexpected end of script
     326Error Range: {"startOffset":13,"endOffset":13}
     327
     328PASS: Should be SyntaxErrorType Recoverable.
     329Source: var x = {
    288330                 ^
    289331Error Message: Unexpected end of script
    290 Error Range: {"startOffset":9,"endOffset":10}
    291 
    292 PASS: Should be SyntaxErrorType Recoverable.
    293 Source: switch(x){case
    294                   ^~~~
    295 Error Message: Unexpected end of script
    296 Error Range: {"startOffset":10,"endOffset":14}
    297 
    298 PASS: Should be SyntaxErrorType Recoverable.
    299 Source: switch(x){case 1
    300                        ^
    301 Error Message: Unexpected end of script
    302 Error Range: {"startOffset":15,"endOffset":16}
    303 
    304 PASS: Should be SyntaxErrorType Recoverable.
    305 Source: switch(x){case 1:
    306                         ^
    307 Error Message: Unexpected end of script
    308 Error Range: {"startOffset":16,"endOffset":17}
    309 
    310 PASS: Should be SyntaxErrorType Recoverable.
    311 Source: class
    312         ^~~~~
    313 Error Message: Unexpected end of script
    314 Error Range: {"startOffset":0,"endOffset":5}
    315 
    316 PASS: Should be SyntaxErrorType Recoverable.
    317 Source: class Klass
    318               ^~~~~
    319 Error Message: Unexpected end of script
    320 Error Range: {"startOffset":6,"endOffset":11}
    321 
    322 PASS: Should be SyntaxErrorType Recoverable.
    323 Source: class Klass {
    324                     ^
    325 Error Message: Unexpected end of script
    326 Error Range: {"startOffset":12,"endOffset":13}
    327 
    328 PASS: Should be SyntaxErrorType Recoverable.
    329 Source: var x = {
    330                 ^
    331 Error Message: Unexpected end of script
    332 Error Range: {"startOffset":8,"endOffset":9}
     332Error Range: {"startOffset":9,"endOffset":9}
    333333
    334334PASS: Should be SyntaxErrorType Recoverable.
    335335Source: var x = {prop
    336                  ^~~~
    337 Error Message: Unexpected end of script
    338 Error Range: {"startOffset":9,"endOffset":13}
     336                     ^
     337Error Message: Unexpected end of script
     338Error Range: {"startOffset":13,"endOffset":13}
    339339
    340340PASS: Should be SyntaxErrorType Recoverable.
    341341Source: var x = {prop:
    342                      ^
    343 Error Message: Unexpected end of script
    344 Error Range: {"startOffset":13,"endOffset":14}
     342                      ^
     343Error Message: Unexpected end of script
     344Error Range: {"startOffset":14,"endOffset":14}
    345345
    346346PASS: Should be SyntaxErrorType Recoverable.
    347347Source: var x = {prop:123
    348                       ^~~
    349 Error Message: Unexpected end of script
    350 Error Range: {"startOffset":14,"endOffset":17}
     348                         ^
     349Error Message: Unexpected end of script
     350Error Range: {"startOffset":17,"endOffset":17}
    351351
    352352PASS: Should be SyntaxErrorType Recoverable.
    353353Source: var x = {prop:123
    354                       ^~~
    355 Error Message: Unexpected end of script
    356 Error Range: {"startOffset":14,"endOffset":17}
     354                          ^
     355Error Message: Unexpected end of script
     356Error Range: {"startOffset":18,"endOffset":18}
    357357
    358358PASS: Should be SyntaxErrorType Recoverable.
    359359Source: var x = {prop:123,
    360                          ^
    361 Error Message: Unexpected end of script
    362 Error Range: {"startOffset":17,"endOffset":18}
     360                          ^
     361Error Message: Unexpected end of script
     362Error Range: {"startOffset":18,"endOffset":18}
    363363
    364364PASS: Should be SyntaxErrorType Recoverable.
    365365Source: var x = {prop:123,
    366                          ^
    367 Error Message: Unexpected end of script
    368 Error Range: {"startOffset":17,"endOffset":18}
     366                           ^
     367Error Message: Unexpected end of script
     368Error Range: {"startOffset":19,"endOffset":19}
    369369
    370370PASS: Should be SyntaxErrorType Recoverable.
    371371Source: var x = {prop:123, 'prop2'
    372                            ^~~~~~~
    373 Error Message: Unexpected end of script
    374 Error Range: {"startOffset":19,"endOffset":26}
     372                                  ^
     373Error Message: Unexpected end of script
     374Error Range: {"startOffset":26,"endOffset":26}
    375375
    376376PASS: Should be SyntaxErrorType Recoverable.
    377377Source: var x = {prop:123, [12
    378                             ^~
    379 Error Message: Unexpected end of script
    380 Error Range: {"startOffset":20,"endOffset":22}
     378                              ^
     379Error Message: Unexpected end of script
     380Error Range: {"startOffset":22,"endOffset":22}
    381381
    382382PASS: Should be SyntaxErrorType Recoverable.
    383383Source: var x = {prop:123, [12]
    384                               ^
    385 Error Message: Unexpected end of script
    386 Error Range: {"startOffset":22,"endOffset":23}
     384                               ^
     385Error Message: Unexpected end of script
     386Error Range: {"startOffset":23,"endOffset":23}
    387387
    388388PASS: Should be SyntaxErrorType Recoverable.
    389389Source: var x = {prop:123, [12]:
    390                                ^
    391 Error Message: Unexpected end of script
    392 Error Range: {"startOffset":23,"endOffset":24}
     390                                ^
     391Error Message: Unexpected end of script
     392Error Range: {"startOffset":24,"endOffset":24}
    393393
    394394PASS: Should be SyntaxErrorType Recoverable.
    395395Source: var x = {prop:123, [12]:567
    396                                 ^~~
    397 Error Message: Unexpected end of script
    398 Error Range: {"startOffset":24,"endOffset":27}
     396                                   ^
     397Error Message: Unexpected end of script
     398Error Range: {"startOffset":27,"endOffset":27}
    399399
    400400PASS: Should be SyntaxErrorType Recoverable.
    401401Source: var x = [
    402                 ^
    403 Error Message: Unexpected end of script
    404 Error Range: {"startOffset":8,"endOffset":9}
     402                 ^
     403Error Message: Unexpected end of script
     404Error Range: {"startOffset":9,"endOffset":9}
    405405
    406406PASS: Should be SyntaxErrorType Recoverable.
    407407Source: var x = [1
    408                  ^
    409 Error Message: Unexpected end of script
    410 Error Range: {"startOffset":9,"endOffset":10}
     408                  ^
     409Error Message: Unexpected end of script
     410Error Range: {"startOffset":10,"endOffset":10}
    411411
    412412PASS: Should be SyntaxErrorType Recoverable.
    413413Source: var x = [1,
    414                   ^
    415 Error Message: Unexpected end of script
    416 Error Range: {"startOffset":10,"endOffset":11}
     414                   ^
     415Error Message: Unexpected end of script
     416Error Range: {"startOffset":11,"endOffset":11}
    417417
    418418PASS: Should be SyntaxErrorType Recoverable.
    419419Source: var x = [1,[]
    420                     ^
    421 Error Message: Unexpected end of script
    422 Error Range: {"startOffset":12,"endOffset":13}
     420                     ^
     421Error Message: Unexpected end of script
     422Error Range: {"startOffset":13,"endOffset":13}
    423423
    424424PASS: Should be SyntaxErrorType Recoverable.
    425425Source: var x = [1,{}
    426                     ^
    427 Error Message: Unexpected end of script
    428 Error Range: {"startOffset":12,"endOffset":13}
     426                     ^
     427Error Message: Unexpected end of script
     428Error Range: {"startOffset":13,"endOffset":13}
    429429
    430430
  • branches/safari-607-branch/LayoutTests/inspector/runtime/parse.html

    r210062 r245725  
    1010        str += " ".repeat(range.startOffset);
    1111        str += "^";
    12         str += "~".repeat(range.endOffset - range.startOffset - 1);
     12        str += "~".repeat(Math.max(range.endOffset - range.startOffset - 1, 0));
    1313        InspectorTest.log(str);
    1414    }
Note: See TracChangeset for help on using the changeset viewer.