Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
6,900 | void () { configureByFile(BASE_PATH + '/' + getTestName(false) + ".html"); final List<IntentionAction> list = getAvailableActions(); final IntentionAction action = CodeInsightTestUtil.findIntentionByText(list, XmlAnalysisBundle.message("html.quickfix.switch.to.html5")); assertNotNull(action); } | testSwitchToHtml5QuickFix |
6,901 | void () { configureByFile(BASE_PATH + '/' + getTestName(false) + ".html"); final List<IntentionAction> list = getAvailableActions(); final IntentionAction action = CodeInsightTestUtil.findIntentionByText(list, XmlAnalysisBundle.message("html.quickfix.switch.to.html5")); assertNull(action); } | testSwitchToHtml5QuickFix1 |
6,902 | String () { return BASE_PATH; } | getBasePath |
6,903 | String () { return PathManager.getCommunityHomePath() + "/plugins/htmltools/testData/inspections"; } | getTestDataPath |
6,904 | void () { doSingleTest(getTestName(false) + ".html"); } | testInsertDefaultAttribute |
6,905 | void () { final HtmlCodeStyleSettings settings = getHtmlCodeStyleSettings(); final CodeStyleSettings.QuoteStyle oldQuote = settings.HTML_QUOTE_STYLE; try { settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.Single; doSingleTest(getTestName(false) + ".html"); } finally { settings.HTML_QUOTE_STYLE = oldQuote; } } | testDefaultWithChangedQuote |
6,906 | void () { checkInspection("insertRequiredAltInput_before.html", "insertRequiredAltInput_after.html", "alt", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt")); } | testInsertRequiredAltInput |
6,907 | void () { checkInspection("insertRequiredAltArea_before.html", "insertRequiredAltArea_after.html", "alt", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt")); } | testInsertRequiredAltArea |
6,908 | void () { checkInspection("insertRequiredAltImg_before.html", "insertRequiredAltImg_after.html", "alt", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt")); } | testInsertRequiredAltImg |
6,909 | void () { checkInspectionDoesNotExist("insertRequiredAltImg_after.html", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt"), "alt"); } | testInsertRequiredAltImg_noWarning |
6,910 | void () { checkInspectionDoesNotExist("insertRequiredAltImg_after.vue", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt"), "alt"); } | testInsertRequiredAltImgVue_noWarning |
6,911 | void () { checkInspectionDoesNotExist("insertRequiredAltImg_after.js", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "alt"), "alt"); } | testInsertRequiredAltImgJS_noWarning |
6,912 | void () { checkInspection("insertRequiredLang_before.html", "insertRequiredLang_after.html", "lang", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "lang")); checkInspectionDoesNotExist("insertRequiredLang_before.html", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "xml:lang"), "lang"); } | testInsertRequiredLangHtml |
6,913 | void () { checkInspection("insertRequiredLang_before.xhtml", "insertRequiredXmllang_after.xhtml", "lang", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "xml:lang")); } | testInsertRequiredLangXhtml_xmllang |
6,914 | void () { checkInspection("insertRequiredLang_xhtml11_before.xhtml", "insertRequiredLang_xhtml11_after.xhtml", "lang", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "xml:lang")); checkInspectionDoesNotExist("insertRequiredLang_xhtml11_before.xhtml", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "lang"), "lang"); } | testInsertRequiredLangXhtml11 |
6,915 | void () { checkInspection("InsertRequiredTitleElement_before.html", "InsertRequiredTitleElement_after.html", "title", HtmlToolsBundle.message("html.intention.create.sub.element.text", "title")); } | testInsertRequiredTitleElement_html |
6,916 | void () { checkInspection("InsertRequiredTitleElementMixedCase_before.html", "InsertRequiredTitleElementMixedCase_after.html", "title", HtmlToolsBundle.message("html.intention.create.sub.element.text", "title")); } | testInsertRequiredTitleElement_htmlMixedCase |
6,917 | void () { checkInspection("InsertRequiredTitleElement_before.xhtml", "InsertRequiredTitleElement_after.xhtml", "title", HtmlToolsBundle.message("html.intention.create.sub.element.text", "title")); } | testInsertRequiredTitleElement_xhtml |
6,918 | void () { checkInspectionDoesNotExist("InsertRequiredTitleElement_nowarnings.xhtml", HtmlToolsBundle.message("html.intention.create.sub.element.text", "title"), "title"); } | testInsertRequiredTitleElement_nowarnings_xhtml |
6,919 | void () { checkInspectionDoesNotExist("InsertRequiredTitleElement_nowarnings.html", HtmlToolsBundle.message("html.intention.create.sub.element.text", "title"), "title"); } | testInsertRequiredTitleElement_nowarnings_html |
6,920 | void () { checkInspection("InsertRequiredSummary_before.html", "InsertRequiredSummary_after.html", "summary", XmlPsiBundle.message("xml.quickfix.insert.required.attribute.text", "summary")); } | testInsertRequiredSummary |
6,921 | void (String fileNameBefore, String fileNameAfter, String folder, String intention) { configureByFile(BASE_PATH + "/" + folder + "/" + fileNameBefore); final List<IntentionAction> list = getAvailableActions(); final IntentionAction action = CodeInsightTestUtil.findIntentionByPartialText(list, intention); assertNotNull(action); invoke(action); checkResultByFile(BASE_PATH + "/" + folder + "/" + fileNameAfter); } | checkInspection |
6,922 | void (String fileNameBefore, String intention, String folder) { configureByFile(BASE_PATH + "/" + folder + "/" + fileNameBefore); final List<IntentionAction> list = getAvailableActions(); final IntentionAction action = CodeInsightTestUtil.findIntentionByPartialText(list, intention); assertNull(action); } | checkInspectionDoesNotExist |
6,923 | HtmlCodeStyleSettings () { return CodeStyle.getSettings(getProject()).getCustomSettings(HtmlCodeStyleSettings.class); } | getHtmlCodeStyleSettings |
6,924 | String () { return PathManager.getCommunityHomePath() + "/plugins/htmltools/testData/completion/"; } | getTestDataPath |
6,925 | void () { myFixture.testCompletion(getTestName(true) + ".html", getTestName(true) + "_after.html"); } | testHtmlImageWidthCompletionFromDataUri |
6,926 | void () { myFixture.testCompletion(getTestName(true) + ".html", getTestName(true) + "_after.html"); } | testHtmlImageHeightCompletionFromDataUri |
6,927 | LookupImpl () { return (LookupImpl)LookupManager.getActiveLookup(myFixture.getEditor()); } | getActiveLookup |
6,928 | void () { type('b'); type('r'); type(' '); // ((LookupImpl)LookupManager.getActiveLookup(myFixture.getEditor())).hide(); CaretModel caretModel = myFixture.getEditor().getCaretModel(); caretModel.moveToOffset(caretModel.getOffset() + 1); type(' '); } | run |
6,929 | void (char c) { myFixture.type(c); } | type |
6,930 | void (List<String> variants, String... tags) { for (String tag : tags) { assertTrue("Not in list " + tag, variants.remove(tag)); assertFalse("Duplicate " + tag, variants.contains(tag)); } } | checkDuplicates |
6,931 | void (HtmlUnknownElementInspection inspection) { inspection.addEntry(customTag); } | consume |
6,932 | void () { myFixture.testCompletionVariants("/doNotCompleteEmptyAttributeValues.html", "checked"); } | testDoNotCompleteEmptyAttributeValues |
6,933 | void () { myFixture.configureByFile(getTestName(true) + ".html"); myFixture.completeBasic(); assertContainsElements(myFixture.getLookupElementStrings(), "title", "meta"); assertDoesntContain(myFixture.getLookupElementStrings(), "div", "h1"); } | testNoBodyElementsInHead |
6,934 | void () { myFixture.configureByText("foo.html", "<div onmouse<caret>"); final String[] expected = {"onmousemove", "onmouseup", "onmouseout", "onmousedown", "onmouseover"}; myFixture.complete(CompletionType.BASIC, 0); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 1); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 2); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 3); assertSameElements(myFixture.getLookupElementStrings(), expected); } | testAttributesStayOnSecondCompletion |
6,935 | void () { for (Trinity<String, String, String> test : List.of(Trinity.create("<map>|", "area", "|>"), Trinity.create("<head>|", "base", "|>"), Trinity.create("<p>foo|", "br", ">|"), Trinity.create("<table><colgroup>|", "col", "|>"), Trinity.create("|", "embed", "|>"), Trinity.create("<frameset>|", "frame", ">|"), Trinity.create("<p>foo|", "hr", ">|"), Trinity.create("|", "img", " src=\"\"|>"), Trinity.create("|", "input", "|>"), Trinity.create("<head>|", "link", "|>"), Trinity.create("<head>|", "meta", "|>"), Trinity.create("<object>|", "param", " name=\"\" value=\"\"|>"), Trinity.create("<audio>|", "source", "|>"), Trinity.create("<video>|", "track", " src=\"\"|>"), Trinity.create("foo|bar", "wbr", ">|"))) { try { myFixture.configureByText("test.html", "<!doctype html>\n" + test.first.replace("|", "<caret>")); myFixture.type("<"); myFixture.completeBasic(); myFixture.type(test.second + "\n"); myFixture.checkResult("<!doctype html>\n" + test.first.replace("|", "<" + test.second + test.third.replace("|", "<caret>"))); } catch (AssertionError error) { throw (AssertionError)new AssertionError("Failed for " + test.second).initCause(error); } } } | testTagTailCompletion |
6,936 | HtmlCodeStyleSettings () { return CodeStyle.getSettings(myFixture.getProject()) .getCustomSettings(HtmlCodeStyleSettings.class); } | getHtmlSettings |
6,937 | String () { return "testData/codeInsight/daemonCodeAnalyzer/html"; } | getBasePath |
6,938 | void () { myFixture.configureByFiles(getTestName(false) + ".html", "/manual.css"); PlatformTestUtil.startPerformanceTest("HTML Highlighting 2", 5_500, () -> doTest()) .usesAllCPUCores() .warmupIterations(1) .assertTiming(); } | testPerformance2 |
6,939 | void () { myFixture.configureByFiles(getTestName(false) + ".html", "/stylesheet.css"); PlatformTestUtil.startPerformanceTest("HTML Highlighting", 8_000, () -> doTest()) .usesAllCPUCores() .warmupIterations(1) .assertTiming(); } | testPerformance |
6,940 | void () { myFixture.doHighlighting(HighlightSeverity.WARNING); } | doTest |
6,941 | String () { return PathManager.getCommunityHomePath() + "/plugins/htmltools/testData/highlighting"; } | getTestDataPath |
6,942 | void () { doTest(); } | testemptyAttr |
6,943 | void () { doTest(); } | testcaseInAttrValue |
6,944 | void () { doTest(); } | testcaseInTagAndAttr |
6,945 | void () { doTest(); } | testNoEndTag |
6,946 | void () { doTest(); } | testNoEndTag2 |
6,947 | void () { doTest(); } | testAboutScheme |
6,948 | void () { doTest(); } | testIdHtml4 |
6,949 | void () { doTest(); } | testIdHtml4Implicit |
6,950 | void () { doTest(); } | testIdHtml5 |
6,951 | void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { doTest(); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } } | testIdHtml5Implicit |
6,952 | void () { myFixture.configureByFile(getTestName(false) + ".html"); myFixture.checkHighlighting(true, false, true); IntentionAction intention = myFixture.findSingleIntention("Remove extra closing tag"); myFixture.launchAction(intention); myFixture.checkResultByFile(getTestName(false) + "_after.html"); } | testNoEndTag3 |
6,953 | void () { doTest(); } | testNoEndTag4 |
6,954 | void () { doTest(); } | testNsDef |
6,955 | void () { doTest(); } | testExtraEndTag |
6,956 | void () { doTest(); } | testHtmlWithStrictDtd |
6,957 | void () { myFixture.copyDirectoryToProject("html5", "html5"); myFixture.configureByFile("html5/" + getTestName(false) + "." + "html"); myFixture.checkHighlighting(true, false, false); } | testHtml5 |
6,958 | void () { doTest(); } | testHtml5_2 |
6,959 | void () { myFixture.copyDirectoryToProject("html5", "html5"); myFixture.configureByFiles("html5/" + getTestName(false) + "." + "xhtml"); myFixture.checkHighlighting(true, false, false); } | testXhtml5 |
6,960 | void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { myFixture.copyDirectoryToProject("html5", "html5"); myFixture.configureByFiles("html5/" + getTestName(false) + "." + "html"); myFixture.checkHighlighting(true, false, false); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } } | testHtml5_3 |
6,961 | void () { myFixture.enableInspections(new HtmlDeprecatedTagInspection()); doTest(); } | testHtml5_4 |
6,962 | void () { doTest(); } | testSvgAndMathMl |
6,963 | void () { doTest(); } | testSvgAndMathMlNoNs |
6,964 | void () { doTest(); } | testFullSvg |
6,965 | void () { doTest(); } | testRDFa |
6,966 | void () { doTest(); } | testARIA |
6,967 | void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { myFixture.copyDirectoryToProject("html5", "html5"); myFixture.configureByFiles("html5/" + getTestName(false) + "." + "xhtml"); myFixture.checkHighlighting(true, false, false); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } } | testXhtml5_2 |
6,968 | void () { doTest(); } | testHtml5DataAttrs |
6,969 | void () { doTest(); } | testHtml5DataAttrs1 |
6,970 | void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { doTest(); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } } | testHtml5DataAttrs2 |
6,971 | void () { //WEB-5171 doTest(); } | testHtml5Equiv |
6,972 | void () { doTest("xhtml"); } | testXhtml5DataAttrs |
6,973 | void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { doTest("xhtml"); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } } | testXhtml5DataAttrs1 |
6,974 | void () { doTest(); } | testNoRootHtmlAndHeadAndBody |
6,975 | void () { doTest(); } | testNoRootHtmlTag |
6,976 | void () { doTest(); } | testHtmlNoBody |
6,977 | void () { doTest(); } | testHtmlNoHead |
6,978 | void () { doTest(); } | testHtmlNoHeadBody |
6,979 | void () { doTest(); } | testHtml4NoBody |
6,980 | void () { doTest(); } | testHtml4NoHead |
6,981 | void () { doTest(); } | testHtml4NoHeadBody |
6,982 | void () { doTest(); } | testFrameSet |
6,983 | void () { doTest(); } | testIdValidation |
6,984 | void () { doTest(); } | testAnchors |
6,985 | void () { doTest(); } | testBadAnchor |
6,986 | void () { doTest(); } | testLinks |
6,987 | void () { doTest(); } | testJSInOnTags |
6,988 | void () { doTest(); } | testFixedAttributeValues |
6,989 | void () { doTest(); } | testUnknownHrefTarget |
6,990 | void () { HtmlUnknownTargetInspection inspection = new HtmlUnknownTargetInspection(); myFixture.disableInspections(inspection); doTest(); } | testUnknownHrefTarget1 |
6,991 | void () { doTest(); } | testTelAndSmsHrefPrefixes |
6,992 | void () { HtmlUnknownTargetInspection inspection = new HtmlUnknownTargetInspection(); myFixture.disableInspections(inspection); doTest(); } | testXhtmlMobile |
6,993 | void () { myFixture.configureByFile(getTestName(false) + ".html"); myFixture.checkHighlighting(true, true, false); } | testWrongRootElementDoNotValidate |
6,994 | void () { if (HtmlToolsTestsUtil.isCommunityContext()) return; myFixture.configureByFiles("/html file.html", "/Links.html"); myFixture.checkHighlighting(true, true, false); } | testLinksWithSpaces |
6,995 | void () { doTest(); } | testpClosedByBlockElement |
6,996 | void () { doTest("xhtml"); } | testWrongRootElement |
6,997 | void () { myFixture.configureByFile(getTestName(false) + ".html"); WriteCommandAction.runWriteCommandAction(null, () -> { myFixture.getFile().getContainingDirectory().createSubdirectory("aaa"); }); myFixture.checkHighlighting(true, false, false); } | testReferencingDirsWithLinkEndingWithSlash |
6,998 | void () { doTest(); } | testValidationOfSingleTag |
6,999 | void () { doTest(); } | testDocTypeAndRootTagInUpperCase |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.