test_HeapAnalyses_readHeapSnapshot_01.js (443B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 "use strict"; 4 5 // Test that the HeapAnalyses{Client,Worker} can read heap snapshots. 6 7 add_task(async function () { 8 const client = new HeapAnalysesClient(); 9 10 const snapshotFilePath = saveNewHeapSnapshot(); 11 await client.readHeapSnapshot(snapshotFilePath); 12 ok(true, "Should have read the heap snapshot"); 13 14 client.destroy(); 15 });