Add version number to test page (#1813)

Now that we only have a single test page, it's helpful to show which
version of htmx the tests are running against.
This commit is contained in:
Alexander Petros 2023-09-21 14:11:40 -04:00 committed by GitHub
parent 9c012f0848
commit 03b1ebea97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@
<body style="padding:20px;font-family: sans-serif">
<h1 style="margin-top: 40px">htmx.js test suite</h1>
<p id="version-number">Version:&nbsp;</p>
<h2>Scratch Page</h2>
<ul>
@ -40,6 +41,9 @@
if (navigator.webdriver) {
htmx.logAll = function () { }
}
// Add the version number to the top
document.getElementById('version-number').innerText += htmx.version
</script>
<script class="mocha-init">

View File

@ -14,6 +14,7 @@
<body style="padding:20px;font-family: sans-serif">
<h1 style="margin-top: 40px">htmx.js test suite</h1>
<p id="version-number">Version:&nbsp;</p>
<h2>Scratch Page</h2>
<ul>
@ -40,6 +41,9 @@
if (navigator.webdriver) {
htmx.logAll = function () { }
}
// Add the version number to the top
document.getElementById('version-number').innerText += htmx.version
</script>
<script class="mocha-init">