Merge remote-tracking branch 'origin/sub_laptop_5' into main_laptop_1
This commit is contained in:
@@ -202,3 +202,22 @@ def test_e07_parts():
|
||||
".e07-progress {",
|
||||
):
|
||||
assert dead not in css, dead
|
||||
|
||||
|
||||
def test_map_tips_use_tooltip_part():
|
||||
for path, hook in (
|
||||
("E03_StabSection/E03_StabSection_UI_Section.ts", "e03-tip"),
|
||||
("E04_Stab3D/E04_Stab3D_UI_Map.ts", "e04-map__tip"),
|
||||
("E07_StabArea/E07_StabArea_UI_Map.ts", "e07-map__tip"),
|
||||
):
|
||||
ts = _src(path)
|
||||
assert 'tooltipBox("")' in ts and f'classList.add("{hook}")' in ts, path
|
||||
for path, dead in (
|
||||
(
|
||||
"E03_StabSection/E03_StabSection_UI_Style.css",
|
||||
"background: var(--color-surface);\n border:",
|
||||
),
|
||||
("E04_Stab3D/E04_Stab3D_UI_Style.css", "white-space: pre;"),
|
||||
("E07_StabArea/E07_StabArea_UI_Style.css", "white-space: pre;"),
|
||||
):
|
||||
assert dead not in _src(path).replace("\r\n", "\n"), path
|
||||
|
||||
Reference in New Issue
Block a user