summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZachary J. Rollyson <me@zjr.io>2020-10-10 11:23:07 -0400
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-10 19:13:55 +0200
commit3bcb5452aa91e527d04cbfc33f81395618db4959 (patch)
tree7c30da0c182d624ea49037765603816eb27c643e /tests
parent1f0e53a44d1729cf3ce4ff397c7fd56e3d28fb6a (diff)
Add HTML syntax test sample
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/HTML/test.html115
-rw-r--r--tests/syntax-tests/source/HTML/test.html115
2 files changed, 230 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/HTML/test.html b/tests/syntax-tests/highlighted/HTML/test.html
new file mode 100644
index 00000000..3df49d03
--- /dev/null
+++ b/tests/syntax-tests/highlighted/HTML/test.html
@@ -0,0 +1,115 @@
+<!DOCTYPE html SYSTEM "about:legacy-compat">
+<html>
+ <!-- Behold my erudite commentary -->
+ <head>
+ <title>Bat Syntax Test</title>
+ <meta charset="utf-8"> 
+ <script>
+ const x = 'world';
+ function logGreeting() {
+ console.log(`Hello, ${x}`);
+ }
+ </script>
+ </head>
+ <body>
+ <div>
+ <h1>Here find some simple tags</h1>
+ <br />
+ <p center style="color: rebeccapurple;">
+ Lorem <strong>ipsum</strong> dolor sit amet consectetur adipisicing
+ elit. A quo, autem quaerat explicabo impedit mollitia amet molestiae
+ nulla cum architecto ducimus itaque sit blanditiis quasi animi optio ab
+ facilis nihil?
+ </p>
+ <p>
+ Here are some escaped characters: &amp; (ampersand), &agrave; (a with grave), &#8470; (numero sign).
+ </p>
+ </div>
+ <div>
+ <h1>This is a form that demonstrates loose attribute formatting</h1>
+ <form action="POST">
+ <input
+ disabled
+ type="text"
+ name="text input"
+ id="specificTextInput"
+ value="yes"
+ />
+ </form>
+ </div>
+ <div>
+ <h1>A table with normal closing tags</h1>
+ <table>
+ <caption>
+ Pet Features
+ </caption>
+ <colgroup>
+ <col />
+ <col />
+ <col />
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Feature</th>
+ <th>Cat</th>
+ <th>Dog</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Tail</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Eyes</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Ears</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Barking</td>
+ <td></td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Litter Box</td>
+ <td>✔</td>
+ <td></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h1>A table without closing tags</h1>
+ <table>
+ <caption>Pet Features
+ <colgroup><col><col><col>
+ <thead>
+ <tr> <th>Feature <th>Cat <th>Dog
+ <tbody>
+ <tr> <td>Tail <td>✔ <td>✔
+ <tr> <td>Eyes <td>✔ <td>✔
+ <tr> <td>Ears <td>✔ <td>✔
+ <tr> <td>Barking <td> <td>✔
+ <tr> <td>Litter Box <td>✔ <td>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h1>A math section with CDATA</h1>
+ <p>You can add a string to a number, but this stringifies the number:</p>
+ <math>
+ <ms><![CDATA[a / b]]></ms>
+ <mo>-</mo>
+ <mn>7</mn>
+ <mo>=</mo>
+ <ms><![CDATA[a / b - 7]]></ms>
+ </math>
+ </div>
+ </body>
+</html>
diff --git a/tests/syntax-tests/source/HTML/test.html b/tests/syntax-tests/source/HTML/test.html
new file mode 100644
index 00000000..ccddb797
--- /dev/null
+++ b/tests/syntax-tests/source/HTML/test.html
@@ -0,0 +1,115 @@
+<!DOCTYPE html SYSTEM "about:legacy-compat">
+<html>
+ <!-- Behold my erudite commentary -->
+ <head>
+ <title>Bat Syntax Test</title>
+ <meta charset="utf-8">
+ <script>
+ const x = 'world';
+ function logGreeting() {
+ console.log(`Hello, ${x}`);
+ }
+ </script>
+ </head>
+ <body>
+ <div>
+ <h1>Here find some simple tags</h1>
+ <br />
+ <p center style="color: rebeccapurple;">
+ Lorem <strong>ipsum</strong> dolor sit amet consectetur adipisicing
+ elit. A quo, autem quaerat explicabo impedit mollitia amet molestiae
+ nulla cum architecto ducimus itaque sit blanditiis quasi animi optio ab
+ facilis nihil?
+ </p>
+ <p>
+ Here are some escaped characters: &amp; (ampersand), &agrave; (a with grave), &#8470; (numero sign).
+ </p>
+ </div>
+ <div>
+ <h1>This is a form that demonstrates loose attribute formatting</h1>
+ <form action="POST">
+ <input
+ disabled
+ type="text"
+ name="text input"
+ id="specificTextInput"
+ value="yes"
+ />
+ </form>
+ </div>
+ <div>
+ <h1>A table with normal closing tags</h1>
+ <table>
+ <caption>
+ Pet Features
+ </caption>
+ <colgroup>
+ <col />
+ <col />
+ <col />
+ </colgroup>
+ <thead>
+ <tr>
+ <th>Feature</th>
+ <th>Cat</th>
+ <th>Dog</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Tail</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Eyes</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Ears</td>
+ <td>✔</td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Barking</td>
+ <td></td>
+ <td>✔</td>
+ </tr>
+ <tr>
+ <td>Litter Box</td>
+ <td>✔</td>
+ <td></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h1>A table without closing tags</h1>
+ <table>
+ <caption>Pet Features
+ <colgroup><col><col><col>
+ <thead>
+ <tr> <th>Feature <th>Cat <th>Dog
+ <tbody>
+ <tr> <td>Tail <td>✔ <td>✔
+ <tr> <td>Eyes <td>✔ <td>✔
+ <tr> <td>Ears <td>✔ <td>✔
+ <tr> <td>Barking <td> <td>✔
+ <tr> <td>Litter Box <td>✔ <td>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h1>A math section with CDATA</h1>
+ <p>You can add a string to a number, but this stringifies the number:</p>
+ <math>
+ <ms><![CDATA[a / b]]></ms>
+ <mo>-</mo>
+ <mn>7</mn>
+ <mo>=</mo>
+ <ms><![CDATA[a / b - 7]]></ms>
+ </math>
+ </div>
+ </body>
+</html>