-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2697 from rodcloutier/multisplit_support
Add support for grid layout
- Loading branch information
Showing
5 changed files
with
160 additions
and
84 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
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
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
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,43 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
import { getAndUpdateModeHandler } from '../../extension'; | ||
import { commandLine } from '../../src/cmd_line/commandLine'; | ||
import { ModeHandler } from '../../src/mode/modeHandler'; | ||
import { | ||
assertEqual, | ||
cleanUpWorkspace, | ||
setupWorkspace, | ||
WaitForEditorsToClose, | ||
} from './../testUtils'; | ||
|
||
suite('Horizontal split', () => { | ||
let modeHandler: ModeHandler; | ||
|
||
setup(async () => { | ||
await setupWorkspace(); | ||
modeHandler = await getAndUpdateModeHandler(); | ||
}); | ||
|
||
teardown(cleanUpWorkspace); | ||
|
||
test('Run :sp', async () => { | ||
await commandLine.Run('sp', modeHandler.vimState); | ||
await WaitForEditorsToClose(2); | ||
|
||
assertEqual(vscode.window.visibleTextEditors.length, 2, 'Editor did not split in 1 sec'); | ||
}); | ||
|
||
test('Run :split', async () => { | ||
await commandLine.Run('split', modeHandler.vimState); | ||
await WaitForEditorsToClose(2); | ||
|
||
assertEqual(vscode.window.visibleTextEditors.length, 2, 'Editor did not split in 1 sec'); | ||
}); | ||
|
||
test('Run :new', async () => { | ||
await commandLine.Run('split', modeHandler.vimState); | ||
await WaitForEditorsToClose(2); | ||
|
||
assertEqual(vscode.window.visibleTextEditors.length, 2, 'Editor did not split in 1 sec'); | ||
}); | ||
}); |
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