WEB-61632 MDN: update test data

GitOrigin-RevId: 25e1eec4ebeb363137533322380bf5623770701d
This commit is contained in:
Piotr Tomiak
2023-06-28 10:12:43 +02:00
committed by intellij-monorepo-bot
parent 5564fedfa4
commit 40e6ba629d
6 changed files with 19 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>body</pre></div>\n<div class='content'>" +
"<p>The <strong><code>&lt;body&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"The <strong><code>&lt;body&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"element represents the content of",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body"));
}
@@ -47,7 +47,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>dialog</pre></div>\n<div class='content'>" +
"<p>The <strong><code>&lt;dialog&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"The <strong><code>&lt;dialog&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"element represents a dialog box",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/dialog"));
}
@@ -60,7 +60,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>onload</pre></div>\n<div class='content'>Function to call when the document has finished loading.",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body#attr-onload"));
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body#onload"));
}
public void testQuickDocumentationHtml5Svg() {
@@ -73,7 +73,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>svg</pre></div>\n<div class='content'>" +
"<p>The <code>svg</code> element is a container that defines a new coordinate system and",
"The <code>svg</code> element is a container that defines a new coordinate system and",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/element/svg"));
}
@@ -89,7 +89,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>image</pre></div>\n<div class='content'>" +
"<p><span class=\"seoSummary\">The <strong><code>&lt;image&gt;</code></strong> SVG element includes images inside SVG documents.",
"The <strong><code>&lt;image&gt;</code></strong> SVG element includes images inside SVG documents.",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/svg/element/image"));
}
@@ -103,7 +103,8 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>math</pre></div>\n<div class='content'>" +
"<p class=\"summary\">The top-level element in MathML is <code>&lt;math&gt;</code>.",
"The <strong><code>&lt;math&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/MathML\">MathML</a> " +
"element is the top-level MathML element",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/element/math"));
}
@@ -119,7 +120,8 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>mrow</pre></div>\n<div class='content'>" +
"<p class=\"summary\">The MathML <code>&lt;mrow&gt;</code> element is used to group sub-expressions",
"The <strong><code>&lt;mrow&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/MathML\">MathML</a> " +
"element is used to group sub-expressions",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/mathml/element/mrow"));
}
@@ -132,8 +134,8 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>body</pre></div>\n<div class='content'>" +
"<p>The <strong><code>&lt;body&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"element represents the content of an HTML document.",
"The <strong><code>&lt;body&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"element represents the content of an HTML document.",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body"));
}
@@ -146,13 +148,13 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
</body>
</html>""",
"<div class='definition'><pre>onload</pre></div>\n<div class='content'>Function to call when the document has finished loading.",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body#attr-onload"));
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/body#onload"));
}
public void testQuickDocumentationHtml5Script() {
doTest("<scr<caret>ipt></script>",
"<div class='definition'><pre>script</pre></div>\n<div class='content'>" +
"<p>The <strong><code>&lt;script&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"The <strong><code>&lt;script&gt;</code></strong> <a href=\"https://developer.mozilla.org/en-us/docs/Web/HTML\">HTML</a> " +
"element is used to embed executable",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/html/element/script"));
}
@@ -160,7 +162,7 @@ public class HtmlDocumentationTest extends BasePlatformTestCase {
public void testQuickDocumentationHtml5MediaEvents() {
doTest("<video on<caret>stalled=''>",
"<div class='definition'><pre>onstalled</pre></div>\n<div class='content'><p><span class=\"seoSummary\">" +
"<div class='definition'><pre>onstalled</pre></div>\n<div class='content'>" +
"The <code>stalled</code> event is fired when the user agent is trying to fetch media data",
Collections.singletonList("https://developer.mozilla.org/en-us/docs/web/api/htmlmediaelement/stalled_event"));
}

View File

@@ -1 +1 @@
<divclass='definition'><pre>rect</pre></div><divclass='content'><p>The<strong><code>&lt;rect&gt;</code></strong>elementisa<ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorial/Basic_Shapes">basicSVGshape</a>thatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.</p></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3.1,SafariiOS2</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/element/rect/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>
<divclass='definition'><pre>rect</pre></div><divclass='content'>The<strong><code>&lt;rect&gt;</code></strong>elementisa<ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorial/Basic_Shapes">basicSVGshape</a>thatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.</div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3.1,SafariiOS2</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/element/rect/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>

View File

@@ -1 +1 @@
<divclass='definition'><pre>rect</pre></div><divclass='content'><p>The<strong><code>&lt;rect&gt;</code></strong>elementisa<ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorial/Basic_Shapes">basicSVGshape</a>thatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.</p></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3.1,SafariiOS2</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/element/rect/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>
<divclass='definition'><pre>rect</pre></div><divclass='content'>The<strong><code>&lt;rect&gt;</code></strong>elementisa<ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorial/Basic_Shapes">basicSVGshape</a>thatdrawsrectangles,definedbytheirposition,width,andheight.Therectanglesmayhavetheircornersrounded.</div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3.1,SafariiOS2</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/element/rect/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>

View File

@@ -1 +1 @@
<divclass='definition'><pre>stroke-width</pre></div><divclass='content'><p>The<strong><code>stroke-width</code></strong>attributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.</p><p>YoucanusethisattributewiththefollowingSVGelements:</p><ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/altGlyph"><code>&lt;altGlyph&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/circle"><code>&lt;circle&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/ellipse"><code>&lt;ellipse&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/line"><code>&lt;line&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/path"><code>&lt;path&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polygon"><code>&lt;polygon&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polyline"><code>&lt;polyline&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/rect"><code>&lt;rect&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/text"><code>&lt;text&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/textPath"><code>&lt;textPath&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tref"><code>&lt;tref&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tspan"><code>&lt;tspan&gt;</code></a></li></ul></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>none</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/attribute/stroke-width/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>
<divclass='definition'><pre>stroke-width</pre></div><divclass='content'>The<strong><code>stroke-width</code></strong>attributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.<p>YoucanusethisattributewiththefollowingSVGelements:<ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/circle"><code>&lt;circle&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/ellipse"><code>&lt;ellipse&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/line"><code>&lt;line&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/path"><code>&lt;path&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polygon"><code>&lt;polygon&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polyline"><code>&lt;polyline&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/rect"><code>&lt;rect&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/text"><code>&lt;text&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/textPath"><code>&lt;textPath&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tref"><code>&lt;tref&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tspan"><code>&lt;tspan&gt;</code></a></li></ul></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>none</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/attribute/stroke-width/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>

View File

@@ -1 +1 @@
<divclass='definition'><pre>stroke-width</pre></div><divclass='content'><p>The<strong><code>stroke-width</code></strong>attributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.</p><p>YoucanusethisattributewiththefollowingSVGelements:</p><ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/altGlyph"><code>&lt;altGlyph&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/circle"><code>&lt;circle&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/ellipse"><code>&lt;ellipse&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/line"><code>&lt;line&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/path"><code>&lt;path&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polygon"><code>&lt;polygon&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polyline"><code>&lt;polyline&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/rect"><code>&lt;rect&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/text"><code>&lt;text&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/textPath"><code>&lt;textPath&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tref"><code>&lt;tref&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tspan"><code>&lt;tspan&gt;</code></a></li></ul></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>none</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/attribute/stroke-width/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>
<divclass='definition'><pre>stroke-width</pre></div><divclass='content'>The<strong><code>stroke-width</code></strong>attributeisapresentationattributedefiningthewidthofthestroketobeappliedtotheshape.<p>YoucanusethisattributewiththefollowingSVGelements:<ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/circle"><code>&lt;circle&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/ellipse"><code>&lt;ellipse&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/line"><code>&lt;line&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/path"><code>&lt;path&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polygon"><code>&lt;polygon&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/polyline"><code>&lt;polyline&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/rect"><code>&lt;rect&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/text"><code>&lt;text&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/textPath"><code>&lt;textPath&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tref"><code>&lt;tref&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/tspan"><code>&lt;tspan&gt;</code></a></li></ul></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>none</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/attribute/stroke-width/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>

View File

@@ -1 +1 @@
<divclass='definition'><pre>viewBox</pre></div><divclass='content'><p>The<strong><code>viewBox</code></strong>attributedefinesthepositionanddimension,inuserspace,ofanSVGviewport. </p><p>Thevalueofthe<code>viewBox</code>attributeisalistoffournumbers:<code><var>min-x</var></code>,<code><var>min-y</var></code>,<code><var>width</var></code>and<code><var>height</var></code>.Thenumbersseparatedbywhitespaceand/oracomma,whichspecifyarectangleinuserspacewhichismappedtotheboundsoftheviewport establishedfortheassociatedSVGelement(notthe<ahref="https://developer.mozilla.org/en-us/docs/Glossary/Viewport">browserviewport</a>).</p><p>YoucanusethisattributewiththefollowingSVGelements:</p><ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/marker"><code>&lt;marker&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/pattern"><code>&lt;pattern&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/svg"><code>&lt;svg&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/symbol"><code>&lt;symbol&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/view"><code>&lt;view&gt;</code></a>.</li></ul><p>Theexacteffectofthisattributeisinfluencedbythe<code><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Attribute/preserveAspectRatio">preserveAspectRatio</a></code>attribute.</p><pclass="note"><strong>Note:</strong>Valuesfor<code><var>width</var></code>or<code><var>height</var></code>lowerorequalto<code>0</code>disablerenderingoftheelement.</p></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3,SafariiOS3</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/element/svg#attr-viewbox/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>
<divclass='definition'><pre>viewBox</pre></div><divclass='content'>The<strong><code>viewBox</code></strong>attributedefinesthepositionanddimension,inuserspace,ofanSVGviewport.<p>Thevalueofthe<code>viewBox</code>attributeisalistoffournumbers:<code>min-x</code>,<code>min-y</code>,<code>width</code>and<code>height</code>.Thenumbers<code>min-x</code>and<code>min-y</code>representthetopleftcoordinatesoftheviewport.Thenumbers<code>width</code>and<code>height</code>representitsdimensions.Thesenumbers,whichareseparatedbywhitespaceand/oracomma,specifyarectangleinuserspacewhichismappedtotheboundsoftheviewportestablishedfortheassociatedSVGelement(notthe<ahref="https://developer.mozilla.org/en-us/docs/Glossary/Viewport">browserviewport</a>).<p>YoucanusethisattributewiththefollowingSVGelements:<ul><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/marker"><code>&lt;marker&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/pattern"><code>&lt;pattern&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/svg"><code>&lt;svg&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/symbol"><code>&lt;symbol&gt;</code></a></li><li><ahref="https://developer.mozilla.org/en-us/docs/Web/SVG/Element/view"><code>&lt;view&gt;</code></a></li></ul></div><tableclass='sections'><tr><tdvalign='top'class='section'><p>Supportedby:</td><tdvalign='top'>Chrome,ChromeAndroid,Edge,Firefox1.5,IE9,Opera8,Safari3,SafariiOS3</td></table><divclass='content'>By<ahref='https://developer.mozilla.org/en-us/docs/web/svg/attribute/viewbox/contributors.txt'>MozillaContributors</a>,<ahref='https://creativecommons.org/licenses/by-sa/2.5/'>CCBY-SA2.5</a></div>