Buckets:
| const fs = require('fs'); const { JSDOM } = require('jsdom'); | |
| const html = fs.readFileSync(process.argv[2], 'utf8'); | |
| const dom = new JSDOM('<!doctype html><html><head></head><body>' + html + '</body></html>', { runScripts: 'dangerously', pretendToBeVisual: true, | |
| beforeParse(w){ w.ResizeObserver = class { observe(){} }; w.HTMLElement.prototype.getBoundingClientRect = () => ({left:0,top:0,width:800,height:400}); } }); | |
| const w = dom.window; const errs = []; | |
| w.addEventListener('error', e => errs.push(e.message)); | |
| setTimeout(() => { | |
| const q = s => w.document.querySelectorAll(s).length; | |
| console.log('errors:', errs.length ? errs : 'none'); | |
| console.log('svgs', q('svg'), 'tiles', q('.tile'), 'hyps', q('.hyp'), 'samples', q('.sample'), 'browse rows', q('#browseTable tbody tr'), 'empty charts', q('.empty'), 'log tabs', q('#logTabs button')); | |
| const txt = w.document.querySelector('#tiles').textContent; console.log('tiles text:', txt.slice(0, 400)); | |
| console.log('NaN anywhere:', w.document.body.textContent.includes('NaN'), '| undefined anywhere:', w.document.body.textContent.includes('undefined')); | |
| }, 300); | |
Xet Storage Details
- Size:
- 1.12 kB
- Xet hash:
- 84ad75ab8235cb809fd79495e6d992d5c7e9c4e054d20a62cca2e4de3cdcb5a8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.