summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Petros <apetros15@gmail.com>2023-09-20 12:58:10 -0400
committerAlexander Petros <apetros15@gmail.com>2023-09-20 13:01:09 -0400
commit9c53ecede5b162393e74224cea8251ebcf006077 (patch)
tree415cd509aa6e4cdcc9ff38084e71597ff6aed9ae
parentd1288d202aecbe46417e6978615e21ba3c74c8cf (diff)
downloadhtmx-9c53ecede5b162393e74224cea8251ebcf006077.tar.gz
htmx-9c53ecede5b162393e74224cea8251ebcf006077.zip
Add version number to test pageadd-version-to-tests
Now that we only have a single test page, it's helpful to show which version of htmx the tests are running against.
-rw-r--r--test/index.html4
-rw-r--r--www/static/test/index.html4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html
index 42d5487e..24c10ac5 100644
--- a/test/index.html
+++ b/test/index.html
@@ -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">
diff --git a/www/static/test/index.html b/www/static/test/index.html
index 42d5487e..24c10ac5 100644
--- a/www/static/test/index.html
+++ b/www/static/test/index.html
@@ -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">