mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-143193 Wrong popup info for not registered URI
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ public class ReferenceInjectionTest extends LightCodeInsightFixtureTestCase {
|
||||
assertTrue(new UnInjectLanguageAction().isAvailable(getProject(), myFixture.getEditor(), myFixture.getFile()));
|
||||
|
||||
myFixture.configureByText("bar.xml",
|
||||
"<foo xmlns=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://foo.bar</error>\" \n" +
|
||||
"<foo xmlns=\"<error descr=\"URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)\">http://foo.bar</error>\" \n" +
|
||||
" xxx=\"<error descr=\"Cannot resolve file 'bar'\">b<caret>ar</error>\"/>");
|
||||
myFixture.testHighlighting();
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
<error descr="Attribute 'max' not used anymore">max="deprecated"</error>
|
||||
/>
|
||||
|
||||
<extensions <error descr="Use defaultExtensionNs instead">xmlns="<error descr="URI is not registered (Settings | Project Settings | Schemas and DTDs)">com.intellij</error>"</error>/>
|
||||
<extensions <error descr="Use defaultExtensionNs instead">xmlns="<error descr="URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)">com.intellij</error>"</error>/>
|
||||
|
||||
</idea-plugin>
|
||||
@@ -166,7 +166,7 @@ public class XmlNamespacesTest extends LightCodeInsightFixtureTestCase {
|
||||
|
||||
public void testPrefixesInTagValues() throws Exception {
|
||||
myFixture.configureByText("a.xml",
|
||||
"<<info descr=\"Namespace '' is not bound\">nodeTypes</info> xmlns:nt=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://www.jcp.org/jcr/nt/1.0</error>\" xmlns:customns=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://customurl</error>\">\n" +
|
||||
"<<info descr=\"Namespace '' is not bound\">nodeTypes</info> xmlns:nt=\"<error descr=\"URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)\">http://www.jcp.org/jcr/nt/1.0</error>\" xmlns:customns=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://customurl</error>\">\n" +
|
||||
"<nodeType name=\"customns:item\" isMixin=\"false\" hasOrderableChildNodes=\"false\">\n" +
|
||||
" <supertypes>\n" +
|
||||
" <supertype>nt:folder</supertype>\n" +
|
||||
@@ -189,12 +189,12 @@ public class XmlNamespacesTest extends LightCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
public void testLocallyUsedNamespaceWithPrefix() throws Exception {
|
||||
myFixture.configureByText("a.xml", "<s:foo xmlns:s=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://foo</error>\"\n" +
|
||||
" <warning descr=\"Namespace declaration is never used\">xmlns:bar=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://bar</error>\"</warning>\n" +
|
||||
myFixture.configureByText("a.xml", "<s:foo xmlns:s=\"<error descr=\"URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)\">http://foo</error>\"\n" +
|
||||
" <warning descr=\"Namespace declaration is never used\">xmlns:bar=\"<error descr=\"URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)\">http://bar</error>\"</warning>\n" +
|
||||
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
|
||||
" xsi:schemaLocation=\"http://bar <error descr=\"Cannot resolve file 'bar.xsd'\">bar.xsd</error> http://foo <error descr=\"Cannot resolve file 'foo.xsd'\">foo.xsd</error>\">\n" +
|
||||
"\n" +
|
||||
" <bar xmlns=\"<error descr=\"URI is not registered (Settings | Project Settings | Schemas and DTDs)\">http://bar</error>\"/>\n" +
|
||||
" <bar xmlns=\"<error descr=\"URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)\">http://bar</error>\"/>\n" +
|
||||
"\n" +
|
||||
"</s:foo>");
|
||||
myFixture.testHighlighting();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<definitions id="definitions"
|
||||
targetNamespace="http://activiti.org/bpmn20"
|
||||
xmlns:activiti="<error descr="URI is not registered (Settings | Project Settings | Schemas and DTDs)">http://activiti.org/bpmn</error>"
|
||||
xmlns:activiti="<error descr="URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)">http://activiti.org/bpmn</error>"
|
||||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
|
||||
|
||||
<process id="financialReport" name="Monthly financial report process">
|
||||
|
||||
@@ -19,8 +19,8 @@ empty.attribute.is.not.allowed=Empty attribute {0} is not allowed
|
||||
duplicate.attribute=Duplicate attribute {0}
|
||||
duplicate.id.reference=Duplicate id reference
|
||||
invalid.id.reference=Invalid id reference
|
||||
uri.is.not.registered=URI is not registered (Settings | Project Settings | Schemas and DTDs)
|
||||
registered.resource.is.not.recognized=Resource registered by this uri is not recognized (Settings | Project Settings | Schemas and DTDs)
|
||||
uri.is.not.registered=URI is not registered (Settings | Languages \\& Frameworks | Schemas and DTDs)
|
||||
registered.resource.is.not.recognized=Resource registered by this uri is not recognized (Settings | Languages \\& Frameworks | Schemas and DTDs)
|
||||
should.have.fixed.value={0} should have fixed value {1}
|
||||
|
||||
#quickfixes
|
||||
|
||||
Reference in New Issue
Block a user