summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/chromium/content-index-helpers.js
blob: 936fe84c9b10a234af4c831dba29b6789c267141 (plain)
1
2
3
4
5
6
7
8
9
import {ContentIndexService} from '/gen/third_party/blink/public/mojom/content_index/content_index.mojom.m.js';

// Returns a promise if the chromium based browser fetches icons for
// content-index.
export async function fetchesIcons() {
  const remote = ContentIndexService.getRemote();
  const {iconSizes} = await remote.getIconSizes();
  return iconSizes.length > 0;
};