summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js')
-rw-r--r--toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js b/toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js
new file mode 100644
index 0000000000..c830bb7ade
--- /dev/null
+++ b/toolkit/components/search/tests/xpcshell/searchconfigs/test_searchicons_validates.js
@@ -0,0 +1,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);
+});