[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-18 11:50:04 +00:00
commit 4d85dc3484
2 changed files with 6 additions and 10 deletions

View file

@ -472,9 +472,7 @@ with sync_playwright() as p:
)
after_value = read_value()
if "你好" not in after_value:
soft_fail(
f"compositionend-watchdog repro lost committed text: {after_value!r}"
)
soft_fail(f"compositionend-watchdog repro lost committed text: {after_value!r}")
shoot("06b-compositionend-watchdog")
info("compositionend watchdog recovery PASS")
clear()

View file

@ -80,8 +80,7 @@ def test_main_composer_has_stuck_compositionend_watchdog():
forever and CJK input is effectively dropped."""
src = THREAD_TSX.read_text()
assert "IME_STUCK_TIMEOUT_MS" in src, (
"main composer is missing the stuck-compositionend watchdog "
"(issue #5546)"
"main composer is missing the stuck-compositionend watchdog " "(issue #5546)"
)
assert "onCompositionUpdate" in src, (
"main composer is missing onCompositionUpdate wiring; the "
@ -92,9 +91,8 @@ def test_main_composer_has_stuck_compositionend_watchdog():
def test_compare_composer_has_stuck_compositionend_watchdog():
src = SHARED_TSX.read_text()
assert "IME_STUCK_TIMEOUT_MS" in src, (
"compare composer is missing the stuck-compositionend watchdog "
"(issue #5546)"
)
assert "onCompositionUpdate" in src, (
"compare composer is missing onCompositionUpdate wiring"
"compare composer is missing the stuck-compositionend watchdog " "(issue #5546)"
)
assert (
"onCompositionUpdate" in src
), "compare composer is missing onCompositionUpdate wiring"