Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
7,100 | void () { doTest(); } | testSimpleNoSelection |
7,101 | void () { doTest(); } | testSimpleSelection |
7,102 | void () { doTest(); } | testSimpleSelectionInWord |
7,103 | void () { doTest(); } | testSimpleSelectionInList |
7,104 | void () { doTest(); } | testSimpleSelectionInQuote |
7,105 | void () { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.ToggleStrikethroughAction"); checkResultByFile(getTestName(true) + "_after.md"); } | doTest |
7,106 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/toggleStrikethrough/"; } | getTestDataPath |
7,107 | void () { doTest(); } | testSimple |
7,108 | void () { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.ToggleBoldAction"); checkResultByFile(getTestName(true) + "_after.md"); } | doTest |
7,109 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/toggleBold/"; } | getTestDataPath |
7,110 | void () { doTest(); } | testSimple |
7,111 | void () { doTest(); } | testSimpleNoSelection |
7,112 | void () { doTest(); } | testMultiCaretWordsOn |
7,113 | void () { doTest(); } | testMultiCaretWordsOff |
7,114 | void () { doTest(); } | testPartOfWordOn |
7,115 | void () { doTest(); } | testPartiallyOff |
7,116 | void () { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.ToggleItalicAction"); checkResultByFile(getTestName(true) + "_after.md"); } | doTest |
7,117 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/toggleItalic/"; } | getTestDataPath |
7,118 | void () { doTest(); } | testSimple |
7,119 | void () { doTest(); } | testSurroundCodeWithBackticks |
7,120 | void () { doTest(); } | testSurroundCodeWithBackticksCancel |
7,121 | void () { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.ToggleCodeSpanAction"); checkResultByFile(getTestName(true) + "_after.md"); } | doTest |
7,122 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/toggleCodeSpan/"; } | getTestDataPath |
7,123 | void () { doTest(); } | testAutoLink |
7,124 | void () { doTest(); } | testGfmAutoLink |
7,125 | void () { doTest(); } | testInlineLink |
7,126 | void () { doTest(); } | testInlineLinkInList |
7,127 | void () { doTest(); } | testInlineLinkNoTitle |
7,128 | void () { doTest(); } | testLarge |
7,129 | void () { doTest(); } | testComplexLinkText |
7,130 | void () { doTest(); } | testComplexTitle |
7,131 | void () { doTest(); } | testDuplicateGfm |
7,132 | void () { doTest(); } | testDuplicateAutoLink |
7,133 | void () { doTest(); } | testDuplicateInlineLink |
7,134 | void () { doTest(); } | testSameTitles |
7,135 | void () { doTest(); } | testDifferentTitles |
7,136 | void () { configureByFile(getTestName(true) + "_before.md"); executeAction("org.intellij.plugins.markdown.ui.actions.styling.MarkdownIntroduceLinkReferenceAction"); checkResultByFile(getTestName(true) + "_after.md"); } | doTest |
7,137 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/link/"; } | getTestDataPath |
7,138 | TestSuite () { return new MarkdownHeaderUpTestSuite(); } | suite |
7,139 | TestSuite () { return new MarkdownHeaderDownTestSuite(); } | suite |
7,140 | String () { return "test_" + testFile.getName(); } | getName |
7,141 | void (@NotNull ThrowableRunnable<Throwable> testRunnable) { configureByFile(testFile.getName()); final var editor = getEditor(); CommandProcessor.getInstance().executeCommand( getProject(), () -> EditorTestUtil.executeAction(editor, actionId, false), "", null, editor.getDocument() ); checkResultByFile(dataName + "/" + StringUtil.substringBefore(testFile.getName(), "_before.md") + "_after.md"); } | runTestRunnable |
7,142 | String () { return testDataPath; } | getTestDataPath |
7,143 | String () { return "MarkdownHeaderTest"; } | getName |
7,144 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/actions/headers/"; } | getHeadersTestData |
7,145 | void () { doTest(); } | testOrderedList |
7,146 | void () { doTest(); } | testUnorderedList |
7,147 | void () { doTest(); } | testComplexOrderedList |
7,148 | void () { doTest(); } | testComplexUnorderedList |
7,149 | void () { doTest(); } | testSingleLineOrderedList |
7,150 | void () { doTest(); } | testSingleLineUnorderedList |
7,151 | void () { doTest(); } | testUnorderedSublist |
7,152 | void () { doTest(); } | testTable |
7,153 | void () { doTest(); } | testCodeFence |
7,154 | void () { doTest(); } | testBlockQuote |
7,155 | void () { doTest(); } | testSingleHeader |
7,156 | void () { doTest(); } | testLongHeader |
7,157 | void () { doTest(); } | testMultipleHeaders |
7,158 | void () { doTest(); } | testListMultiLineItem |
7,159 | void () { doTest(); } | testSingleLineParagraph |
7,160 | void () { doTest(); } | testSimpleHeadersStructure |
7,161 | void () { doTest(); } | testHeadersTree |
7,162 | void () { doTest(); } | testIrregularHeadersStructure |
7,163 | void () { doTest(); } | testMultiLineParagraph |
7,164 | void () { doTest(); } | testMultiLineQuoteParagraph |
7,165 | void () { doTest(); } | testMultiParagraphListItem |
7,166 | void () { doTest(); } | testTwoMultiLineParagraphs |
7,167 | void () { doTest(); } | testTwoMultiLineQuoteParagraphs |
7,168 | void () { doTest(); } | testLinkDestinations |
7,169 | void () { doTest(); } | testTableOfContents |
7,170 | void () { doTest(); } | testFrontMatter |
7,171 | void () { myFixture.testFolding(getTestDataPath() + "/" + getTestName(true) + ".md"); } | doTest |
7,172 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/folding"; } | getTestDataPath |
7,173 | void () { ((IntentionManagerImpl)IntentionManager.getInstance()) .withDisabledIntentions(() -> myFixture.testHighlighting(false, false, true, getTestName(true) + ".md")); } | testAll |
7,174 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/spellchecker/"; } | getTestDataPath |
7,175 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/reference/linkDestination/"; } | getTestDataPath |
7,176 | void () { final PsiFile file = myFixture.getFile(); final String fileText = file.getText(); final int linkTitle = fileText.indexOf("[" + getTestName(true) + "]"); assertTrue(linkTitle >= 0); final int app = fileText.indexOf("app", linkTitle); assertTrue(app >= 0); assertGoodReference(file, app); final int foo = fileText.indexOf("foo", app); assertTrue(foo >= 0); assertGoodReference(file, foo); } | doTest |
7,177 | void (PsiFile file, int app) { final PsiReference reference = file.findReferenceAt(app); assertNotNull(reference); if (reference instanceof PsiPolyVariantReference) { assertTrue(((PsiPolyVariantReference)reference).multiResolve(false).length > 0); } else { assertNotNull(reference.resolve()); } if (LOGGER.isDebugEnabled()) { LOGGER.info(String.valueOf(reference.resolve().getClass())); } } | assertGoodReference |
7,178 | void () { doTest(); } | testRef |
7,179 | void () { doTest(); } | testRefBrack |
7,180 | void () { doTest(); } | testLink |
7,181 | void () { doTest(); } | testLinkBrack |
7,182 | void () { final PsiReference reference = myFixture.getReferenceAtCaretPosition("trailingSlashUrl.md"); assertNotNull(reference); // there are two reference providers adding same WebReference (AutoLinkWebReferenceContributor + CommonLinkDestinationReferenceContributor) for (PsiReference unwrappedRef : PsiReferenceUtil.unwrapMultiReference(reference)) { assertTrue((unwrappedRef.resolve()) instanceof FakePsiElement); } } | testTrailingSlashUrl |
7,183 | void () { doTest("[//]: #a (todo comment)", 1); } | testTodo |
7,184 | void () { doTest("[//]: # (todo comment)", 1); } | testTodoNoLink |
7,185 | void () { doTest("[//]: #a (todo todo comment)", 1); } | testTodoTodoPosition |
7,186 | void () { doTest("[//]: #a (a todo comment)", 1); } | testTodoStartPosition |
7,187 | void () { doTest("[url](todo comment)", 0); } | testLinkNotTodo |
7,188 | void () { doTest("[foo]: /url \"todo comment\"", 0); } | testLinkReferenceDefinition |
7,189 | void () { doTest("todo comment", 0); } | testTodoInNotALinkPosition |
7,190 | void (@NotNull String text, int expectedTodos) { myFixture.configureByText(MarkdownFileType.INSTANCE, text); assertEquals(expectedTodos, PsiTodoSearchHelper.getInstance(getProject()).findTodoItems(myFixture.getFile()).length); } | doTest |
7,191 | void () { TodoConfiguration todo = TodoConfiguration.getInstance(); TodoPattern[] oldPatterns = todo.getTodoPatterns(); try { todo.setTodoPatterns(new TodoPattern[]{new TodoPattern("\\btodo comment\\b.*", TodoAttributesUtil.createDefault(), false)}); PlatformTestUtil.dispatchAllEventsInIdeEventQueue(); doTest("[//]: #s (todo comment)", 1); } finally { todo.setTodoPatterns(oldPatterns); } } | testCustomTodo |
7,192 | void () { doTest('(', "<caret>abc", "(abc"); } | testParenBeforeIdentifier |
7,193 | void () { doTest('(', "<caret> abc", "() abc"); } | testParenBeforeWhiteSpace |
7,194 | void () { doTest('(', "<caret>\nabc", "()\n" + "abc"); } | testParenBeforeNewLine |
7,195 | void () { doTest('(', "<caret>", "()"); } | testParenAtTheEnd |
7,196 | void () { doTest('[', "<caret> abc", "[] abc"); } | testBracket |
7,197 | void () { boolean oldSettings = CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED; try { CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED = true; doTest('[', "<caret><selection>abc</selection>", "[abc]"); } finally { CodeInsightSettings.getInstance().SURROUND_SELECTION_ON_QUOTE_TYPED = oldSettings; } } | testBracketWithSelection |
7,198 | void (char braceToInsert, @NotNull String text, @NotNull String expectedText) { myFixture.configureByText(MarkdownFileType.INSTANCE, text); myFixture.type(braceToInsert); myFixture.checkResult(expectedText); } | doTest |
7,199 | String () { return MarkdownTestingUtil.TEST_DATA_PATH + "/wrap"; } | getTestDataPath |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.