20260826 两宿主全线正本/回执/状态 + 协议正本地图v1.2 + 模板/镜面/坑清单(元审计收敛commit;前人未提交改动未碰)
This commit is contained in:
parent
b95fcb57ba
commit
59fc9bfd7b
670 changed files with 133422 additions and 129 deletions
|
|
@ -0,0 +1,42 @@
|
|||
import assert from 'node:assert/strict'
|
||||
import { readFile } from 'node:fs/promises'
|
||||
import path from 'node:path'
|
||||
import test from 'node:test'
|
||||
|
||||
const root = path.resolve(import.meta.dirname, '..')
|
||||
|
||||
test('the HoloLake front door is the first lightweight language planet', async () => {
|
||||
const source = await readFile(path.join(root, 'src/modules/language-world-entry/LanguageWorldEntryV2.tsx'), 'utf8')
|
||||
const css = await readFile(path.join(root, 'src/modules/language-world-entry/language-world-entry-v2.css'), 'utf8')
|
||||
const packageSource = await readFile(path.join(root, 'package.json'), 'utf8')
|
||||
const planet = await readFile(path.join(root, 'src/assets/language-world-v3/first-language-planet.png'))
|
||||
assert.match(source, /请输入光湖编号/)
|
||||
assert.match(source, /编号用于路径解析,不单独构成身份认证或权限授予/)
|
||||
assert.match(source, /validate_human_number_route/)
|
||||
assert.match(source, /get_mother_brain_container_status/)
|
||||
assert.match(css, /language-universe-lake\.png/)
|
||||
assert.match(source, /first-language-planet\.png/)
|
||||
assert.match(source, /第一颗语言星球 · 光湖/)
|
||||
assert.match(source, /formatGateNumber/)
|
||||
assert.match(source, /infinity-toggle/)
|
||||
assert.match(source, />∞<\/button>/)
|
||||
assert.match(css, /planet-float/)
|
||||
assert.match(css, /stars-drift/)
|
||||
assert.match(css, /prefers-reduced-motion/)
|
||||
assert.ok([4, 6].includes(planet[25]), 'language planet PNG must carry a real alpha channel')
|
||||
assert.doesNotMatch(css, /scale\(1\.29\)/)
|
||||
assert.doesNotMatch(packageSource, /["']three["']/)
|
||||
assert.doesNotMatch(source, /母体数字大脑容器接入/)
|
||||
assert.doesNotMatch(source, /本地系统界面激活完成/)
|
||||
assert.doesNotMatch(source, /type=["']password["']/)
|
||||
})
|
||||
|
||||
test('the local mother-brain panel preserves fail-closed reality boundaries', async () => {
|
||||
const source = await readFile(path.join(root, 'src/modules/language-world-entry/LanguageWorldEntryV2.tsx'), 'utf8')
|
||||
const native = await readFile(path.join(root, 'src-tauri/src/mother_brain_runtime.rs'), 'utf8')
|
||||
assert.match(source, /应用启动周期已执行并取得可信回执/)
|
||||
assert.match(source, /网络访问、现实行动与远端写入均未启用/)
|
||||
assert.match(native, /automatic_execution_on_open:true/)
|
||||
assert.match(native, /PASS_SEVEN_EXACT_BUNDLED_HASH_READBACK/)
|
||||
assert.match(native, /MOTHER_BRAIN_STARTUP_RECEIPT_REJECTED/)
|
||||
})
|
||||
Loading…
Reference in a new issue