'use strict' const assert = require('assert') const fs = require('fs') const path = require('path') // P2-9 组件抽取:UI 组件已收编到 src/ui-*.js —— 合并扫描(标记可能位于任一文件) // 2026-11-07:统一源文本入口(app.js + src/ui-*.js);语义与原先手写扫描完全一致 const { uiAllSrc } = require('./_helpers/source') const source = uiAllSrc() // ── 2026-10-27 P0 还债:以下 className 源码钉点已删除 ───────────────────────── // 它们原本用 `source.includes("className: 'iwb-xxx'")` 保护外壳结构 —— 写法一改就红, // 却证明不了该 class 真的渲染出来。现由 tests/shell-render-behavior-test.js // 用 jsdom 真跑 app.js 断言「class 确实出现在对应视图的 DOM 上」,语义更强且允许自由重写 JSX。 // 被替换的 class:iwb-home-side / iwb-home-panel / iwb-canvas-topbar / iwb-fullmask / // iwb-res-tab / iwb-product-nav(详见 docs/history/source-pin-audit-2026-10-27.md) const css = fs.readFileSync(path.join(__dirname, '..', 'style.css'), 'utf8') assert.ok(source.includes("lsRawGet('iwb_shell_view'")) // 2026-11-06 存储收敛:改为统一 helper 入口 assert.ok(!source.includes("railBtn('prompts'")) assert.ok(!source.includes("railBtn('groups'")) assert.ok(!source.includes("railBtn('history'")) assert.ok(css.includes('.iwb-product-nav')) assert.ok(css.includes('.iwb-landing-panel')) assert.ok(!css.includes('.iwb-res-tabs'), 'v3.27.1:资源中心旧页签已删除(统一到 .iwb-tab)') assert.ok(!css.includes('.iwb-left-drawer')) console.log('three page layout checks passed')