summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/lsp/did_change_notification_large_02.json25
-rw-r--r--cli/tests/lsp/did_change_notification_large_03.json25
-rw-r--r--cli/tests/lsp/hover_request_large_01.json14
-rw-r--r--cli/tests/lsp/hover_request_large_02.json14
-rw-r--r--cli/tests/lsp/hover_request_large_03.json14
-rw-r--r--cli/tests/lsp/performance_request.json6
6 files changed, 98 insertions, 0 deletions
diff --git a/cli/tests/lsp/did_change_notification_large_02.json b/cli/tests/lsp/did_change_notification_large_02.json
new file mode 100644
index 000000000..e8744d620
--- /dev/null
+++ b/cli/tests/lsp/did_change_notification_large_02.json
@@ -0,0 +1,25 @@
+{
+ "jsonrpc": "2.0",
+ "method": "textDocument/didChange",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "version": 2
+ },
+ "contentChanges": [
+ {
+ "range": {
+ "start": {
+ "line": 445,
+ "character": 4
+ },
+ "end": {
+ "line": 445,
+ "character": 4
+ }
+ },
+ "text": "// "
+ }
+ ]
+ }
+}
diff --git a/cli/tests/lsp/did_change_notification_large_03.json b/cli/tests/lsp/did_change_notification_large_03.json
new file mode 100644
index 000000000..f39234510
--- /dev/null
+++ b/cli/tests/lsp/did_change_notification_large_03.json
@@ -0,0 +1,25 @@
+{
+ "jsonrpc": "2.0",
+ "method": "textDocument/didChange",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "version": 2
+ },
+ "contentChanges": [
+ {
+ "range": {
+ "start": {
+ "line": 477,
+ "character": 4
+ },
+ "end": {
+ "line": 477,
+ "character": 9
+ }
+ },
+ "text": "error"
+ }
+ ]
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_01.json b/cli/tests/lsp/hover_request_large_01.json
new file mode 100644
index 000000000..78ddee5a3
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_01.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 421,
+ "character": 30
+ }
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_02.json b/cli/tests/lsp/hover_request_large_02.json
new file mode 100644
index 000000000..4d7eae150
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_02.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 444,
+ "character": 6
+ }
+ }
+}
diff --git a/cli/tests/lsp/hover_request_large_03.json b/cli/tests/lsp/hover_request_large_03.json
new file mode 100644
index 000000000..5309450dd
--- /dev/null
+++ b/cli/tests/lsp/hover_request_large_03.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/hover",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "position": {
+ "line": 461,
+ "character": 34
+ }
+ }
+}
diff --git a/cli/tests/lsp/performance_request.json b/cli/tests/lsp/performance_request.json
new file mode 100644
index 000000000..cb389cb9d
--- /dev/null
+++ b/cli/tests/lsp/performance_request.json
@@ -0,0 +1,6 @@
+{
+ "jsonrpc": "2.0",
+ "id": 99,
+ "method": "deno/performance",
+ "params": {}
+}