/* Run only our generated local script in a minimal DOM, with no browser or network. * This checks event handlers and serializes the produced SVG for static inspection. * It is not a replacement for a native browser layout test. */ const fs=require('node:fs'),path=require('node:path'),vm=require('node:vm'),assert=require('node:assert'); const rootDir=path.resolve(__dirname,'..'); const source=fs.readFileSync(path.join(rootDir,'visualization/question1.html'),'utf8'); const script=source.match(/