remove some common-prefix-based assertions in xml tests

This commit is contained in:
peter
2012-11-29 13:18:34 +01:00
parent 73ffd878be
commit e54c0114e3
5 changed files with 20 additions and 6 deletions
@@ -134,6 +134,7 @@ public class XmlCompletionTest extends LightCodeInsightFixtureTestCase {
configureByFiles("36_3.xml");
complete();
myFixture.type('\n');
checkResultByFile("36_3_after.xml");
}
@@ -424,8 +425,20 @@ public class XmlCompletionTest extends LightCodeInsightFixtureTestCase {
public void testDoNotSuggestTagsFromOtherNsInXslt() throws Exception {
basicDoTest("");
basicDoTest("_2");
basicDoTest("_3");
}
public void testDoNotSuggestTagsFromOtherNsInXslt_2() throws Exception {
final String testName = getTestName(false);
configureByFile(testName + ".xml");
myFixture.type('\n');
checkResultByFile(testName + "_after.xml");
}
public void testDoNotSuggestTagsFromOtherNsInXslt_3() throws Exception {
final String testName = getTestName(false);
configureByFile(testName + ".xml");
myFixture.type('\n');
checkResultByFile(testName + "_after.xml");
}
public void testDoNotSuggestTagsInXHtml() throws Exception {
@@ -440,6 +453,7 @@ public class XmlCompletionTest extends LightCodeInsightFixtureTestCase {
public void testCompleteWithSubstitutionGroup() throws Exception {
configureByFiles(getTestName(false) + ".xml", "mule.xsd", "mule-management.xsd");
complete();
myFixture.type('\n');
checkResultByFile(getTestName(false) + "_after.xml");
}
+1 -1
View File
@@ -10,6 +10,6 @@
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd">
<util:list id="list1">
<util:<caret>
<util:constant static-field=""<caret>
</util:list>
</beans>
@@ -8,5 +8,5 @@
http://www.mulesource.org/schema/mule/management/2.0 mule-management.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<management:<caret>
<management:chainsaw-notifications chainsawHost="" chainsawPort=""<caret>
</mule>
@@ -5,7 +5,7 @@
<xsl:template match="/*">
<taglib>
<xsl:if test="@version">
<tlib-version><xsl:apply-<caret></tlib-version>
<tlib-version><xsl:apply-imports/><caret></tlib-version>
</xsl:if>
</taglib>
</xsl:template>
@@ -5,7 +5,7 @@
<xsl:template match="/*">
<taglib>
<xsl:if test="@version">
<tlib-version><xsl:apply-<caret></tlib-version>
<tlib-version><xsl:apply-imports/><caret></tlib-version>
</xsl:if>
</taglib>
</xsl:template>