1 parent
fff8521a17
commit
6c15491284
13 files changed
+73
-19
No files matched your search
@@ -42,19 +42,18 @@ def test_schema_and_response_templates():
|
||||
|
||||
|
||||
def test_html_contract():
|
||||
for relative in ["src/web/index.html", "ui/index.html"]:
|
||||
source = ROOT.joinpath(relative).read_text()
|
||||
parser = IdCollector()
|
||||
parser.feed(source)
|
||||
duplicates = {value for value in parser.ids if parser.ids.count(value) > 1}
|
||||
assert not duplicates
|
||||
assert "folder-drawer-header" in source
|
||||
assert "#icon-arrow-left" in source
|
||||
assert "pref-interface-skin" in source
|
||||
assert "compose-response-template" in source
|
||||
assert "data-appearance-preset" not in source
|
||||
for value in ["rustbox", "roundcube-classic", "roundcube-larry", "roundcube-elastic", "clean", "graphite", "high-contrast"]:
|
||||
assert f'value="{value}"' in source
|
||||
source = ROOT.joinpath("src/web/index.html").read_text()
|
||||
parser = IdCollector()
|
||||
parser.feed(source)
|
||||
duplicates = {value for value in parser.ids if parser.ids.count(value) > 1}
|
||||
assert not duplicates
|
||||
assert "folder-drawer-header" in source
|
||||
assert "#icon-arrow-left" in source
|
||||
assert "pref-interface-skin" in source
|
||||
assert "compose-response-template" in source
|
||||
assert "data-appearance-preset" not in source
|
||||
for value in ["rustbox", "roundcube-classic", "roundcube-larry", "roundcube-elastic", "clean", "graphite", "high-contrast"]:
|
||||
assert f'value="{value}"' in source
|
||||
|
||||
|
||||
def test_roundcube_palette_contract():
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!doctype html><html lang="en" data-theme="light" data-interface-skin="roundcube-elastic" data-density="compact" data-preview="right" data-scale="normal" data-color-preset="sage" data-font-family="system" data-contrast="normal" data-show-borders="true" data-toolbar-density="normal" data-unread-badge="dot" data-scrollbar-density="thin">
|
||||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="../ui/app.css"><style>:root{--folder-pane-width:238px;--message-pane-width:430px;--row-height:52px;--sidebar-item-height:35px;--ui-size:14px;--control-height:30px;--appbar-height:44px;--icon-size:18px;--button-pad-x:10px;--button-pad-y:5px;--field-pad-x:8px;--field-pad-y:5px} .fixture-icon{width:18px;height:18px}</style></head>
|
||||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="../src/web/css/00-tokens.css"><link rel="stylesheet" href="../src/web/css/10-base.css"><link rel="stylesheet" href="../src/web/css/20-shell.css"><link rel="stylesheet" href="../src/web/css/30-mail.css"><link rel="stylesheet" href="../src/web/css/40-compose.css"><link rel="stylesheet" href="../src/web/css/50-settings.css"><link rel="stylesheet" href="../src/web/css/55-roundcube-skins.css"><link rel="stylesheet" href="../src/web/css/56-interface-styles.css"><link rel="stylesheet" href="../src/web/css/60-responsive.css"><style>:root{--folder-pane-width:238px;--message-pane-width:430px;--row-height:52px;--sidebar-item-height:35px;--ui-size:14px;--control-height:30px;--appbar-height:44px;--icon-size:18px;--button-pad-x:10px;--button-pad-y:5px;--field-pad-x:8px;--field-pad-y:5px} .fixture-icon{width:18px;height:18px}</style></head>
|
||||
<body><div class="app-view">
|
||||
<header class="appbar"><div class="app-brand"><span class="brand-icon">✉</span><strong>RustBox</strong></div><div class="search-field"><span>⌕</span><input value="Search mail"><span></span><span>☷</span></div><div class="appbar-actions"><button class="icon-button">⚙</button><div class="account-summary"><span>linuxiarz@linuxiarz.pl</span><span>Connected</span></div></div></header>
|
||||
<div class="mail-shell"><button class="folder-drawer-scrim open"></button><aside class="folder-pane open">
|
||||
|
||||
Reference in new issue
Block a user