mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-03-01 13:46:02 +01:00
Mute some neovim tests
This commit is contained in:
parent
ceafe9d4e7
commit
96b05dcc94
src/test/java/org/jetbrains/plugins/ideavim
action/change/insert
common/editor
ex
extension/matchit
@ -37,6 +37,8 @@
|
||||
package org.jetbrains.plugins.ideavim.action.change.insert
|
||||
|
||||
import com.maddyhome.idea.vim.helper.StringHelper.parseKeys
|
||||
import org.jetbrains.plugins.ideavim.SkipNeovimReason
|
||||
import org.jetbrains.plugins.ideavim.TestWithoutNeovim
|
||||
import org.jetbrains.plugins.ideavim.VimTestCase
|
||||
import org.junit.experimental.theories.DataPoints
|
||||
import org.junit.experimental.theories.Theories
|
||||
@ -80,6 +82,7 @@ class InsertCompletedLiteralActionTest : VimTestCase() {
|
||||
// todo parametrized
|
||||
// FYI space key after code will be sent via VimPlugin.getMacro().postKey(key, editor);, that's why we ignore the last space in tests
|
||||
// fun `octal codes`(@FromDataPoints("octalPrefix") prefix: String) {
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
@Theory
|
||||
fun `octal codes`() {
|
||||
for (prefix in octalPrefix) {
|
||||
@ -91,6 +94,7 @@ class InsertCompletedLiteralActionTest : VimTestCase() {
|
||||
}
|
||||
|
||||
// FYI space key after code will be sent via VimPlugin.getMacro().postKey(key, editor);, that's why we ignore the last space in tests
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
@Theory
|
||||
fun `decimal codes`() {
|
||||
checkInsert("1 ", "${1.toChar()}")
|
||||
@ -99,6 +103,7 @@ class InsertCompletedLiteralActionTest : VimTestCase() {
|
||||
}
|
||||
|
||||
// FYI space key after code will be sent via VimPlugin.getMacro().postKey(key, editor);, that's why we ignore the last space in tests
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
@Theory
|
||||
fun `hex codes`() {
|
||||
for (prefix in shortHexPrefix) {
|
||||
@ -214,6 +219,7 @@ class InsertCompletedLiteralActionTest : VimTestCase() {
|
||||
checkInsert("Z", "Z")
|
||||
}
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
@Theory
|
||||
fun `control plus character`() {
|
||||
checkInsert("<C-a>", 1.toChar().toString())
|
||||
|
@ -22,9 +22,12 @@ import com.intellij.openapi.application.runWriteAction
|
||||
import com.intellij.openapi.command.WriteCommandAction
|
||||
import com.maddyhome.idea.vim.common.offset
|
||||
import com.maddyhome.idea.vim.newapi.IjVimEditor
|
||||
import org.jetbrains.plugins.ideavim.SkipNeovimReason
|
||||
import org.jetbrains.plugins.ideavim.TestWithoutNeovim
|
||||
import org.jetbrains.plugins.ideavim.VimTestCase
|
||||
|
||||
class VimEditorTest : VimTestCase() {
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
fun `test delete string`() {
|
||||
configureByText("01234567890")
|
||||
val vimEditor = IjVimEditor(myFixture.editor)
|
||||
|
@ -313,6 +313,7 @@ class CommandParserTest : VimTestCase() {
|
||||
assertEquals(SimpleExpression(10), let2.expression)
|
||||
}
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.NOT_VIM_TESTING)
|
||||
fun `test bug with caret return symbol`() {
|
||||
configureByText("----------\n1234${c}567890\n----------\n")
|
||||
injector.vimscriptExecutor.execute(
|
||||
|
@ -94,6 +94,7 @@ class MatchitGeneralTest : VimTestCase() {
|
||||
)
|
||||
}
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.PLUGIN)
|
||||
fun `test jump from visual end of line to opening parenthesis`() {
|
||||
doTest(
|
||||
"v$%",
|
||||
@ -103,6 +104,7 @@ class MatchitGeneralTest : VimTestCase() {
|
||||
)
|
||||
}
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.PLUGIN)
|
||||
fun `test jump from visual end of line to opening parenthesis then back to closing`() {
|
||||
doTest(
|
||||
"v$%%",
|
||||
@ -163,7 +165,7 @@ class MatchitGeneralTest : VimTestCase() {
|
||||
/*
|
||||
* Tests for visual mode and deleting on the new Matchit patterns.
|
||||
*/
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.PLUGIN)
|
||||
fun `test jump from visual end of line to opening angle bracket`() {
|
||||
doTest(
|
||||
"v$%",
|
||||
@ -173,6 +175,7 @@ class MatchitGeneralTest : VimTestCase() {
|
||||
)
|
||||
}
|
||||
|
||||
@TestWithoutNeovim(reason = SkipNeovimReason.PLUGIN)
|
||||
fun `test jump from visual end of line to start of for loop`() {
|
||||
doTest(
|
||||
"v$%",
|
||||
|
Loading…
Reference in New Issue
Block a user