From c96efa1e900f8efa690e0034cced77909c5e1d31 Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Thu, 10 Apr 2014 13:55:23 +0400 Subject: [PATCH] Disable autopopup in Xhtml --- .../platform-resources/src/META-INF/XmlPlugin.xml | 1 + .../codeInsight/completion/XmlAutopopupTest.java | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/platform/platform-resources/src/META-INF/XmlPlugin.xml b/platform/platform-resources/src/META-INF/XmlPlugin.xml index 0d62124eec94..4481fd8bee26 100644 --- a/platform/platform-resources/src/META-INF/XmlPlugin.xml +++ b/platform/platform-resources/src/META-INF/XmlPlugin.xml @@ -128,6 +128,7 @@ + diff --git a/xml/tests/src/com/intellij/codeInsight/completion/XmlAutopopupTest.java b/xml/tests/src/com/intellij/codeInsight/completion/XmlAutopopupTest.java index b08b95d9d839..0afeea7e2867 100644 --- a/xml/tests/src/com/intellij/codeInsight/completion/XmlAutopopupTest.java +++ b/xml/tests/src/com/intellij/codeInsight/completion/XmlAutopopupTest.java @@ -16,6 +16,7 @@ package com.intellij.codeInsight.completion; import com.intellij.ide.highlighter.HtmlFileType; +import com.intellij.ide.highlighter.XHtmlFileType; import com.intellij.openapi.fileTypes.FileType; public class XmlAutopopupTest extends CompletionAutoPopupTestCase { @@ -27,12 +28,20 @@ public class XmlAutopopupTest extends CompletionAutoPopupTestCase { doTestPopup(HtmlFileType.INSTANCE, "
", "<"); } + public void testDoNotShowPopupInTextXhtml() throws Exception { + doTestNoPopup(XHtmlFileType.INSTANCE, "
", "p"); + } + + public void testAfterTagOpenXhtml() throws Exception { + doTestPopup(XHtmlFileType.INSTANCE, "
", "<"); + } + private void doTestPopup(FileType fileType, String fileText, String typeString) { myFixture.configureByText(fileType, fileText); type(typeString); assertNotNull(getLookup()); } - + private void doTestNoPopup(FileType fileType, String fileText, String typeString) { myFixture.configureByText(fileType, fileText); type(typeString);