split out trap tests to avoid "package.json" naming conflict in trap test

This commit is contained in:
Erik Krogh Kristensen
2020-08-24 21:36:34 +02:00
parent 309346841a
commit b0d4e79653
8 changed files with 36 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
#10000=@"/package.json;sourcefile"
files(#10000,"/package.json","package","json",0)
#10001=@"/;folder"
folders(#10001,"/","")
containerparent(#10001,#10000)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=*
json_errors(#20000,"Error: Unexpected token")
#20001=@"loc,{#10000},3,1,3,1"
locations_default(#20001,#10000,3,1,3,1)
hasLocation(#20000,#20001)
numlines(#10000,3,0,0)
filetype(#10000,"json")

View File

@@ -1,14 +1,11 @@
#10000=@"/invalid1/tst.js;sourcefile"
files(#10000,"/invalid1/tst.js","tst","js",0)
#10001=@"/invalid1;folder"
folders(#10001,"/invalid1","invalid1")
#10002=@"/;folder"
folders(#10002,"/","")
containerparent(#10002,#10001)
#10000=@"/tst.js;sourcefile"
files(#10000,"/tst.js","tst","js",0)
#10001=@"/;folder"
folders(#10001,"/","")
containerparent(#10001,#10000)
#10003=@"loc,{#10000},0,0,0,0"
locations_default(#10003,#10000,0,0,0,0)
hasLocation(#10000,#10003)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=@"global_scope"
scopes(#20000,0)
#20001=@"script;{#10000},1,1"

View File

@@ -1,14 +1,11 @@
#10000=@"/invalid2/package.json;sourcefile"
files(#10000,"/invalid2/package.json","package","json",0)
#10001=@"/invalid2;folder"
folders(#10001,"/invalid2","invalid2")
#10002=@"/;folder"
folders(#10002,"/","")
containerparent(#10002,#10001)
#10000=@"/package.json;sourcefile"
files(#10000,"/package.json","package","json",0)
#10001=@"/;folder"
folders(#10001,"/","")
containerparent(#10001,#10000)
#10003=@"loc,{#10000},0,0,0,0"
locations_default(#10003,#10000,0,0,0,0)
hasLocation(#10000,#10003)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=*
json(#20000,5,#10000,0,"{\n ""type"": 123\n}")
#20001=@"loc,{#10000},1,1,3,1"

View File

@@ -1,14 +1,11 @@
#10000=@"/invalid2/tst2.js;sourcefile"
files(#10000,"/invalid2/tst2.js","tst2","js",0)
#10001=@"/invalid2;folder"
folders(#10001,"/invalid2","invalid2")
#10002=@"/;folder"
folders(#10002,"/","")
containerparent(#10002,#10001)
#10000=@"/tst2.js;sourcefile"
files(#10000,"/tst2.js","tst2","js",0)
#10001=@"/;folder"
folders(#10001,"/","")
containerparent(#10001,#10000)
#10003=@"loc,{#10000},0,0,0,0"
locations_default(#10003,#10000,0,0,0,0)
hasLocation(#10000,#10003)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=@"global_scope"
scopes(#20000,0)
#20001=@"script;{#10000},1,1"