summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/test/xpcshell/test_cssColorDatabase.js
blob: ec0cc0a4d81488069b871ffee22ad65cdd20843b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"
    );
  }
});