mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
Set up http and websocket servers in deploy_tests.py that allow us to communicate with the remote wasm app similarly to how we communicate with android & ios devices. Add a "-w" target to check_golds.sh that kicks tests off in the default browser. Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
16 lines
450 B
HTML
16 lines
450 B
HTML
<!--
|
|
Experiment to run the tests in multiple popup windows.
|
|
No perf improvement has been observed.
|
|
-->
|
|
<script>
|
|
for (let i = 0; i < 4; ++i) {
|
|
const x = (i % 2) * 450;
|
|
const y = Math.floor(i / 2) * 550;
|
|
window.open(
|
|
`goldens.html${window.location.hash}`,
|
|
`goldens_${i + 1}`,
|
|
`width=${400},height=${400},top=${y},left=${x},toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no`
|
|
);
|
|
}
|
|
</script>
|