summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/test/xpcshell/test_cssColorDatabase.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/test/xpcshell/test_cssColorDatabase.js')
-rw-r--r--devtools/client/shared/test/xpcshell/test_cssColorDatabase.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/devtools/client/shared/test/xpcshell/test_cssColorDatabase.js b/devtools/client/shared/test/xpcshell/test_cssColorDatabase.js
new file mode 100644
index 0000000000..ec0cc0a4d8
--- /dev/null
+++ b/devtools/client/shared/test/xpcshell/test_cssColorDatabase.js
@@ -0,0 +1,17 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+// Test that css-color-db matches platform.
+
+"use strict";
+
+const { cssColors } = require("resource://devtools/shared/css/color-db.js");
+
+add_task(() => {
+ for (const name in cssColors) {
+ ok(
+ InspectorUtils.isValidCSSColor(name),
+ name + " is valid in InspectorUtils"
+ );
+ }
+});