mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
WEB-15620 Custom html attributes and elements are added lowercase only
GitOrigin-RevId: 9051538795501005b181af53e9e5db4061544c92
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b0e5d3bec8
commit
c9ef2330da
@@ -1 +1 @@
|
||||
<div zzz="<caret>"
|
||||
<div zZz="<caret>"
|
||||
@@ -1 +1 @@
|
||||
<aaa zzz="<caret>"
|
||||
<aaa zZz="<caret>"
|
||||
@@ -1,3 +1,3 @@
|
||||
<div>
|
||||
<zzz><caret></zzz>
|
||||
<zZz><caret></zZz>
|
||||
</div>
|
||||
@@ -1 +1 @@
|
||||
<zzz<caret>
|
||||
<zZz<caret>
|
||||
@@ -1,2 +1,3 @@
|
||||
<<symbolName descr="Custom tag name">custom-tag</symbolName>>hello</<symbolName descr="Custom tag name">custom-tag</symbolName>>
|
||||
<<symbolName descr="Custom tag name">custom2-tag</symbolName>>hello</<symbolName descr="Custom tag name">custom2-tag</symbolName>>
|
||||
<custom-utag>hello</custom-utag>
|
||||
@@ -338,12 +338,8 @@ public class HtmlCompletionTest extends BasePlatformTestCase {
|
||||
|
||||
public void testAdditionalHtmlTagsInsertedByCompletion() throws Exception {
|
||||
final HtmlUnknownTagInspection inspection = new HtmlUnknownTagInspection();
|
||||
String additionalEntries = inspection.getAdditionalEntries();
|
||||
if (additionalEntries.length() > 0) {
|
||||
additionalEntries += ",";
|
||||
}
|
||||
|
||||
inspection.updateAdditionalEntries(additionalEntries + "zzz");
|
||||
inspection.updateAdditionalEntries("zZz", getTestRootDisposable());
|
||||
|
||||
doTestWithHtmlInspectionEnabled("", inspection);
|
||||
doTestWithHtmlInspectionEnabled("2", inspection);
|
||||
@@ -351,12 +347,8 @@ public class HtmlCompletionTest extends BasePlatformTestCase {
|
||||
|
||||
public void testAdditionalHtmlAttributesInsertedByCompletion() throws Exception {
|
||||
final HtmlUnknownAttributeInspection inspection = new HtmlUnknownAttributeInspection();
|
||||
String additionalEntries = inspection.getAdditionalEntries();
|
||||
if (additionalEntries.length() > 0) {
|
||||
additionalEntries += ",";
|
||||
}
|
||||
|
||||
inspection.updateAdditionalEntries(additionalEntries + "zzz");
|
||||
inspection.updateAdditionalEntries("zZz", getTestRootDisposable());
|
||||
|
||||
doTestWithHtmlInspectionEnabled("2", inspection);
|
||||
doTestWithHtmlInspectionEnabled("", inspection);
|
||||
|
||||
@@ -855,18 +855,12 @@ public class HtmlHighlightingTest extends BasePlatformTestCase {
|
||||
|
||||
public void testCustomTagHighlighting() {
|
||||
HtmlUnknownTagInspection inspection = new HtmlUnknownTagInspection();
|
||||
String before = inspection.getAdditionalEntries();
|
||||
inspection.updateAdditionalEntries("custom-tag,custom2-tag");
|
||||
try {
|
||||
myFixture.enableInspections(inspection);
|
||||
inspection.updateAdditionalEntries("custom-tag,custom2-TAG", getTestRootDisposable());
|
||||
myFixture.enableInspections(inspection);
|
||||
|
||||
HighlightTestInfo info = myFixture.testFile(getTestName(false) + ".html");
|
||||
info.checkSymbolNames();
|
||||
info.test();
|
||||
}
|
||||
finally {
|
||||
inspection.updateAdditionalEntries(before);
|
||||
}
|
||||
HighlightTestInfo info = myFixture.testFile(getTestName(false) + ".html");
|
||||
info.checkSymbolNames();
|
||||
info.test();
|
||||
}
|
||||
|
||||
private void doTestWebLinks(boolean startTestingLocalServer) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user