Add Card elevation and consistent widget states, retained TextArea selection, and rounded image rendering. Integrate published image-codec, WebP and AVIF packages across native hosts and renderer artifacts with project-aware builds. Modernize Kryon Labs around visual GUI apps and modules, with real previews, honest availability, and rebuilt interactive editor and widget gallery assets. Bound private browser test lifecycles and verify source, saved IR, native, portable, browser, Windows and Android paths with the published compiler.
24 lines
966 B
Python
24 lines
966 B
Python
#!/usr/bin/env python3
|
|
"""Run page_socket's WebSocket in private headless Chromium against a local server."""
|
|
|
|
from toolchain import JS_RUNTIME
|
|
from pathlib import Path
|
|
import subprocess
|
|
import tempfile
|
|
|
|
from browser_behavior import ROOT, build_behavior, run
|
|
|
|
with tempfile.TemporaryDirectory(prefix='page-socket-browser-', dir=ROOT / 'build') as path:
|
|
work = Path(path)
|
|
build_behavior(work, 'page_socket')
|
|
server = subprocess.Popen(['python3', ROOT / 'tests/page_socket_server.py'], stdout=subprocess.PIPE,
|
|
stderr=subprocess.DEVNULL, text=True)
|
|
try:
|
|
port = server.stdout.readline().strip()
|
|
run([JS_RUNTIME, ROOT / 'tests/canvas_backend_browser.mjs',
|
|
(work / 'test.html').as_uri() + '?port=' + port, work / 'profile'], timeout=45)
|
|
finally:
|
|
server.kill()
|
|
server.wait()
|
|
print('Page socket: messages, subprotocols, oversized and binary messages, close and refusals passed')
|