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
1.0 KiB
Python
24 lines
1.0 KiB
Python
#!/usr/bin/env python3
|
|
"""Run http_transfer's fetch transport 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='http-transfer-browser-', dir=ROOT / 'build') as path:
|
|
work = Path(path)
|
|
build_behavior(work, 'http_transfer')
|
|
server = subprocess.Popen(['python3', ROOT / 'tests/http_transfer_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('HTTP transfer in the browser: GET, POST with headers, binary answers with their length, oversized and slow answers, and cancelling passed')
|