browser_perf-getSupportedFeatures.js (762B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 "use strict"; 5 6 add_task(async function () { 7 const { front, client } = await initPerfFront(); 8 9 info("Get the supported features from the perf actor."); 10 const features = await front.getSupportedFeatures(); 11 12 ok(Array.isArray(features), "The features are an array."); 13 ok(!!features.length, "There are many features supported."); 14 ok( 15 features.includes("js"), 16 "All platforms support the js feature, and it's in this list." 17 ); 18 19 // clean up 20 await front.stopProfilerAndDiscardProfile(); 21 await front.destroy(); 22 await client.close(); 23 });