patch 8.2.0866: not enough tests for buffer writing
Problem: Not enough tests for buffer writing.
Solution: Add more tests. Use CheckRunVimInTerminal in more places.
(Yegappan Lakshmanan, closes #6167)
diff --git a/src/testdir/test_netbeans.py b/src/testdir/test_netbeans.py
index c9e8285..6dc9b4e 100644
--- a/src/testdir/test_netbeans.py
+++ b/src/testdir/test_netbeans.py
@@ -102,7 +102,8 @@
'setReadOnly_Test' : '3:setReadOnly!87\n',
'close_Test' : '3:close!88\n',
'specialKeys_Test' : '0:specialKeys!89 "F12 F13"\n',
- 'detach_Test' : '2:close!90\n1:close!91\nDETACH\n'
+ 'nbbufwrite_Test' : '4:editFile!90 "XnbBuffer"\n4:netbeansBuffer!91 T\n',
+ 'detach_Test' : '2:close!92\n1:close!93\nDETACH\n'
}
# execute the specified test
if cmd not in testmap:
@@ -120,7 +121,7 @@
if len(response) > 0:
self.request.sendall(response.encode('utf-8'))
- # Write the respoinse into the file, so that the test can knows
+ # Write the response into the file, so that the test can knows
# the command was sent.
with open("Xnetbeans", "a") as myfile:
myfile.write('send: ' + response)