Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
300,200 | void () { doOneTest("dtd.dtd", "foo", false, true, "web-app_2_4.xsd"); doOneTest("dtd.xml", "foo", false, true, "web-app_2_4.xsd"); } | testDtdDoc |
300,201 | void (String fileName, String lookupObject, String... additional) { copyAdditionalFiles(additional); doOneTest(fileName, lookupObject, false, true, "web-app_2_4.xsd"); } | doOneTest |
300,202 | void (String[] additional) { for (String file : additional) { myFixture.copyFileToProject(file); } } | copyAdditionalFiles |
300,203 | void (String fileName, String lookupObject, boolean testExternal, boolean testForElementUnderCaret, String... additional) { copyAdditionalFiles(additional); final DocumentationTestContext context = new DocumentationTestContext(fileName); if (testForElementUnderCaret) { assertNotNull("inline help for " + fileName, context.generateDoc()); if (testExternal) { assertNotNull("external help", context.documentationProvider.getUrlFor(context.element, context.originalElement)); } } if (lookupObject != null) { PsiElement docElement = context.documentationProvider.getDocumentationElementForLookupItem( context.psiFile.getManager(), lookupObject, context.originalElement); assertNotNull("no element for " + fileName, docElement); assertNotNull("inline help for lookup", context.documentationProvider.generateDoc(docElement, context.originalElement)); if (testExternal) { assertNotNull("external help for lookup", context.documentationProvider.getUrlFor(docElement, context.originalElement)); } } } | doOneTest |
300,204 | String () { return PlatformTestUtil.getCommunityPath() + "/xml/tests/testData/documentation/"; } | getTestDataPath |
300,205 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,206 | void () { doTest(); } | testXml1 |
300,207 | void () { doTest(); } | testXml2 |
300,208 | void () { doTest(); } | testXml3 |
300,209 | void () { getLanguageSettings(XMLLanguage.INSTANCE).LINE_COMMENT_AT_FIRST_COLUMN = false; doTest(); } | testXml4 |
300,210 | void () { getLanguageSettings(XMLLanguage.INSTANCE).LINE_COMMENT_AT_FIRST_COLUMN = false; doTest(); } | testXml5 |
300,211 | void () { doTest(); } | testXml6 |
300,212 | void () { doTest(); } | testXml7 |
300,213 | void () { doTest(); } | testXml8 |
300,214 | void () { doTest(); } | testXml9 |
300,215 | void () { // this is a feature doTest(); } | testXml10 |
300,216 | void () { doTest(); } | testXml11 |
300,217 | void () { doInvertedTest(1); } | testXml_DoubleDash |
300,218 | void () { doTest(); } | testXml_SingleDash |
300,219 | void () { doTest(); } | testXml_SingleDashWithSpace |
300,220 | void () { doTest(); } | testXml_OtherLine |
300,221 | void () { doTest(); } | testHtml1 |
300,222 | void () { doTest(); } | testHtml2 |
300,223 | void () { doTest(); } | testHtml3 |
300,224 | void () { getLanguageSettings(HTMLLanguage.INSTANCE).LINE_COMMENT_AT_FIRST_COLUMN = false; doTest(); } | testHtml4 |
300,225 | void () { getLanguageSettings(HTMLLanguage.INSTANCE).LINE_COMMENT_AT_FIRST_COLUMN = false; doTest(); } | testHtml5 |
300,226 | void () { doTest(); } | testHtml6 |
300,227 | void () { doTest(); } | testHtml7 |
300,228 | void () { doTest(); } | testHtml8 |
300,229 | void () { doTest(); } | testHtml9 |
300,230 | void () { doTest(); } | testHtml10 |
300,231 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,232 | void () { String path = "/codeInsight/enterAction/xml/"; configureByFile(path + "state0.xml"); performAction(); checkResultByFile(path + "state1.xml"); } | testInXml1 |
300,233 | void () { String path = "/codeInsight/enterAction/xml/"; configureByFile(path + "state2.xml"); performAction(); PsiDocumentManager.getInstance(getProject()).commitDocument(getEditor().getDocument()); assertEquals(getFile().getText(), getEditor().getDocument().getText()); //checkResultByFile(path + "state3.xml"); } | testInXml2 |
300,234 | void () { String path = "/codeInsight/enterAction/xml/"; configureByFile(path + "state4.xml"); performAction(); PsiDocumentManager.getInstance(getProject()).commitDocument(getEditor().getDocument()); assertEquals(getFile().getText(), getEditor().getDocument().getText()); // checkResultByFile(path + "state5.xml"); } | testInXml3 |
300,235 | void () { getCodeStyleSettings().getCustomSettings(XmlCodeStyleSettings.class).XML_ALIGN_ATTRIBUTES = true; String path = "/codeInsight/enterAction/xml/"; configureByFile(path + "before1.xml"); performAction(); checkResultByFile(path + "after1.xml"); } | testInXml4 |
300,236 | void () { configureByFile("/codeInsight/enterAction/indent/XmlInfiniteLoop.xml"); performAction(); } | testIndentInXmlInfiniteLoop |
300,237 | void () { configureByFile("/codeInsight/enterAction/SCR19905.xml"); performAction(); assertEquals(getEditor().getDocument().getText(), getFile().getText()); } | testSCR19905 |
300,238 | void () { configureByFile("/codeInsight/enterAction/html/1.html"); performAction(); checkResultByFile(null, "/codeInsight/enterAction/html/1_after.html", false); } | testHtml1 |
300,239 | void () { configureByFile("/codeInsight/enterAction/html/2.html"); performAction(); checkResultByFile(null, "/codeInsight/enterAction/html/2_after.html", false); } | testHtml2 |
300,240 | void () { doTextTest("xml", """ <a> <b/><caret> <b/> </a>""", """ <a> <b/> <caret> <b/> </a>"""); } | testBeginOfTag |
300,241 | void () { doTextTest("xml", "<!--\n" + "TODO<caret>-->", """ <!-- TODO <caret>-->"""); } | testAssertionInXml |
300,242 | void () { doTextTest("xml", "<a>\n" + " <b><caret>", """ <a> <b> <caret>"""); } | testEnterAtTheEndOfFile |
300,243 | void () { doTextTest("html", """ <form action="dsd"> <input type="text"> <input type="password"> <input type="submit"><caret></form>""", """ <form action="dsd"> <input type="text"> <input type="password"> <input type="submit"> </form>"""); } | testEnterAfterEmptyTag |
300,244 | void () { doTextTest( "html", "<!doctype html><caret>", "<!doctype html>\n" + "<caret>" ); } | testWeb6656 |
300,245 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,246 | void () { doSurroundWithTagTest("html"); } | testHtml |
300,247 | void () { doSurroundWithTagTest("html"); } | testHtml2 |
300,248 | void () { doSurroundWithTagTest("html"); } | testHtml3 |
300,249 | void () { doHtmlSurroundWithTagViaSurroundPopup("p"); } | testHtml4 |
300,250 | void () { doHtmlSurroundWithTagViaSurroundPopup("div"); } | testHtml5 |
300,251 | void () { doSurroundWithTagTest("xml"); } | testXml |
300,252 | void () { doSurroundWithCDataTest("xml"); } | testXml2 |
300,253 | void () { doSurroundWithTagTest("xml"); } | testXml3 |
300,254 | void () { doSurroundWithCDataTest("xml"); } | testMultiCaretSurroundWithCData |
300,255 | void () { myFixture.configureByFile(BASE_PATH + "tag/Xml.xml"); AnAction firstAction = SurroundWithTemplateHandler.createActionGroup(myFixture.getEditor(), myFixture.getFile(), new HashSet<>()).get(0); assertInstanceOf(firstAction, InvokeTemplateAction.class); TemplateImpl template = ((InvokeTemplateAction)firstAction).getTemplate(); assertEquals("T", template.getKey()); } | testSurroundWithTagFirstElement |
300,256 | void (String tag) { String baseName = getBaseName("tag"); myFixture.configureByFile(baseName + ".html"); List<AnAction> actions = SurroundWithHandler.buildSurroundActions(getProject(), myFixture.getEditor(), myFixture.getFile(), null); Optional<InvokeTemplateAction> surroundWithTagAction = actions.stream() .filter(it -> it instanceof InvokeTemplateAction) .map(it -> (InvokeTemplateAction) it) .filter(it -> it.getTemplateText().toLowerCase(Locale.ROOT).contains("surround with <tag>")) .findFirst(); assertTrue(surroundWithTagAction.isPresent()); surroundWithTagAction.get().perform(); myFixture.type(tag); myFixture.checkResultByFile(baseName + "_after.html"); } | doHtmlSurroundWithTagViaSurroundPopup |
300,257 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,258 | void () { String path = "/codeInsight/splitLineAction/"; configureByFile(path + "SCR506_before.html"); performAction(); checkResultByFile(path + "SCR506_after.html"); } | testAtTheBeginOfLine |
300,259 | void () { EditorActionManager actionManager = EditorActionManager.getInstance(); EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_SPLIT); actionHandler.execute(getEditor(), null, DataManager.getInstance().getDataContext()); } | performAction |
300,260 | String () { return "/wrongClosingTagName"; } | getBasePath |
300,261 | String () { return PlatformTestUtil.getCommunityPath().replace(File.separatorChar, '/') + "/xml/tests/testData/inspections"; } | getTestDataPath |
300,262 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,263 | void () { String basePath = "/codeInsight/generateDTD/"; configureByFile(basePath + "before1.xml"); performAction(); checkResultByFile(basePath + "after1.xml"); configureByFile(basePath + "before2.xml"); performAction(); checkResultByFile(basePath + "after2.xml"); } | test |
300,264 | void () { ActionManager actionManager = ActionManager.getInstance(); AnAction action = actionManager.getAction("GenerateDTD"); action.actionPerformed(AnActionEvent.createFromAnAction(action, null, "", DataManager.getInstance().getDataContext())); } | performAction |
300,265 | void () { myFixture.configureByFile("softWrap.html"); EditorTestUtil.configureSoftWraps(((EditorWindow)myFixture.getEditor()).getDelegate(), 83); myFixture.type('j'); myFixture.checkResultByFile("softWrap_after.html"); } | testSoftWrapInInjection |
300,266 | String () { return "/xml/tests/testData/softWrap"; } | getBasePath |
300,267 | boolean () { return true; } | isCommunity |
300,268 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,269 | void () { doTest(); } | testQuoteInXml |
300,270 | void () { doTest(); } | testQuoteInXml2 |
300,271 | void () { @NonNls String path = "/codeInsight/backspace/"; configureByFile(path + getTestName(false) + ".xml"); backspace(); checkResultByFile(path + getTestName(false) + "_after.xml"); } | doTest |
300,272 | void () { final XmlTag tag = XmlElementFactory.getInstance(getProject()).createTagFromText("<b>\n0123456</b>"); final XmlText text = (XmlText) tag.getValue().getChildren()[0]; String textS = text.getText(); ApplicationManager.getApplication().runWriteAction(() -> text.insertText("lala", 2)); XmlText text2 = (XmlText)tag.getValue().getChildren()[0]; assertEquals(textS.substring(0, 2) + "lala" + textS.substring(2), text2.getText()); } | test3 |
300,273 | String () { return XmlTestUtil.getXmlTestDataPath(); } | getTestDataPath |
300,274 | void () { doTest("html"); } | testHtml1 |
300,275 | void () { doTest("html"); } | testHtml2 |
300,276 | void () { doTest("html"); } | testHtml3 |
300,277 | void () { doTest("html"); } | testHtml4 |
300,278 | void () { doTest("html"); } | testHtml5 |
300,279 | void () { doTest("html"); } | testHtml6 |
300,280 | void () { doTest("html"); } | testHtml7 |
300,281 | void () { doTest("html"); } | testHtml8 |
300,282 | void () { doTest("html"); } | testHtml9 |
300,283 | void () { doTest("html"); } | testHtml10 |
300,284 | void () { doTest("html"); } | testHtml11 |
300,285 | void () { doTest("html"); } | testHtml12 |
300,286 | void () { doTest("html"); } | testHtml13 |
300,287 | void () { doTest("html"); } | testHtml14 |
300,288 | void () { doTest("html"); } | testSelectPathInStringLiteral |
300,289 | void () { doTest("html"); } | testSelectPathBeforeStringLiteral |
300,290 | void () { doTest("xml"); } | testXml1 |
300,291 | void () { doTest("xml"); } | testXml11 |
300,292 | void () { doTest("xml"); } | testXml2 |
300,293 | void () { doTest("dtd"); } | testDtd |
300,294 | void () { doTest("dtd"); } | testDtd1 |
300,295 | void () { doTest("xml"); } | testXml3 |
300,296 | void () { doTest("xml"); } | testXmlStartLine |
300,297 | void () { doTest("xml"); } | testXmlCommentAboveTag |
300,298 | void () { String s1 = "<a>"; String s2 = "</a>"; prepareFile(s1, s2); final String beforeReparse = DebugUtil.treeToString(((XmlFileImpl)myDummyFile).getTreeElement(), false); insert(""); assertEquals("Tree changed after empty reparse", beforeReparse, DebugUtil.treeToString(((XmlFileImpl)myDummyFile).getTreeElement(), false)); } | test1 |
300,299 | void () { String s1 = "<a>"; String s2 = "</a>"; prepareFile(s1, s2); insert("x"); insert(" "); insert("xxxxx"); insert("\n"); insert("xxxxx"); } | testTagData1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.