Debian Codegraph @

testing/web-platform/tests/resources/chromium/content-index-helpers.js

raw
1 import {ContentIndexService} from '/gen/third_party/blink/public/mojom/content_index/content_index.mojom.m.js';
2
3 // Returns a promise if the chromium based browser fetches icons for
4 // content-index.
5 export async function fetchesIcons() {
6 const remote = ContentIndexService.getRemote();
7 const {iconSizes} = await remote.getIconSizes();
8 return iconSizes.length > 0;
9 };