test fixed

This commit is contained in:
Dmitry Avdeev
2011-11-16 15:11:04 +04:00
parent 675eb7d07f
commit 4ae2366435
@@ -152,7 +152,9 @@ public class CreateNSDeclarationIntentionFix implements HintAction, LocalQuickFi
} else {
prefix = ExtendedTagInsertHandler.suggestPrefix(xmlFile, namespace);
if (StringUtil.isEmpty(prefix)) {
HintManager.getInstance().showInformationHint(editor, "Namespace not found");
if (!ApplicationManager.getApplication().isUnitTestMode()) {
HintManager.getInstance().showInformationHint(editor, "Namespace not found");
}
return;
}
ExtendedTagInsertHandler.qualifyWithPrefix(prefix, myElement);