summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js
blob: c830bb7ade259c413ca6aaeb6012420c85525bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

let searchIconsSchema;

add_setup(async function () {
  searchIconsSchema = await IOUtils.readJSON(
    PathUtils.join(do_get_cwd().path, "search-config-icons-schema.json")
  );
});

add_task(async function test_ui_schema_valid() {
  let uiSchema = await IOUtils.readJSON(
    PathUtils.join(do_get_cwd().path, "search-config-icons-ui-schema.json")
  );

  await checkUISchemaValid(searchIconsSchema, uiSchema);
});