Review changes batch 6 of 6
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$runtime = Get-Content -LiteralPath (Join-Path $root 'tests/g11-g12-settings-poems-runtime-smoke.js') -Raw -Encoding utf8
|
||||
|
||||
foreach ($required in @(
|
||||
'const waitForPageLoad = async (socket, trigger)',
|
||||
"message.method === 'Page.loadEventFired'",
|
||||
"await waitForPageLoad(socket, () => send('Page.reload'))"
|
||||
)) {
|
||||
if ($runtime -notmatch [regex]::Escape($required)) { throw "G11/G12 runtime navigation synchronization missing: $required" }
|
||||
}
|
||||
|
||||
Write-Output 'G11-G12-RUNTIME-NAVIGATION-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user