From 15cce0aba8b70f170e1956a0f542dc49e47ad3b9 Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 21 Jul 2026 10:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3A01=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E5=90=88=E5=90=8C=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/a01-a02-ui-contract.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/a01-a02-ui-contract.ps1 b/tests/a01-a02-ui-contract.ps1 index 2be2e45..bedb761 100644 --- a/tests/a01-a02-ui-contract.ps1 +++ b/tests/a01-a02-ui-contract.ps1 @@ -88,7 +88,9 @@ foreach ($rule in @($pageRule, $paperRule, $contentRule)) { Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'display: flex;' -Message 'A01 root must use flex flow.' Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'flex-direction: column;' -Message 'A01 root must stack header and paper.' Assert-Contains -Content $pageRule.Groups['Body'].Value -Expected 'min-height: var(--app-viewport-height);' -Message 'A01 root must fill without locking content height.' -Assert-NotContains -Content $pageRule.Groups['Body'].Value -Unexpected 'height: var(--app-viewport-height);' -Message 'A01 root must not lock content to the viewport.' +if ($pageRule.Groups['Body'].Value -match '(?m)^\s*height:\s*var\(--app-viewport-height\);') { + throw 'A01 root must not lock content to the viewport.' +} Assert-Contains -Content $paperRule.Groups['Body'].Value -Expected 'flex: 1;' -Message 'A01 paper must receive remaining viewport space.' Assert-Contains -Content $contentRule.Groups['Body'].Value -Expected 'justify-content: space-between;' -Message 'A01 must distribute spare height in normal flow.' Assert-NotContains -Content $contentRule.Groups['Body'].Value -Unexpected 'grid-area:' -Message 'A01 interactive content must not overlap page artwork.'