diff --git a/plugins/htmltools/testData/highlighting/DeprecatedAttributes.html b/plugins/htmltools/testData/highlighting/DeprecatedAttributes.html index cc4d54c2e5c6..e3a57139f928 100644 --- a/plugins/htmltools/testData/highlighting/DeprecatedAttributes.html +++ b/plugins/htmltools/testData/highlighting/DeprecatedAttributes.html @@ -12,6 +12,6 @@

align="center">Assignment 1

align="left">
charset="Big5" download="">hello - - +onError="Big5"> +onerror="Big5"> \ No newline at end of file diff --git a/xml/tests/src/com/intellij/html/HtmlDocumentationTest.java b/xml/tests/src/com/intellij/html/HtmlDocumentationTest.java index a51fc13a4416..2017b0e88776 100644 --- a/xml/tests/src/com/intellij/html/HtmlDocumentationTest.java +++ b/xml/tests/src/com/intellij/html/HtmlDocumentationTest.java @@ -35,7 +35,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
body
\n
" + "The <body> HTML " + "element represents the content of", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/reference/elements/body")); } public void testQuickDocumentationHtml5TagDialog() { @@ -49,7 +49,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
dialog
\n
" + "The <dialog> HTML " + "element represents a modal", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/dialog")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/reference/elements/dialog")); } public void testQuickDocumentationHtml5Attr() { @@ -73,8 +73,8 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { """, "
svg
\n
" + - "The svg element is a container that defines a new coordinate system and", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/element/svg")); + "The <svg> SVG element is a container that defines a new coordinate system and", + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/reference/element/svg")); } public void testQuickDocumentationHtml5SvgImage() { @@ -89,8 +89,8 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { """, "
image
\n
" + - "The <image> SVG element includes images inside SVG documents.", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/element/image")); + "The <image> SVG element includes images inside SVG documents.", + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/reference/element/image")); } public void testQuickDocumentationHtml5Math() { @@ -105,7 +105,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
math
\n
" + "The <math> MathML " + "element is the top-level MathML element", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/element/math")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/reference/element/math")); } public void testQuickDocumentationHtml5MathMrow() { @@ -122,7 +122,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
mrow
\n
" + "The <mrow> MathML " + "element is used to group sub-expressions", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/element/mrow")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/reference/element/mrow")); } public void testQuickDocumentationHtml4Tag() { @@ -136,7 +136,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
body
\n
" + "The <body> HTML " + "element represents the content of an HTML document.", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/reference/elements/body")); } public void testQuickDocumentationHtml4Attr() { @@ -156,7 +156,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { "
script
\n
" + "The <script> HTML " + "element is used to embed executable", - Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/script")); + Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/reference/elements/script")); } @@ -182,6 +182,9 @@ public class HtmlDocumentationTest extends BasePlatformTestCase { DocumentationProvider documentationProvider = DocumentationManager.getProviderFromElement(originalElement); String generatedDoc = documentationProvider.generateDoc(element, originalElement); + if (generatedDoc != null) { + generatedDoc = generatedDoc.replaceAll("(?s)
.+
\n", ""); + } if (generatedDoc == null) { //noinspection ConstantConditions assertEquals(doc, generatedDoc); diff --git a/xml/tests/testData/documentation/SvgDoc.svg.expected.completion.html b/xml/tests/testData/documentation/SvgDoc.svg.expected.completion.html index 31da9e50f06f..6a94f3e0cb2e 100644 --- a/xml/tests/testData/documentation/SvgDoc.svg.expected.completion.html +++ b/xml/tests/testData/documentation/SvgDoc.svg.expected.completion.html @@ -1 +1 @@ -
rect
The<rect>elementisabasicSVGshapethatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.

Supportedby:Chrome,ChromeAndroid,Edge,Firefox1.5,Opera8,Safari3.1,SafariiOS2ByMozillaContributors,CCBY-SA2.5

\ No newline at end of file +
rect
Widelyavailableacrossmajorbrowsers(Baseline since 2018)Chrome1,ChromeAndroid18,Edge12,Firefox1.5,FirefoxAndroid4,Opera8,Safari3.1,SafariiOS2
The<rect>SVGelementisabasicSVGshapethatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.
ByMozillaContributors,CCBY-SA2.5
\ No newline at end of file diff --git a/xml/tests/testData/documentation/SvgDoc.svg.expected.html b/xml/tests/testData/documentation/SvgDoc.svg.expected.html index 31da9e50f06f..6a94f3e0cb2e 100644 --- a/xml/tests/testData/documentation/SvgDoc.svg.expected.html +++ b/xml/tests/testData/documentation/SvgDoc.svg.expected.html @@ -1 +1 @@ -
rect
The<rect>elementisabasicSVGshapethatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.

Supportedby:Chrome,ChromeAndroid,Edge,Firefox1.5,Opera8,Safari3.1,SafariiOS2ByMozillaContributors,CCBY-SA2.5 \ No newline at end of file +

rect
Widelyavailableacrossmajorbrowsers(Baseline since 2018)Chrome1,ChromeAndroid18,Edge12,Firefox1.5,FirefoxAndroid4,Opera8,Safari3.1,SafariiOS2
The<rect>SVGelementisabasicSVGshapethatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.ByMozillaContributors,CCBY-SA2.5 \ No newline at end of file diff --git a/xml/tests/testData/documentation/SvgDoc2.svg.expected.completion.html b/xml/tests/testData/documentation/SvgDoc2.svg.expected.completion.html index 9e50bb771e2d..f2714479c8df 100644 --- a/xml/tests/testData/documentation/SvgDoc2.svg.expected.completion.html +++ b/xml/tests/testData/documentation/SvgDoc2.svg.expected.completion.html @@ -1 +1 @@ -
stroke-width
Thestroke-widthattributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.

YoucanusethisattributewiththefollowingSVGelements:

  • <circle>
  • <ellipse>
  • <line>
  • <path>
  • <polygon>
  • <polyline>
  • <rect>
  • <text>
  • <textPath>
  • <tref>
  • <tspan>

Supportedby:noneByMozillaContributors,CCBY-SA2.5 \ No newline at end of file +

stroke-width
Widelyavailableacrossmajorbrowsers(Baseline since 2022)Chrome80,ChromeAndroid80,Edge80,Firefox1,FirefoxAndroid4,Opera67,Safari13.1,SafariiOS13.4
Thestroke-widthattributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.ItappliestoanySVGshapeortext-contentelement,butasaninheritedproperty,itmaybeappliedtoelementssuchas<g>andstillhavetheintendedeffectondescendantelements'strokes.

Note:Asapresentationattribute,stroke-widthalsohasaCSSpropertycounterpart:stroke-width.Whenbotharespecified,theCSSpropertytakespriority.

YoucanusethisattributewiththefollowingSVGelements:

  • <circle>
  • <ellipse>
  • <line>
  • <path>
  • <polygon>
  • <polyline>
  • <rect>
  • <text>
  • <textPath>
  • <tspan>
ByMozillaContributors,CCBY-SA2.5 \ No newline at end of file diff --git a/xml/tests/testData/documentation/SvgDoc2.svg.expected.html b/xml/tests/testData/documentation/SvgDoc2.svg.expected.html index 9e50bb771e2d..f2714479c8df 100644 --- a/xml/tests/testData/documentation/SvgDoc2.svg.expected.html +++ b/xml/tests/testData/documentation/SvgDoc2.svg.expected.html @@ -1 +1 @@ -
stroke-width
Thestroke-widthattributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.

YoucanusethisattributewiththefollowingSVGelements:

  • <circle>
  • <ellipse>
  • <line>
  • <path>
  • <polygon>
  • <polyline>
  • <rect>
  • <text>
  • <textPath>
  • <tref>
  • <tspan>

Supportedby:noneByMozillaContributors,CCBY-SA2.5 \ No newline at end of file +

stroke-width
Widelyavailableacrossmajorbrowsers(Baseline since 2022)Chrome80,ChromeAndroid80,Edge80,Firefox1,FirefoxAndroid4,Opera67,Safari13.1,SafariiOS13.4
Thestroke-widthattributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.ItappliestoanySVGshapeortext-contentelement,butasaninheritedproperty,itmaybeappliedtoelementssuchas<g>andstillhavetheintendedeffectondescendantelements'strokes.

Note:Asapresentationattribute,stroke-widthalsohasaCSSpropertycounterpart:stroke-width.Whenbotharespecified,theCSSpropertytakespriority.

YoucanusethisattributewiththefollowingSVGelements:

  • <circle>
  • <ellipse>
  • <line>
  • <path>
  • <polygon>
  • <polyline>
  • <rect>
  • <text>
  • <textPath>
  • <tspan>
ByMozillaContributors,CCBY-SA2.5 \ No newline at end of file diff --git a/xml/xml-psi-impl/mdn-doc-gen/intellij.documenation.mdn.gen.iml b/xml/xml-psi-impl/mdn-doc-gen/intellij.documenation.mdn.gen.iml index ffbea2b5380d..95d1f91f4bdf 100644 --- a/xml/xml-psi-impl/mdn-doc-gen/intellij.documenation.mdn.gen.iml +++ b/xml/xml-psi-impl/mdn-doc-gen/intellij.documenation.mdn.gen.iml @@ -27,5 +27,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/xml/xml-psi-impl/mdn-doc-gen/src/MdnDocUpdateTestSuite.kt b/xml/xml-psi-impl/mdn-doc-gen/src/MdnDocUpdateTestSuite.kt new file mode 100644 index 000000000000..09a03ab6d781 --- /dev/null +++ b/xml/xml-psi-impl/mdn-doc-gen/src/MdnDocUpdateTestSuite.kt @@ -0,0 +1,43 @@ +import com.intellij.codeInsight.XmlDocumentationTest +import com.intellij.html.HtmlDocumentationTest +import com.intellij.htmltools.codeInsight.daemon.HtmlHighlightingTest +import com.intellij.javascript.webSymbols.css.WebSymbolsCssCodeCompletionTest +import com.intellij.javascript.webSymbols.html.WebSymbolsHtmlDocumentationTest +import com.intellij.javascript.webSymbols.html.WebSymbolsHtmlLookupDocumentationTest +import com.intellij.lang.javascript.JSDocumentationTest +import com.intellij.lang.javascript.typescript.TypeScriptDocumentationTest +import com.intellij.lang.javascript.typescript.service.TypeScriptServiceDocumentationTest +import com.intellij.react.ReactDocumentationTest +import com.intellij.react.tsc.ReactDocumentationWithServiceTest +import css.CssDocumentationTest +import org.angular2.codeInsight.Angular2DocumentationTest +import org.angular2.codeInsight.deprecated.Angular2AttributesTest +import org.angular2.resharper.Angular2HtmlCodeCompletionTest +import org.jetbrains.astro.codeInsight.AstroDocumentationTest +import org.jetbrains.vuejs.lang.VueCompletionTest +import org.jetbrains.vuejs.lang.VueDocumentationTest +import org.junit.runner.RunWith +import org.junit.runners.Suite + +@RunWith(Suite::class) +@Suite.SuiteClasses( + HtmlDocumentationTest::class, + XmlDocumentationTest::class, + HtmlHighlightingTest::class, + WebSymbolsHtmlDocumentationTest::class, + WebSymbolsHtmlLookupDocumentationTest::class, + WebSymbolsCssCodeCompletionTest::class, + CssDocumentationTest::class, + JSDocumentationTest::class, + TypeScriptDocumentationTest::class, + TypeScriptServiceDocumentationTest::class, + ReactDocumentationTest::class, + ReactDocumentationWithServiceTest::class, + Angular2DocumentationTest::class, + Angular2AttributesTest::class, + Angular2HtmlCodeCompletionTest::class, + VueDocumentationTest::class, + VueCompletionTest::class, + AstroDocumentationTest::class, +) +class MdnDocUpdateTestSuite \ No newline at end of file