vim test redux (#11709)
This cleans up the neovim-backed vim tests: - removed exempted tests (we'll rely on bug reports to find missing edge cases) - moved all assertions into non-async fn's so that failures are reporting on the right file/line - removed the NeovimBackedBindingTestContext - renamed a few things to make them clearer - reduced the number of permutations tested in some cases to reduce slowest test from 60s to 5s Release Notes: - N/A
This commit is contained in:
parent
48cba328f2
commit
f550f23b97
38 changed files with 2311 additions and 6505 deletions
|
@ -9,7 +9,7 @@
|
|||
{"Key":"g"}
|
||||
{"Key":"h"}
|
||||
{"Key":"t"}
|
||||
{"Key":" "}
|
||||
{"Key":"space"}
|
||||
{"Key":"t"}
|
||||
{"Key":"h"}
|
||||
{"Key":"i"}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{"Key":"c"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"ˇ\nbrown fox\njumps over\nthe lazy","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick\n broˇwn fox\njumˇps over\nthe lazy"}}
|
||||
{"Put":{"state":"The quick\n broˇwn fox\njumps over\nthe lazy"}}
|
||||
{"Key":"c"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick\n ˇ\nˇ\nthe lazy","mode":"Insert"}}
|
||||
{"Get":{"state":"The quick\n ˇ\njumps over\nthe lazy","mode":"Insert"}}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,11 @@
|
|||
{"Put":{"state":"Teˇst Test\n"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Teˇ Test\n","mode":"Normal"}}
|
||||
{"Put":{"state":"Tˇest test\n"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Tˇ test\n","mode":"Normal"}}
|
||||
{"Put":{"state":"Test teˇst\ntest"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"e"}
|
||||
|
@ -8,5 +16,5 @@
|
|||
{"Get":{"state":"Test teˇs","mode":"Normal"}}
|
||||
{"Put":{"state":"Test teˇst-test test"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"shift-e"}
|
||||
{"Get":{"state":"Test teˇ test","mode":"Normal"}}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Test teˇ-test test","mode":"Normal"}}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -17,6 +17,7 @@
|
|||
{"Key":"down"}
|
||||
{"Key":"y"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"fn boop() {\nˇ barp()\n bazp()\n}\n","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":" barp()\n bazp()\n"}}
|
||||
{"Key":"z"}
|
||||
{"Key":"o"}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{"Key":"i"}
|
||||
{"Get":{"state":"ˇ","mode":"Insert"}}
|
||||
{"Key":"shift-T"}
|
||||
{"Key":"shift-t"}
|
||||
{"Key":"e"}
|
||||
{"Key":"s"}
|
||||
{"Key":"t"}
|
||||
{"Key":" "}
|
||||
{"Key":"space"}
|
||||
{"Key":"t"}
|
||||
{"Key":"e"}
|
||||
{"Key":"s"}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"The quick brown\nfox ˇjumps over\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"jumps o"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps oveˇr\nthe lazy dog"}}
|
||||
{"Key":"p"}
|
||||
|
@ -12,6 +13,7 @@
|
|||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"d"}
|
||||
{"Get":{"state":"The quick brown\nthe laˇzy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"fox jumps over\n"}}
|
||||
{"Get":{"state":"The quick brown\nthe laˇzy dog","mode":"Normal"}}
|
||||
{"Key":"p"}
|
||||
|
@ -23,6 +25,7 @@
|
|||
{"Key":"v"}
|
||||
{"Key":"j"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps ˇover\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"over\nthe lazy do"}}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps oˇover\nthe lazy dover\nthe lazy dog","mode":"Normal"}}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{"Key":"2"}
|
||||
{"Key":"j"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"The ˇquick brown\nfox jumps over\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"q\nj\nl"}}
|
||||
{"Key":"p"}
|
||||
{"Get":{"state":"The qˇquick brown\nfox jjumps over\nthe llazy dog","mode":"Normal"}}
|
||||
|
@ -19,6 +20,7 @@
|
|||
{"Key":"ctrl-v"}
|
||||
{"Key":"j"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"The ˇquick brown\nfox jumps over\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"q\nj"}}
|
||||
{"Key":"l"}
|
||||
{"Key":"ctrl-v"}
|
||||
|
|
|
@ -16,12 +16,6 @@
|
|||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"The quick brown\nOneˇ\nfox jumps over\nthe lazy dog.","mode":"Replace"}}
|
||||
{"Put":{"state":"ˇThe quick brown\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Oneˇ quick brown\nfox jumps over\nthe lazy Oneˇ.","mode":"Replace"}}
|
||||
{"Put":{"state":"The quˇick brown\nfox jumps over\nthe lazy dog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"enter"}
|
||||
|
@ -29,20 +23,3 @@
|
|||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"The qu\nOneˇ brown\nfox jumps over\nthe lazy dog.","mode":"Replace"}}
|
||||
{"Put":{"state":"ˇThe quick brown\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Oneˇ quick brown\nfox jumps over\nthe lazy Oneˇ.","mode":"Replace"}}
|
||||
{"Key":"enter"}
|
||||
{"Key":"T"}
|
||||
{"Key":"w"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"One\nTwoˇck brown\nfox jumps over\nthe lazy One\nTwoˇ","mode":"Replace"}}
|
||||
{"Put":{"state":"ˇThe quick brown\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Get":{"state":"Oneˇ quick brown\nfox jumps over\nthe lazy Oneˇ.","mode":"Replace"}}
|
||||
|
|
|
@ -91,34 +91,3 @@
|
|||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Get":{"state":"The quick brown\nˇ\nfox jumps over\nthe lazy dog.","mode":"Replace"}}
|
||||
{"Put":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"n"}
|
||||
{"Key":"e"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Get":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog.","mode":"Replace"}}
|
||||
{"Put":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"enter"}
|
||||
{"Key":"e"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Get":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog.","mode":"Replace"}}
|
||||
{"Put":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog."}}
|
||||
{"Key":"shift-r"}
|
||||
{"Key":"O"}
|
||||
{"Key":"enter"}
|
||||
{"Key":"n"}
|
||||
{"Key":"enter"}
|
||||
{"Key":"e"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Key":"backspace"}
|
||||
{"Get":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog.","mode":"Replace"}}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{"Key":"$"}
|
||||
{"Get":{"state":"The «quick brownˇ»\nfox «jumps overˇ»\nthe «lazy dogˇ»","mode":"VisualBlock"}}
|
||||
{"Key":"shift-f"}
|
||||
{"Key":" "}
|
||||
{"Key":"space"}
|
||||
{"Get":{"state":"The «quickˇ» brown\nfox «jumpsˇ» over\nthe «lazy ˇ»dog","mode":"VisualBlock"}}
|
||||
{"Key":"v"}
|
||||
{"Get":{"state":"The «quick brown\nfox jumps over\nthe lazy ˇ»dog","mode":"Visual"}}
|
||||
|
|
|
@ -15,6 +15,18 @@
|
|||
{"Key":"j"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The ˇver\nthe lazy dog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps ˇover\nthe lazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"j"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps ˇhe lazy dog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps over\nthe ˇlazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"j"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps over\nthe ˇog","mode":"Insert"}}
|
||||
{"Put":{"state":"The ˇquick brown\nfox jumps over\nthe lazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
|
@ -24,24 +36,12 @@
|
|||
{"Put":{"state":"The quick brown\nfox jumps ˇover\nthe lazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"j"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps ˇhe lazy dog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps ˇover\nthe lazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"k"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nˇver\nthe lazy dog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps over\nthe ˇlazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"j"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps over\nthe ˇog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox jumps over\nthe ˇlazy dog"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"w"}
|
||||
{"Key":"k"}
|
||||
{"Key":"c"}
|
||||
{"Get":{"state":"The quick brown\nfox jumpsˇazy dog","mode":"Insert"}}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
{"ReadRegister":{"name":"\"","value":"lazy d"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"y"}
|
||||
{"Get":{"state":"The quick brown\nfox jumps over\nˇthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"the lazy dog\n"}}
|
||||
{"Put":{"state":"The ˇquick brown\nfox jumps over\nthe lazy dog"}}
|
||||
{"Key":"v"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue