Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Nov 22, 2015
1 parent c7d7fb7 commit de5c223
Show file tree
Hide file tree
Showing 193 changed files with 5,180 additions and 4,049 deletions.
6 changes: 3 additions & 3 deletions examples/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ var arguments = 1; //: number
```json
[
{
"id": "4a06e820-909d-11e5-9c7a-dd949506f8d1",
"id": "f1bdee50-90a8-11e5-bbaa-0b9630fdffaa",
"name": "arguments",
"addr": "arguments",
"addr": "/arguments/",
"kind": "v",
"type": "number",
"lineno": 1,
Expand All @@ -25,5 +25,5 @@ var arguments = 1; //: number
]
```
```ctags
arguments __DIR__/arguments.js arguments;" v lineno:1 type:number
arguments __DIR__/arguments.js /arguments/;" v lineno:1 type:number
```
18 changes: 9 additions & 9 deletions examples/array_holes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ z //: string
```json
[
{
"id": "4a6757a0-909d-11e5-afcb-0917b05a2a58",
"id": "f22080b0-90a8-11e5-b09a-8f7ac864dfa2",
"name": "x",
"addr": "x",
"addr": "/x/",
"kind": "v",
"type": "[string]",
"lineno": 1,
Expand All @@ -26,9 +26,9 @@ z //: string
"tagfile": "__DIR__/array_holes.js"
},
{
"id": "4a677eb0-909d-11e5-afcb-0917b05a2a58",
"id": "f220a7c0-90a8-11e5-b09a-8f7ac864dfa2",
"name": "y",
"addr": "y",
"addr": "/y/",
"kind": "v",
"type": "string",
"lineno": 3,
Expand All @@ -43,9 +43,9 @@ z //: string
"tagfile": "__DIR__/array_holes.js"
},
{
"id": "4a67a5c0-909d-11e5-afcb-0917b05a2a58",
"id": "f220a7c1-90a8-11e5-b09a-8f7ac864dfa2",
"name": "z",
"addr": "z",
"addr": "/z/",
"kind": "v",
"type": "string",
"lineno": 3,
Expand All @@ -62,7 +62,7 @@ z //: string
]
```
```ctags
x __DIR__/array_holes.js x;" v lineno:1 type:[string]
y __DIR__/array_holes.js y;" v lineno:3 type:string
z __DIR__/array_holes.js z;" v lineno:3 type:string
x __DIR__/array_holes.js /x/;" v lineno:1 type:[string]
y __DIR__/array_holes.js /y/;" v lineno:3 type:string
z __DIR__/array_holes.js /z/;" v lineno:3 type:string
```
42 changes: 21 additions & 21 deletions examples/arrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Obj.prototype.map = function() {
```json
[
{
"id": "4ac248e0-909d-11e5-8ad0-d14b531a2466",
"id": "f2884330-90a8-11e5-8bc6-911346d1e80f",
"name": "f",
"addr": "f",
"addr": "/f/",
"kind": "f",
"type": "f.!ret function(number, Array[bool])",
"lineno": 1,
Expand All @@ -37,14 +37,14 @@ Obj.prototype.map = function() {
"tagfile": "__DIR__/arrow.js"
},
{
"id": "4ac29700-909d-11e5-8ad0-d14b531a2466",
"id": "f2889150-90a8-11e5-8bc6-911346d1e80f",
"name": "a",
"addr": "a",
"addr": "/a/",
"kind": "v",
"type": "number",
"lineno": 1,
"namespace": "f",
"parent": "4ac248e0-909d-11e5-8ad0-d14b531a2466",
"parent": "f2884330-90a8-11e5-8bc6-911346d1e80f",
"origin": {
"!span": "9[0:9]-10[0:10]",
"!type": "number",
Expand All @@ -58,14 +58,14 @@ Obj.prototype.map = function() {
"tagfile": "__DIR__/arrow.js"
},
{
"id": "4ac29701-909d-11e5-8ad0-d14b531a2466",
"id": "f2889151-90a8-11e5-8bc6-911346d1e80f",
"name": "b",
"addr": "b",
"addr": "/b/",
"kind": "v",
"type": "boolean",
"lineno": 1,
"namespace": "f",
"parent": "4ac248e0-909d-11e5-8ad0-d14b531a2466",
"parent": "f2884330-90a8-11e5-8bc6-911346d1e80f",
"origin": {
"!span": "13[0:13]-14[0:14]",
"!type": "bool",
Expand All @@ -79,9 +79,9 @@ Obj.prototype.map = function() {
"tagfile": "__DIR__/arrow.js"
},
{
"id": "4ac29702-909d-11e5-8ad0-d14b531a2466",
"id": "f2889152-90a8-11e5-8bc6-911346d1e80f",
"name": "wrap",
"addr": "wrap",
"addr": "/wrap/",
"kind": "f",
"type": "wrap.!ret.!ret function() function()",
"lineno": 5,
Expand All @@ -96,9 +96,9 @@ Obj.prototype.map = function() {
"tagfile": "__DIR__/arrow.js"
},
{
"id": "4ac29703-909d-11e5-8ad0-d14b531a2466",
"id": "f2889153-90a8-11e5-8bc6-911346d1e80f",
"name": "Obj",
"addr": "Obj",
"addr": "/Obj/",
"kind": "f",
"type": "void function()",
"lineno": 10,
Expand All @@ -113,14 +113,14 @@ Obj.prototype.map = function() {
"tagfile": "__DIR__/arrow.js"
},
{
"id": "4ac29705-909d-11e5-8ad0-d14b531a2466",
"id": "f2889155-90a8-11e5-8bc6-911346d1e80f",
"name": "map",
"addr": "map",
"addr": "/map/",
"kind": "f",
"type": "[!this.x] function()",
"lineno": 13,
"namespace": "Obj.prototype",
"parent": "4ac29704-909d-11e5-8ad0-d14b531a2466",
"parent": "f2889154-90a8-11e5-8bc6-911346d1e80f",
"origin": {
"!span": "212[12:14]-215[12:17]",
"!type": "fn() -> [!this.x]",
Expand All @@ -134,10 +134,10 @@ Obj.prototype.map = function() {
]
```
```ctags
f __DIR__/arrow.js f;" f lineno:1 type:f.!ret function(number, Array[bool])
a __DIR__/arrow.js a;" v lineno:1 namespace:f type:number
b __DIR__/arrow.js b;" v lineno:1 namespace:f type:boolean
wrap __DIR__/arrow.js wrap;" f lineno:5 type:wrap.!ret.!ret function() function()
Obj __DIR__/arrow.js Obj;" f lineno:10 type:void function()
map __DIR__/arrow.js map;" f lineno:13 namespace:Obj.prototype type:[!this.x] function()
f __DIR__/arrow.js /f/;" f lineno:1 type:f.!ret function(number, Array[bool])
a __DIR__/arrow.js /a/;" v lineno:1 namespace:f type:number
b __DIR__/arrow.js /b/;" v lineno:1 namespace:f type:boolean
wrap __DIR__/arrow.js /wrap/;" f lineno:5 type:wrap.!ret.!ret function() function()
Obj __DIR__/arrow.js /Obj/;" f lineno:10 type:void function()
map __DIR__/arrow.js /map/;" f lineno:13 namespace:Obj.prototype type:[!this.x] function()
```
30 changes: 15 additions & 15 deletions examples/autothis.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ new Date().fn2();
```json
[
{
"id": "4b1fab20-909d-11e5-bc7b-316753990570",
"id": "f301e000-90a8-11e5-8019-cbe886a455e8",
"name": "Bar",
"addr": "Bar",
"addr": "/Bar/",
"kind": "f",
"type": "void function()",
"lineno": 1,
Expand All @@ -32,14 +32,14 @@ new Date().fn2();
"tagfile": "__DIR__/autothis.js"
},
{
"id": "4b1fab22-909d-11e5-bc7b-316753990570",
"id": "f3020711-90a8-11e5-8019-cbe886a455e8",
"name": "hallo",
"addr": "hallo",
"addr": "/hallo/",
"kind": "f",
"type": "void function()",
"lineno": 2,
"namespace": "Bar.prototype",
"parent": "4b1fab21-909d-11e5-bc7b-316753990570",
"parent": "f3020710-90a8-11e5-8019-cbe886a455e8",
"origin": {
"!span": "49[1:14]-54[1:19]",
"!type": "fn()",
Expand All @@ -51,14 +51,14 @@ new Date().fn2();
"tagfile": "__DIR__/autothis.js"
},
{
"id": "4b1f8411-909d-11e5-bc7b-316753990570",
"id": "f301b8f2-90a8-11e5-8019-cbe886a455e8",
"name": "fn2",
"addr": "fn2",
"addr": "/fn2/",
"kind": "f",
"type": "void function()",
"lineno": 11,
"namespace": "Date.prototype",
"parent": "4b1f8410-909d-11e5-bc7b-316753990570",
"parent": "f301b8f1-90a8-11e5-8019-cbe886a455e8",
"origin": {
"!span": "183[10:15]-186[10:18]",
"!type": "fn()",
Expand All @@ -70,14 +70,14 @@ new Date().fn2();
"tagfile": "__DIR__/autothis.js"
},
{
"id": "4b204760-909d-11e5-bc7b-316753990570",
"id": "f302a350-90a8-11e5-8019-cbe886a455e8",
"name": "fn2",
"addr": "fn2",
"addr": "/fn2/",
"kind": "f",
"type": "void function()",
"lineno": 11,
"namespace": "Bar.prototype",
"parent": "4b1fab21-909d-11e5-bc7b-316753990570",
"parent": "f3020710-90a8-11e5-8019-cbe886a455e8",
"origin": {
"!span": "183[10:15]-186[10:18]",
"!type": "fn()",
Expand All @@ -91,8 +91,8 @@ new Date().fn2();
]
```
```ctags
Bar __DIR__/autothis.js Bar;" f lineno:1 type:void function()
hallo __DIR__/autothis.js hallo;" f lineno:2 namespace:Bar.prototype type:void function()
fn2 __DIR__/autothis.js fn2;" f lineno:11 namespace:Date.prototype type:void function()
fn2 __DIR__/autothis.js fn2;" f lineno:11 namespace:Bar.prototype type:void function()
Bar __DIR__/autothis.js /Bar/;" f lineno:1 type:void function()
hallo __DIR__/autothis.js /hallo/;" f lineno:2 namespace:Bar.prototype type:void function()
fn2 __DIR__/autothis.js /fn2/;" f lineno:11 namespace:Date.prototype type:void function()
fn2 __DIR__/autothis.js /fn2/;" f lineno:11 namespace:Bar.prototype type:void function()
```
Loading

0 comments on commit de5c223

Please sign in to comment.