code wiki / (root) / nx_browser_render_own_test.nx

nx_browser_render_own_test.nx

buildroot/runtime/nx_browser_render_own_test.nx

3753 B106 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_render_own_test.nx -- Phase-5 render row: take the HTML the browser fetched from OUR OWN site over sovereign HTTPS (/tmp/nishi_own.html, produced by nx_browser_own_site_live_test) and prove the render pipeline on it: 1. nx_html_to_text extracts readable text -> must contain "Nishi Family" (the real h1) and be non-trivial 2. the extracted text paints into an RGBA framebuffer via the 5x7 bitmap font -> framebuffer must be NON-BLANK 3. ASCII raster saved to /tmp/nishi_own_render.txt (visible proof) HONEST SCOPE: this renders the page's TEXT through the paint substrate. Full CSS-cascade layout of arbitrary real-world pages (style blocks, viewport meta) is the NEXT rung -- flagged, not claimed. Compose-by-file with the fetch test keeps each gate row single-responsibility. expect_exit: 0 license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_html_to_text.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_paint_text.nx nx_paint_fb_ascii_dump.nx nx_browser_render_own_test.nx

imports: nx_syscalls.nxnx_html_to_text.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_paint_text.nxnx_paint_fb_ascii_dump.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap ro_contains nx_framebuffer_init

structs

none

consts

none

functions

29func ro_contains(hay: *u8, hay_len: i64, needle: *u8) -> i64
called by 1: main
47func main() -> i64