Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,4 @@ | ||
#! /usr/bin/env bash | ||
|
||
. testlib | ||
|
||
# setup | ||
trap kill_jobs EXIT | ||
ensure_no_vimservers | ||
start_vim_servers LEFT RIGHT | ||
sleep 1 | ||
|
||
# given | ||
open_vim LEFT myfile.txt | ||
open_vim_tab LEFT myotherfile.txt | ||
open_vim RIGHT myfile.txt | ||
|
||
# then | ||
[[ `current_file_name RIGHT` == "" ]] || fail $LINENO | ||
buffer_is_loaded RIGHT myfile.txt && fail $LINENO | ||
|
||
[[ `current_file_name LEFT` == "myfile.txt" ]] || fail $LINENO | ||
buffer_is_loaded LEFT myfile.txt || fail $LINENO | ||
|
||
./test_two_monitors | ||
./test_three_monitors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /usr/bin/env bash | ||
|
||
. testlib | ||
|
||
# setup | ||
trap kill_jobs EXIT | ||
ensure_no_vimservers | ||
start_vim_servers LEFT RIGHT MIDDLE | ||
sleep 1 | ||
|
||
# given | ||
open_vim LEFT myfile.txt | ||
open_vim_tab LEFT filefour.txt | ||
open_vim RIGHT myotherfile.txt | ||
open_vim MIDDLE thirdfile.txt | ||
|
||
[[ `current_file_name LEFT` == "filefour.txt" ]] || fail $LINENO | ||
|
||
# when | ||
open_vim MIDDLE myfile.txt | ||
|
||
# then | ||
[[ `current_file_name MIDDLE` == "thirdfile.txt" ]] || fail $LINENO | ||
[[ `current_file_name LEFT` == "myfile.txt" ]] || fail $LINENO | ||
|
||
wait_for_input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /usr/bin/env bash | ||
|
||
. testlib | ||
|
||
# setup | ||
trap kill_jobs EXIT | ||
ensure_no_vimservers | ||
start_vim_servers LEFT RIGHT | ||
sleep 1 | ||
|
||
# given | ||
open_vim LEFT myfile.txt | ||
open_vim_tab LEFT myotherfile.txt | ||
|
||
# when | ||
open_vim RIGHT myfile.txt | ||
|
||
# then | ||
[[ `current_file_name RIGHT` == "" ]] || fail $LINENO | ||
buffer_is_loaded RIGHT myfile.txt && fail $LINENO | ||
|
||
[[ `current_file_name LEFT` == "myfile.txt" ]] || fail $LINENO | ||
buffer_is_loaded LEFT myfile.txt || fail $LINENO | ||
|