diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-02-04 19:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-04 19:51:18 +0100 |
commit | fc7d9fade54dfbe275c4808dabe30a19415082e0 (patch) | |
tree | ff92eea0fc9df0be321cd4be0e17f653684f4084 /devtools/client/shared/test | |
parent | 34cdbd1366224f040136c3a747709ae5e92f5956 (diff) | |
parent | f3aeeab64f6a5ae0639805b2c71e13323258e2c1 (diff) | |
download | UXP-fc7d9fade54dfbe275c4808dabe30a19415082e0.tar UXP-fc7d9fade54dfbe275c4808dabe30a19415082e0.tar.gz UXP-fc7d9fade54dfbe275c4808dabe30a19415082e0.tar.lz UXP-fc7d9fade54dfbe275c4808dabe30a19415082e0.tar.xz UXP-fc7d9fade54dfbe275c4808dabe30a19415082e0.zip |
Merge pull request #7 from janekptacijarabaci/devtools_inspector_cssColor4_1
Support for css-color-4 (finish)
Diffstat (limited to 'devtools/client/shared/test')
-rw-r--r-- | devtools/client/shared/test/unit/test_cssColor-03.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/client/shared/test/unit/test_cssColor-03.js b/devtools/client/shared/test/unit/test_cssColor-03.js index c3ef5a5c2..a081f7698 100644 --- a/devtools/client/shared/test/unit/test_cssColor-03.js +++ b/devtools/client/shared/test/unit/test_cssColor-03.js @@ -42,15 +42,15 @@ const CSS_COLOR_4_TESTS = [ function run_test() { for (let test of OLD_STYLE_TESTS) { - let ours = colorUtils.colorToRGBA(test, true); + let ours = colorUtils.colorToRGBA(test, false); let platform = DOMUtils.colorToRGBA(test); deepEqual(ours, platform, "color " + test + " matches DOMUtils"); ok(ours !== null, "'" + test + "' is a color"); } for (let test of CSS_COLOR_4_TESTS) { - let oursOld = colorUtils.colorToRGBA(test, true); - let oursNew = colorUtils.colorToRGBA(test, false); + let oursOld = colorUtils.colorToRGBA(test, false); + let oursNew = colorUtils.colorToRGBA(test, true); let platform = DOMUtils.colorToRGBA(test); notEqual(oursOld, platform, "old style parser for color " + test + " should not match DOMUtils"); |