function* performTest() { let [host, win, doc] = yield createHost(); let graph = new FlameGraph(doc.body, 1); yield graph.ready(); testGraph(graph); yield graph.destroy(); host.destroy(); }
function* performTest() { let [host, win, doc] = yield createHost(); doc.body.setAttribute("style", "position: fixed; width: 100%; height: 100%; margin: 0;"); let graph = new FlameGraph(doc.body, TEST_DPI_DENSITIY); graph.fixedWidth = TEST_WIDTH; graph.fixedHeight = TEST_HEIGHT; yield graph.ready(); testGraph(graph); yield graph.destroy(); host.destroy(); }
function* performTest() { let [host, win, doc] = yield createHost(); doc.body.setAttribute("style", "position: fixed; width: 100%; height: 100%; margin: 0;"); let graph = new FlameGraph(doc.body); let readyEventEmitted; graph.once("ready", () => readyEventEmitted = true); yield graph.ready(); ok(readyEventEmitted, "The 'ready' event should have been emitted"); testGraph(host, graph); yield graph.destroy(); host.destroy(); }