Refractoring Stage 6.16 Scoped mail-ui.js behind its existing window.epMailFeatures.mail API, removing its implementation functions and state from the shared global scope. Bumped the version to 0.4.28 (Android version code 428) and updated REFACTOR_PLAN.md.

This commit is contained in:
2026-10-16 22:37:25 +03:00
parent 0f2014213e
commit 4b252c774c
6 changed files with 12 additions and 4 deletions
+2
View File
@@ -81,6 +81,8 @@ test('account and snooze UI consume the explicit mail API instead of selected le
assert.match(appShell, /window\.epMailShell = Object\.freeze/);
assert.match(mailUi, /appShell\.wrapOpenMessage/);
assert.match(mailUi, /appShell\.wrapShowCompose/);
assert.match(mailUi, /^\(\(\) => \{/);
assert.match(mailUi, /window\.epMailFeatures\.mail = mailUiApi/);
assert.doesNotMatch(mailUi, /(?<!\.)\bopenPreferences\s*\(|(?<!\.)\bquery\s*=/);
assert.match(shortcutsUi, /window\.epMailFeatures\.mail/);
assert.match(shortcutsUi, /window\.epMailFeatures\.productivity/);