test_HeapAnalyses_computeDominatorTree_01.js (645B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 "use strict"; 4 5 // Test the HeapAnalyses{Client,Worker} "computeDominatorTree" request. 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 const dominatorTreeId = await client.computeDominatorTree(snapshotFilePath); 15 equal( 16 typeof dominatorTreeId, 17 "number", 18 "should get a dominator tree id, and it should be a number" 19 ); 20 21 client.destroy(); 22 });