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():
|
||||
|
||||
Reference in new issue
Block a user