gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6c1936f96c1936f9log+status: GC planmre6c1936f9/tests/realdata-m035-radii.mjs

2.0 KB

  1. // tests/realdata-m035-radii.mjs — mission 035, NOT the gate: every element's computed corner radii on 8 pages at 390/1280 against a server
  2. // from tests/realdata-m028.sh (port 8731, its copy's sid in W/copy35/sid) must be 0, 5px, 10px or 50%; prints the offenders per page.
  3. import { readFileSync } from 'node:fs';
  4. import { launchBrowser } from '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/tests/cdp.mjs';
  5. process.env.HL_CHROME ||= '/opt/google/chrome/chrome';
  6. const REAL = 'http://127.0.0.1:' + (process.env.REAL_PORT || 8731);
  7. const W = '/media/STORAGE/projects/WorldAPI/tracker.worldapi.org/.scratch/w089';
  8. const b = await launchBrowser({ debugPortRange: [Number(process.env.REAL_CHROME || 8729), Number(process.env.REAL_CHROME || 8729)] });
  9. try {
  10. const p = await b.newPage();
  11. await p.send('Network.setCookie', { name: 'trackersid', value: readFileSync(`${W}/copy35/sid`, 'utf8').trim(), url: REAL });
  12. for (const w of [390, 1280]) {
  13. await p.send('Emulation.setDeviceMetricsOverride', { width: w, height: 900, deviceScaleFactor: 1, mobile: w === 390 });
  14. for (const path of ['/', '/series/Star-Trek-Picard', '/movies/Star-Trek-First-Contact', '/people', '/franchises', '/search/star%20trek', '/my/series', '/genres']) {
  15. await p.goto(REAL + path, { timeout: 120000 });
  16. await p.waitFor('!!window.__hl && window.__hl.socket && window.__hl.socket.readyState === 1', { timeout: 120000 });
  17. const r = JSON.parse(await p.evaluate(`JSON.stringify((() => { const seen = {}; for (const el of document.querySelectorAll('*')) { const s = getComputedStyle(el);
  18. for (const c of ['borderTopLeftRadius','borderTopRightRadius','borderBottomLeftRadius','borderBottomRightRadius']) { const v = s[c]; if (!['0px','5px','10px','50%'].includes(v)) { const k = el.tagName.toLowerCase() + (el.className && typeof el.className === 'string' ? '.' + el.className.split(' ')[0] : '') + ' ' + v; seen[k] = (seen[k] || 0) + 1; } } } return seen; })())`));
  19. console.log(w, path, Object.keys(r).length ? JSON.stringify(r) : 'all radii in {0, 5px, 10px, 50%}');
  20. }
  21. }
  22. } finally { await b.close(); }

Branches

Latest commits

  • 6c1936f9log+status: GC planmre
  • 2846a840log: m569 result, GC hypothesismre
  • b24cd2d5log: Anton on hl:fetch, mission 569mre
  • 7d42cac1log+status: SL1 measured, fetch stalls remainmre
  • 8e5f2ceflog: SL1 deployedmre
  • 29f34212log: SL1 deploy startedmre
  • 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre
  • 8a83316blog: SL1 result, session drain slowermre
  • 35e93e8dSL1: slice the details repair and person fill: catalog lists changed in place, 40 ms fill steps, people created in steps, writes one table per tickmre
  • 72c9119flog+status: SL1 startedmre
  • d74620fcmission SL1: slice repair and person fillmre
  • 5d542d73log+status: ST1 resultmre
  • 3945eb81ST1: stall diagnosis reportmre
  • 404733aclog: ST1 startedmre
  • 3e3d5a55mission ST1: stall diagnosismre
  • 9c3180eblog+status: RV28d measured after deploymre
  • fdf10b1alog: RV28d deployed on day38bmre
  • 320005e9log: RV28d merged, deploy runningmre
  • a8fef27dRV28d: reportmre
  • 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre