Skip to content

Commit

Permalink
Merge pull request #20779 from rasika/test-fix
Browse files Browse the repository at this point in the history
Enable LS Workspace Symbol tests
  • Loading branch information
rasika authored Jan 30, 2020
2 parents 99ebc8a + d8f2a73 commit 8d41dd9
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public void testWorkspaceSymbol(String config, String query) throws IOException
public Object[][] workspaceSymbolDataProvider() {
log.info("Test workspace/symbol");
return new Object[][] {
// {"workspaceSymbolWithQuery.json", "test"},
// {"workspaceSymbol.json", ""},
{"workspaceSymbolWithQuery.json", "test"},
{"workspaceSymbol.json", ""},
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,86 @@
"query": "",
"expected": {
"result": [
{
"name": "listenerEp",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 4,
"character": 0
},
"end": {
"line": 4,
"character": 46
}
}
}
},
{
"name": "testDocService",
"kind": "Class",
"location": {
"range": {
"start": {
"line": 8,
"character": 0
},
"end": {
"line": 29,
"character": 1
}
}
}
},
{
"name": "sayHello",
"kind": "Function",
"location": {
"range": {
"start": {
"line": 10,
"character": 4
},
"end": {
"line": 28,
"character": 5
}
}
}
},
{
"name": "response",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 19,
"character": 8
},
"end": {
"line": 19,
"character": 37
}
}
}
},
{
"name": "testDocService",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 8,
"character": 8
},
"end": {
"line": 8,
"character": 22
}
}
}
},
{
"name": "ns0",
"kind": "Namespace",
Expand Down Expand Up @@ -169,11 +249,11 @@
"range": {
"start": {
"line": 15,
"character": 4
"character": 11
},
"end": {
"line": 17,
"character": 5
"line": 15,
"character": 14
}
}
}
Expand All @@ -185,11 +265,11 @@
"range": {
"start": {
"line": 19,
"character": 4
"character": 11
},
"end": {
"line": 21,
"character": 5
"line": 19,
"character": 14
}
}
}
Expand Down Expand Up @@ -289,86 +369,6 @@
}
}
}
},
{
"name": "listenerEp",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 4,
"character": 0
},
"end": {
"line": 4,
"character": 46
}
}
}
},
{
"name": "testDocService",
"kind": "Class",
"location": {
"range": {
"start": {
"line": 8,
"character": 0
},
"end": {
"line": 29,
"character": 1
}
}
}
},
{
"name": "sayHello",
"kind": "Function",
"location": {
"range": {
"start": {
"line": 10,
"character": 4
},
"end": {
"line": 28,
"character": 5
}
}
}
},
{
"name": "response",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 19,
"character": 8
},
"end": {
"line": 19,
"character": 37
}
}
}
},
{
"name": "testDocService",
"kind": "Variable",
"location": {
"range": {
"start": {
"line": 8,
"character": 8
},
"end": {
"line": 8,
"character": 22
}
}
}
}
],
"jsonrpc": "2.0"
Expand Down

0 comments on commit 8d41dd9

Please sign in to comment.