aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/108_backtrace_debug_commands_spec.lua
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-09-27 19:21:40 +0800
committerckelsel <ckelsel@hotmail.com>2017-09-27 19:21:40 +0800
commitdde62900c8cfed967bd54218c8eb0790954f8c14 (patch)
treec3bc82d0edcc3582578922bd0d13233ab751b576 /test/functional/legacy/108_backtrace_debug_commands_spec.lua
parent3a1c33a6c3ad5074bfc442507282a438726f1b58 (diff)
parent542ed5f5d31647bfec6d3119f4e2993544530c35 (diff)
downloadrneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.tar.gz
rneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.tar.bz2
rneovim-dde62900c8cfed967bd54218c8eb0790954f8c14.zip
Merge branch 'master' of https://github.com/neovim/neovim into vim-8.0.0101
fix Conflicts
Diffstat (limited to 'test/functional/legacy/108_backtrace_debug_commands_spec.lua')
-rw-r--r--test/functional/legacy/108_backtrace_debug_commands_spec.lua40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/functional/legacy/108_backtrace_debug_commands_spec.lua b/test/functional/legacy/108_backtrace_debug_commands_spec.lua
index b2e2fa4ed3..ff1917e90c 100644
--- a/test/functional/legacy/108_backtrace_debug_commands_spec.lua
+++ b/test/functional/legacy/108_backtrace_debug_commands_spec.lua
@@ -89,18 +89,18 @@ describe('108', function()
-- Assert buffer contents.
expect([=[
-
-
-
+
+
+
- show backtrace:
-
+
2 function Foo[2]
1 Bar[2]
->0 Bazz
line 2: let var3 = "another var"
-
+
show variables on different levels:
-
+
6
2 function Foo[2]
->1 Bar[2]
@@ -112,9 +112,9 @@ describe('108', function()
0 Bazz
line 2: let var3 = "another var"
1
-
+
- undefined vars:
-
+
undefined var3 on former level:
Error detected while processing function Foo[2]..Bar[2]..Bazz:
line 3:
@@ -122,7 +122,7 @@ describe('108', function()
E15: Invalid expression: var3
here var3 is defined with "another var":
another var
-
+
undefined var2 on former level
Error detected while processing function Foo[2]..Bar:
line 3:
@@ -130,37 +130,37 @@ describe('108', function()
E15: Invalid expression: var2
here var2 is defined with 10:
10
-
+
- backtrace movements:
-
+
1 function Foo[2]
->0 Bar
line 3: End of function
-
+
next command cannot go down, we are on bottom
-
+
frame is zero
-
+
next command cannot go up, we are on top
-
+
frame at highest level: 1
->1 function Foo[2]
0 Bar
line 3: End of function
fil is not frame or finish, it is file
"[No Name]" --No lines in buffer--
-
+
- relative backtrace movement
-
+
1 function Foo[2]
->0 Bar
line 3: End of function
->1 function Foo[2]
0 Bar
line 3: End of function
-
+
- go beyond limits does not crash
-
+
frame at highest level: 1
->1 function Foo[2]
0 Bar
@@ -169,7 +169,7 @@ describe('108', function()
1 function Foo[2]
->0 Bar
line 3: End of function
-
+
- final result 19:
19
]=])