mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
WEB-53640 Fix behaviour in non-HTML5 documents, remove Link.Rev test
GitOrigin-RevId: 40df6dd0ae7a1ab26e2b0ab45de2c6ad15fdd3f9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
57f37e2794
commit
040ba9c1c8
2
plugins/htmltools/testData/completion/14a.html
Normal file
2
plugins/htmltools/testData/completion/14a.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE HTML>
|
||||
<form enctype="<caret>"/>
|
||||
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rev="styl<caret>">
|
||||
</head>
|
||||
</html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rev="stylesheet<caret>">
|
||||
</head>
|
||||
</html>
|
||||
@@ -36,6 +36,7 @@ import com.intellij.xml.util.XmlUtil;
|
||||
import junit.framework.Assert;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings({"ALL"})
|
||||
@@ -110,6 +111,7 @@ public class HtmlCompletionTest extends BasePlatformTestCase {
|
||||
|
||||
public void testHtmlCompletion() throws Exception {
|
||||
CamelHumpMatcher.forceStartMatching(myFixture.getTestRootDisposable());
|
||||
|
||||
configureByFile("/1.html");
|
||||
checkResultByFile("/1_after.html");
|
||||
|
||||
@@ -152,6 +154,13 @@ public class HtmlCompletionTest extends BasePlatformTestCase {
|
||||
configureByFile("/14.html");
|
||||
checkResultByFile("/14_after.html");
|
||||
|
||||
ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx();
|
||||
manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject());
|
||||
configureByFile("/14a.html");
|
||||
myFixture.completeBasic();
|
||||
assertEquals(Arrays.asList("application/x-www-form-urlencoded", "multipart/form-data", "text/plain"), myFixture.getLookupElementStrings());
|
||||
manager.setDefaultHtmlDoctype(XmlUtil.XHTML_URI, getProject());
|
||||
|
||||
configureByFile("/Link.Rel.html");
|
||||
checkResultByFile("/Link.Rel_after.html");
|
||||
|
||||
@@ -159,9 +168,6 @@ public class HtmlCompletionTest extends BasePlatformTestCase {
|
||||
myFixture.type('\n');
|
||||
checkResultByFile("/Link.Type_after.html");
|
||||
|
||||
configureByFile("/Link.Rev.html");
|
||||
checkResultByFile("/Link.Rev_after.html");
|
||||
|
||||
configureByFile("/Link.Media.html");
|
||||
checkResultByFile("/Link.Media_after.html");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user