diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-02 20:51:18 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-02 20:51:18 +0100 |
commit | f3aeeab64f6a5ae0639805b2c71e13323258e2c1 (patch) | |
tree | 587f41772c47f6661815ae7f8dec6a3e49389bde /devtools/client/shared/test | |
parent | 9627f18cebab38cdfe45592d83371ee7bbc62cfa (diff) | |
download | UXP-f3aeeab64f6a5ae0639805b2c71e13323258e2c1.tar UXP-f3aeeab64f6a5ae0639805b2c71e13323258e2c1.tar.gz UXP-f3aeeab64f6a5ae0639805b2c71e13323258e2c1.tar.lz UXP-f3aeeab64f6a5ae0639805b2c71e13323258e2c1.tar.xz UXP-f3aeeab64f6a5ae0639805b2c71e13323258e2c1.zip |
Support for css-color-4 (finish)
Issue #4
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"); |