From a02a228bf68a08bb82539ab09582929b940dbc63 Mon Sep 17 00:00:00 2001 From: jelveh Date: Fri, 4 Jul 2025 19:12:06 -0700 Subject: [PATCH] Add a 'test' button to each test in Puter.js's test suite --- src/puter-js/test/run.html | 94 +++++++++++++++++++++++++++++++++++--- 1 file changed, 88 insertions(+), 6 deletions(-) diff --git a/src/puter-js/test/run.html b/src/puter-js/test/run.html index 3793279ea..5492c892c 100644 --- a/src/puter-js/test/run.html +++ b/src/puter-js/test/run.html @@ -38,6 +38,10 @@ .test-container{ font-family: monospace; } + .test-checkbox-container{ + display: flex; + align-items: center; + } .test-container:hover{ background-color: #f0f0f0; } @@ -47,6 +51,35 @@ .test-container input{ float: left; } + .test-run-button { + margin-left: 10px; + background-color: #4c84af; + border: none; + color: white; + padding: 5px 10px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 12px; + cursor: pointer; + border-radius: 3px; + opacity: 0; + transition: opacity 0.2s ease; + } + .test-container:hover .test-run-button { + opacity: 1; + } + .test-run-button:hover { + background-color: #3a6a8a; + } + .test-run-button:disabled { + background-color: #999; + cursor: not-allowed; + opacity: 1; + } + .test-run-button:disabled:hover { + background-color: #999; + }