0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

runtime(html): Restore HTML syntax file tests

Rendered element content results in test failures on macOS and FreeBSD.

The included content for these elements was incidental to the primary
intent of the test to check element tag highlighting so set
g:html_no_rendering to disable content rendering.

FreeBSD fails for even an empty <strike> element.

See #13591 and #14215.

closes: #13595

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-06-14 01:59:34 +10:00
committed by Christian Brabandt
parent f94c9c482a
commit 6dd5840fdf
12 changed files with 331 additions and 304 deletions

View File

@@ -0,0 +1,153 @@
<!--
HTML Syntax Test File
Maintainer: Doug Kearns <dougkearns@gmail.com>
Last Change: 2024 Jun 13
VIM_TEST_SETUP let g:html_no_rendering = 1
TODO: Investigate macOS test failures when comparing italicized text with,
for example, <em> and <i> elements. FreeBSD fails with an empty <strike>
element. See #13591 and #14215.
-->
<!-- HTML Elements -->
<a></a>
<abbr></abbr>
<address></address>
<area>
<article></article>
<aside></aside>
<audio></audio>
<b>bring attention to</b>
<base>
<bdi></bdi>
<bdo></bdo>
<blockquote></blockquote>
<body></body>
<br>
<button></button>
<canvas></canvas>
<caption></caption>
<cite></cite>
<code></code>
<col>
<colgroup></colgroup>
<data></data>
<datalist></datalist>
<dd></dd>
<del>deleted text</del>
<details></details>
<dfn></dfn>
<dialog></dialog>
<div></div>
<dl></dl>
<dt></dt>
<em>emphasis</em>
<embed>
<fieldset></fieldset>
<figcaption></figcaption>
<figure></figure>
<footer></footer>
<form></form>
<h1>Heading Level 1</h1>
<h2>Heading Level 3</h2>
<h3>Heading Level 4</h3>
<h4>Heading Level 4</h4>
<h5>Heading Level 5</h5>
<h6>Heading Level 6</h6>
<head></head>
<header></header>
<hgroup></hgroup>
<hr>
<html></html>
<i>idiomatic text</i>
<iframe></iframe>
<img>
<input>
<ins></ins>
<kbd></kbd>
<label></label>
<legend></legend>
<li></li>
<link>
<main></main>
<map></map>
<mark></mark>
<menu></menu>
<meta>
<meter></meter>
<nav></nav>
<noscript></noscript>
<object></object>
<ol></ol>
<optgroup></optgroup>
<option></option>
<output></output>
<p></p>
<picture></picture>
<pre>preformatted text</pre>
<progress></progress>
<q></q>
<rp></rp>
<rt></rt>
<ruby></ruby>
<!-- FreeBSD failure
<s>strikethrough</s>
-->
<samp></samp>
<script></script>
<search></search>
<section></section>
<select></select>
<slot></slot>
<small></small>
<source>
<span></span>
<strong>strong importance</strong>
<style></style>
<sub></sub>
<summary></summary>
<sup></sup>
<table></table>
<tbody></tbody>
<td></td>
<template></template>
<textarea></textarea>
<tfoot></tfoot>
<th></th>
<thead></thead>
<time></time>
<title></title>
<tr></tr>
<track>
<u>unarticulated annotation</u>
<ul></ul>
<var></var>
<video></video>
<wbr>
<xmp></xmp>
<!-- Deprecated Elements -->
<acronym></acronym>
<big></big>
<center></center>
<dir></dir>
<font></font>
<frame></frame>
<frameset></frameset>
<marquee></marquee>
<menuitem></menuitem>
<nobr></nobr>
<noframes></noframes>
<param>
<rb></rb>
<rtc></rtc>
<strike>strikethrough</strike>
<tt></tt>
<!-- Experimental - not highlighted -->
<portal></portal>
<!-- Note: these deprecated elements have never been matched -->
<image>
<noembed>
<plaintext>

View File

@@ -1,146 +0,0 @@
<!--
HTML Syntax Test File
Maintainer: Doug Kearns <dougkearns@gmail.com>
Last Change: 2023 Nov 28
-->
<!-- HTML Elements -->
<a>
<abbr>
<address>
<area>
<article>
<aside>
<audio>
<b>...</b>
<base>
<bdi>
<bdo>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<cite>
<code>
<col>
<colgroup>
<data>
<datalist>
<dd>
<del>...</del>
<details>
<dfn>
<dialog>
<div>
<dl>
<dt>
<em>...</em>
<embed>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>...</h1>
<h2>...</h2>
<h3>...</h3>
<h4>...</h4>
<h5>...</h5>
<h6>...</h6>
<head>...</head>
<header>
<hgroup>
<hr>
<html>
<i>...</i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<picture>
<pre>...</pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>...</s>
<samp>
<script>...</script>
<search>
<section>
<select>
<slot>
<small>
<source>
<span>
<strong>...</strong>
<style>...</style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<template>
<textarea>
<tfoot>
<th>
<thead>
<time>
<title>...</title>
<tr>
<track>
<u>...</u>
<ul>
<var>
<video>
<wbr>
<xmp>
<!-- Deprecated Elements -->
<acronym>
<big>
<center>
<dir>
<font>
<frame>
<frameset>
<marquee>
<menuitem>
<nobr>
<noframes>
<param>
<rb>
<rtc>
<strike>...</strike>
<tt>
<!-- Note: these deprecated elements have never been matched -->
<image>
<noembed>
<plaintext>
<!-- Experimental -->
<portal>