diff --git a/plugins/xpath/xpath-lang/test/org/intellij/lang/xpath/xslt/XsltHighlightingTest.java b/plugins/xpath/xpath-lang/test/org/intellij/lang/xpath/xslt/XsltHighlightingTest.java index 9b003072ccca..2db116f6d1be 100644 --- a/plugins/xpath/xpath-lang/test/org/intellij/lang/xpath/xslt/XsltHighlightingTest.java +++ b/plugins/xpath/xpath-lang/test/org/intellij/lang/xpath/xslt/XsltHighlightingTest.java @@ -15,6 +15,8 @@ */ package org.intellij.lang.xpath.xslt; +import com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection; +import com.intellij.javaee.ExternalResourceManagerEx; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Computable; @@ -34,6 +36,7 @@ public class XsltHighlightingTest extends TestBase { protected void setUp() throws Exception { super.setUp(); myFixture.enableInspections(XsltStuffProvider.INSPECTION_CLASSES); + ExternalResourceManagerEx.getInstanceEx().addIgnoredResource("urn:my"); } public void xtestBackwardIncludedVariable() throws Throwable { @@ -112,6 +115,11 @@ public class XsltHighlightingTest extends TestBase { doXsltHighlighting(); } + public void testTemplateWithPrefix() throws Throwable { + myFixture.enableInspections(XmlUnusedNamespaceInspection.class); + doXsltHighlighting(); + } + public void xtestPerformance() throws Throwable { myFixture.configureByFile(getTestFileName() + ".xsl"); final long l = runHighlighting(); diff --git a/plugins/xpath/xpath-lang/testData/xslt/highlighting/templateWithPrefix.xsl b/plugins/xpath/xpath-lang/testData/xslt/highlighting/templateWithPrefix.xsl new file mode 100644 index 000000000000..f7db1f52d7b7 --- /dev/null +++ b/plugins/xpath/xpath-lang/testData/xslt/highlighting/templateWithPrefix.xsl @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file