feat: admit complete Qoder surfaces into numbered HoloLake
This commit is contained in:
parent
fdc1bd3c0a
commit
fb8607f248
14 changed files with 1016 additions and 31 deletions
|
|
@ -9,6 +9,11 @@ const modulePackage = JSON.parse(read('fixtures/module-packages/HLP-MOD-OFFICIAL
|
|||
const rust = read('src-tauri/src/world_climate.rs')
|
||||
const frontend = read('src/main.tsx')
|
||||
const styles = read('src/styles.css')
|
||||
const starlake = read('src/modules/qoder-surface/StarlakeSurface.tsx')
|
||||
const starlakeStyles = read('src/modules/qoder-surface/starlake-surface.css')
|
||||
const traditional = read('src/modules/qoder-surface/TraditionalSurface.tsx')
|
||||
const traditionalStyles = read('src/modules/qoder-surface/traditional-surface.css')
|
||||
const visualBalance = read('src/modules/qoder-surface/visual-balance.ts')
|
||||
|
||||
test('dynamic world surface is signed, opt-in and cannot mutate world facts', () => {
|
||||
assert.equal(modulePackage.manifest.moduleNumber, 'HLP-MOD-OFFICIAL-DYNAMIC-WORLD-SURFACE-0001')
|
||||
|
|
@ -31,13 +36,30 @@ test('climate query crosses the unique numbered route and fails closed before ac
|
|||
assert.doesNotMatch(frontend, /from ['"]@tauri-apps\/api\/core['"]/)
|
||||
})
|
||||
|
||||
test('official shell and five lake themes remain the only admitted layout', () => {
|
||||
assert.equal(contract.visual_lock.layout, 'EXISTING_OFFICIAL_FIVE_LAKE_SHELL_UNCHANGED')
|
||||
assert.equal(contract.visual_lock.themes.length, 5)
|
||||
assert.equal(contract.donor_disposition.traditional_surface, 'REJECTED_DUPLICATE_SHELL_EIGHT_THEMES_AND_SIMULATED_STATUS')
|
||||
test('Qoder locked two-track surface is admitted without simulated product state', () => {
|
||||
assert.equal(contract.visual_lock.layout, 'QODER_LOCKED_STARLAKE_AND_TRADITIONAL_SURFACES_RESPONSIVELY_ADAPTED')
|
||||
assert.equal(contract.visual_lock.language_world_themes.length, 5)
|
||||
assert.equal(contract.visual_lock.traditional_finishes.length, 8)
|
||||
assert.equal(contract.visual_lock.all_downstream_pages_inherit_active_surface_tokens, true)
|
||||
assert.match(frontend, /夜湖星光/)
|
||||
assert.match(frontend, /天气源暂不可用;湖面只使用北京时间,不生成假天气。/)
|
||||
assert.match(styles, /\.world-climate-veil/)
|
||||
assert.doesNotMatch(frontend, /语料库新增 217 条/)
|
||||
assert.doesNotMatch(frontend, /频道活动 · 七日/)
|
||||
assert.match(starlake, /ResizeObserver/)
|
||||
assert.match(starlakeStyles, /\.starlake-scene\.awake/)
|
||||
assert.match(traditional, /broadcasts\.map/)
|
||||
assert.match(traditionalStyles, /\.official-world\.surface-traditional/)
|
||||
assert.match(visualBalance, /contrastRatio/)
|
||||
assert.doesNotMatch(traditional, /语料库新增 217 条/)
|
||||
assert.doesNotMatch(traditional, /const BROADCAST_POOL/)
|
||||
})
|
||||
|
||||
test('ambient motion sleeps and the Qoder source hashes remain pinned', () => {
|
||||
assert.equal(contract.visual_lock.ambient_motion_requires_recent_human_pointer_or_keyboard_activity, true)
|
||||
assert.equal(contract.visual_lock.idle_visual_state, 'STATIC')
|
||||
assert.match(frontend, /setTimeout\(\(\) => \{[\s\S]*setMotionAwake\(false\)/)
|
||||
assert.match(starlake, /if \(!awake\) return/)
|
||||
assert.match(traditional, /if \(!awake\) return/)
|
||||
assert.match(starlakeStyles, /animation-play-state:paused/)
|
||||
assert.match(traditionalStyles, /animation-play-state:paused/)
|
||||
assert.equal(contract.qoder_source_provenance.main_tsx_sha256, '7dab8596ec0bd2609b1b23b175f1f14f15f2aa9af847eb605692c993d2e876e8')
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue