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.
17 lines
700 B
Python
17 lines
700 B
Python
#!/usr/bin/env python3
|
|
"""Compile file_export for the browser and check its downloads in private headless Chromium."""
|
|
|
|
from toolchain import JS_RUNTIME
|
|
from pathlib import Path
|
|
import tempfile
|
|
|
|
from browser_behavior import ROOT, build_behavior, run
|
|
|
|
with tempfile.TemporaryDirectory(prefix='file-export-browser-', dir=ROOT / 'build') as path:
|
|
work = Path(path)
|
|
build_behavior(work, 'file_export')
|
|
(work / 'downloads').mkdir()
|
|
run([JS_RUNTIME, ROOT / 'tests/file_export_browser.mjs', (work / 'test.html').as_uri(), work / 'profile', work / 'downloads'],
|
|
timeout=45)
|
|
print('File export in the browser: bytes and files downloaded with their names, refusals and cleanup passed')
|