void () { myFixture.configureByText("Foo.java", "class Foo { String s = \"a\\nb<caret>\"; }"); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_PREVIOUS_WORD); myFixture.checkResult("class Foo { String s = \"a\\n<caret>b\"; }"); }