auto-sync: 2026-05-13 19:20:01

This commit is contained in:
Stream
2026-05-13 19:20:02 +03:00
parent 769e09865e
commit dd39e4922f
3 changed files with 337 additions and 0 deletions

View File

@@ -0,0 +1,277 @@
[
{
"tc": "TC-1.1",
"s": "FAIL",
"d": "22528ms"
},
{
"tc": "TC-1.2",
"s": "PASS",
"d": "z=12.0"
},
{
"tc": "TC-1.3",
"s": "PASS",
"d": "hash ok"
},
{
"tc": "TC-2.1",
"s": "FAIL",
"d": "theme-light→theme-light"
},
{
"tc": "TC-2.2",
"s": "PASS",
"d": "auto"
},
{
"tc": "TC-2.3",
"s": "PASS",
"d": "style switches"
},
{
"tc": "TC-2.4",
"s": "PASS",
"d": "saved"
},
{
"tc": "TC-3.1",
"s": "PASS",
"d": "compass"
},
{
"tc": "TC-3.3",
"s": "PASS",
"d": "popup open"
},
{
"tc": "TC-3.4",
"s": "PASS",
"d": "popup close"
},
{
"tc": "TC-4.1",
"s": "PASS",
"d": "hillshade"
},
{
"tc": "TC-4.4",
"s": "PASS",
"d": "tri"
},
{
"tc": "TC-4.7",
"s": "PASS",
"d": "persist"
},
{
"tc": "TC-4.2",
"s": "PASS",
"d": "disabled z8"
},
{
"tc": "TC-4.3",
"s": "PASS",
"d": "enabled z10"
},
{
"tc": "TC-4.8",
"s": "PASS",
"d": "tri after theme"
},
{
"tc": "TC-5.1",
"s": "PASS",
"d": "tracks=visible"
},
{
"tc": "TC-5.4",
"s": "PASS",
"d": "paths=visible"
},
{
"tc": "TC-5.2",
"s": "PASS",
"d": "off"
},
{
"tc": "TC-5.3",
"s": "PASS",
"d": "on"
},
{
"tc": "TC-5.5",
"s": "PASS",
"d": "paths off"
},
{
"tc": "TC-5.6",
"s": "PASS",
"d": "persist"
},
{
"tc": "TC-5.7",
"s": "PASS",
"d": "tracks=387"
},
{
"tc": "TC-5.9",
"s": "PASS",
"d": "paths"
},
{
"tc": "TC-5.10",
"s": "PASS",
"d": "z5"
},
{
"tc": "TC-5.11",
"s": "PASS",
"d": "z7"
},
{
"tc": "TC-6.1",
"s": "PASS",
"d": "route"
},
{
"tc": "TC-7.1",
"s": "PASS",
"d": "recon"
},
{
"tc": "TC-7.4",
"s": "PASS",
"d": "cleared"
},
{
"tc": "TC-8.1",
"s": "PASS",
"d": "scenic"
},
{
"tc": "TC-13.1",
"s": "PASS",
"d": "sheet opens"
},
{
"tc": "TC-8.4",
"s": "PASS",
"d": "cleared"
},
{
"tc": "TC-9.1",
"s": "PASS",
"d": "link"
},
{
"tc": "TC-9.4",
"s": "PASS",
"d": "cleared"
},
{
"tc": "TC-10.1",
"s": "PASS",
"d": "ruler"
},
{
"tc": "TC-10.2",
"s": "PASS",
"d": "measured"
},
{
"tc": "TC-10.5",
"s": "PASS",
"d": "cleared"
},
{
"tc": "TC-11.1",
"s": "PASS",
"d": "marker fn"
},
{
"tc": "TC-12.1",
"s": "PASS",
"d": "search"
},
{
"tc": "TC-13.4",
"s": "PASS",
"d": "one sheet"
},
{
"tc": "TC-14.1",
"s": "PASS",
"d": "exclusive"
},
{
"tc": "TC-14.2",
"s": "PASS",
"d": "off"
},
{
"tc": "TC-15.1",
"s": "PASS",
"d": "mobile"
},
{
"tc": "TC-15.3",
"s": "PASS",
"d": "desktop"
},
{
"tc": "TC-16.1",
"s": "PASS",
"d": "24 tiles"
},
{
"tc": "TC-16.3",
"s": "PASS",
"d": "no dupes"
},
{
"tc": "TC-17.1",
"s": "PASS",
"d": "Moscow:24"
},
{
"tc": "TC-17.2",
"s": "PASS",
"d": "Smolensk:17"
},
{
"tc": "TC-17.3",
"s": "PASS",
"d": "NNov:24"
},
{
"tc": "TC-17.4",
"s": "PASS",
"d": "Cheboksary:24"
},
{
"tc": "TC-17.5",
"s": "PASS",
"d": "rural"
},
{
"tc": "TC-17.6",
"s": "PASS",
"d": "forest"
},
{
"tc": "TC-18.1",
"s": "PASS",
"d": "errors=0"
},
{
"tc": "TC-18.3",
"s": "PASS",
"d": "dblclick"
},
{
"tc": "TC-18.5",
"s": "PASS",
"d": "defaults"
}
]

View File

@@ -0,0 +1,31 @@
import sys
path = "/home/slin/enduro-trails/prototype/static/app.js"
with open(path, 'r') as f:
content = f.read()
# Replace the style.load approach with idle event which reliably fires
old = """ map.setStyle(styleUrl);
// Restore position after style loads
map.once('style.load', () => {
map.jumpTo({ center, zoom, bearing, pitch });
setTimeout(() => rebuildMapOverlays(), 100);
});"""
new = """ map.setStyle(styleUrl);
// Restore position and overlays after style loads
map.once('idle', () => {
map.jumpTo({ center, zoom, bearing, pitch });
rebuildMapOverlays();
});"""
if old not in content:
print("ERROR: marker not found")
sys.exit(1)
content = content.replace(old, new)
with open(path, 'w') as f:
f.write(content)
print("OK - switchMapStyle uses idle event")

View File

@@ -0,0 +1,29 @@
import sys
path = "/home/slin/enduro-trails/prototype/static/app.js"
with open(path, 'r') as f:
content = f.read()
old = """ map.setStyle(styleUrl);
// Restore position after style loads
map.once('style.load', () => {
map.jumpTo({ center, zoom, bearing, pitch });
});"""
new = """ map.setStyle(styleUrl);
// Restore position after style loads
map.once('style.load', () => {
map.jumpTo({ center, zoom, bearing, pitch });
setTimeout(() => rebuildMapOverlays(), 100);
});"""
if old not in content:
print("ERROR: marker not found")
sys.exit(1)
content = content.replace(old, new)
with open(path, 'w') as f:
f.write(content)
print("OK - switchMapStyle patched")