Keep synthetic UI data outside private reference paths (by Codex)

This commit is contained in:
Codex committed 2026-10-28 20:36:23 +01:00
1 parent 959154c3c0
commit ddd4447563
6 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -155,7 +155,7 @@ void script_locator_cases(Rml::Context &context, float density) {
}
}
void postmatch_eleven_cases(Rml::Context &context,const std::string &css,const char *theme) {
const auto fixture=std::filesystem::path(__FILE__).parent_path()/"fixtures/modern_post_match_eleven.json";
const auto fixture=std::filesystem::path(__FILE__).parent_path()/"synthetic/modern_post_match_eleven.json";
std::ifstream file(fixture);require(bool(file),"Synthetic supplied eleven fixture missing");
const auto data=Json::parse(file).at("eleven");
const PostmatchBadge badge=[](const Json &,double size){return "<span style='width:"+std::to_string(size)+"dp;height:"+std::to_string(size)+"dp;'>B</span>";};