Files
David Testé ff0609fba3 chore(ci): force refresh page on firefox browser
A simple driver.refresh() wouldn't refresh script cache for web
workers. Thus leading to page not fully charged and having all
test and benchmarks buttons in disabled state.
That triggering timeout while browsing with Selenium.

Console log print has also been curated for Chrome browser.
2024-10-14 17:58:21 +02:00

131 lines
3.1 KiB
HTML

<!doctype html>
<title>TFHE-RS Web Wasm Demo</title>
<body>
<style>
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div>
<!-- Use input `max` attribute to specify a custom timeout in seconds for a test/bench
Default timeout is available in ci/webdriver.py under variable name `case_timeout_seconds`
-->
<input type="button" id="publicKeyTest" value="Public Key Test" disabled />
<input
type="button"
id="compressedPublicKeyTest"
value="Compressed Public Key Test"
disabled
/>
<input
type="button"
id="compressedCompactPublicKeyTest256BitSmall"
value="Compressed Compact Public Key Test 256 Bits Small"
disabled
/>
<input
type="button"
id="compressedCompactPublicKeyTest256BitBig"
value="Compressed Compact Public Key Test 256 Bits Big"
disabled
/>
<input
type="button"
id="compactPublicKeyZeroKnowledgeTest"
value="Compact Public Key Test 64 Bits Big With Zero Knowledge Proof"
max="3600"
disabled
/>
<input
type="button"
id="compactPublicKeyWithCastingTest256Bit"
value="Compact Public Key With Casting Test 256 Bit"
disabled
/>
<input
type="button"
id="compressedCompactPublicKeyWithCastingTest256Bit"
value="Compressed Compact Public Key With Casting Test 256 Bit"
disabled
/>
<input type="checkbox" id="testSuccess" disabled />
<label for="testSuccess"> TestSuccess </label><br />
<input
type="button"
id="compactPublicKeyBench32BitSmall"
value="Compact Public Key Bench 32 Bits Small"
disabled
/>
<input
type="button"
id="compactPublicKeyBench32BitBig"
value="Compact Public Key Bench 32 Bits Big"
disabled
/>
<input
type="button"
id="compactPublicKeyBench256BitSmall"
value="Compact Public Key Bench 256 Bits Small"
disabled
/>
<input
type="button"
id="compactPublicKeyBench256BitBig"
value="Compact Public Key Bench 256 Bits Big"
disabled
/>
<input
type="button"
id="compressedServerKeyBenchMessage1Carry1"
value="Compressed Server Key Bench 1_1"
max="600"
disabled
/>
<input
type="button"
id="compressedServerKeyBenchMessage2Carry2"
value="Compressed Server Key Bench 2_2"
max="600"
disabled
/>
<input
type="button"
id="compactPublicKeyZeroKnowledgeBench"
value="Compact ZK Bench"
max="3600"
disabled
/>
<input type="text" id="benchmarkResults" disabled />
<label for="benchmarkResults"> BenchmarkResults </label><br />
<div id="loader" class="loader" hidden></div>
</div>
<script type="module" src="index.js"></script>
</body>